utmp.h missing in FreeBSD 9.0

Started by shealey, May 07, 2012, 08:22:55 AM

Previous topic - Next topic

shealey

heads-up ...

I'm building a backup toaster on a FreeBSD 9.0 (amd 64) instance running in a VMWare Fusion virtual machine.

All has been going well (apart from a niggle where 'make install' doesn't install the toaster*-dist files, which I did manually)

Qmail however has failed to build with the following error:

./compile qbiff.c
qbiff.c:3:18: error: utmp.h: No such file or directory
qbiff.c:24: error: invalid application of 'sizeof' to incomplete type 'struct utmp'
qbiff.c:31: error: invalid use of undefined type 'struct utmp'
qbiff.c: In function 'main':
qbiff.c:66: error: invalid use of undefined type 'struct utmp'
qbiff.c:95: error: invalid application of 'sizeof' to incomplete type 'struct utmp'
qbiff.c:95: error: invalid application of 'sizeof' to incomplete type 'struct utmp'
qbiff.c:96: error: invalid use of undefined type 'struct utmp'
qbiff.c:96: error: invalid use of undefined type 'struct utmp'
qbiff.c:98: error: invalid use of undefined type 'struct utmp'
qbiff.c:98: error: invalid use of undefined type 'struct utmp'
qbiff.c:99: error: invalid use of undefined type 'struct utmp'
qbiff.c:54: warning: return type of 'main' is not 'int'
gmake: *** [qbiff.o] Error 1
  at Mail::Toaster::Qmail, /usr/local/lib/perl5/site_perl/5.14.2/Mail/Toaster/Qmail.pm, 1315


Am doing a bit of research on this, and it seems that the header file 'utmp.h' has gone from FreeBSD 9.0. It would seem that whatever version of qmail the toaster is trying to install hasn't caught up with this yet.

Will advise if I can find a workaround.

shealey