Error - FreeBSD 9.0 Won't compile

William Brown william.e.brown at adelaide.edu.au
Mon Jan 23 21:46:02 MST 2012


WAF_MAKE=1 ./buildtools/bin/waf build
Waf: Entering directory `/root/samba-master/bin'
[ 125/3875] Generating VERSION
[ 160/3875] Generating smbd/build_options.c
[2547/3875] Compiling source3/smbd/utmp.c
../source3/smbd/utmp.c:129:18: error: utmp.h: No such file or directory
../source3/smbd/utmp.c:260: warning: 'struct utmp' declared inside parameter list
../source3/smbd/utmp.c:260: warning: its scope is only this definition or declaration, which is probably not what you want
../source3/smbd/utmp.c:274: warning: 'struct utmp' declared inside parameter list
../source3/smbd/utmp.c: In function 'updwtmp_my':
../source3/smbd/utmp.c:306: error: invalid application of 'sizeof' to incomplete type 'struct utmp' 
../source3/smbd/utmp.c:306: error: invalid application of 'sizeof' to incomplete type 'struct utmp' 
../source3/smbd/utmp.c: At top level:
../source3/smbd/utmp.c:317: warning: 'struct utmp' declared inside parameter list
../source3/smbd/utmp.c: In function 'utmp_nox_update':
../source3/smbd/utmp.c:352: warning: passing argument 2 of 'pututline_my' from incompatible pointer type
../source3/smbd/utmp.c:374: warning: passing argument 2 of 'updwtmp_my' from incompatible pointer type
../source3/smbd/utmp.c: At top level:
../source3/smbd/utmp.c:402: warning: 'struct utmp' declared inside parameter list
../source3/smbd/utmp.c: In function 'sys_utmp_update':
../source3/smbd/utmp.c:414: warning: passing argument 1 of 'utmp_nox_update' from incompatible pointer type
../source3/smbd/utmp.c: At top level:
../source3/smbd/utmp.c:501: warning: 'struct utmp' declared inside parameter list
../source3/smbd/utmp.c: In function 'sys_utmp_fill':
../source3/smbd/utmp.c:521: error: dereferencing pointer to incomplete type
../source3/smbd/utmp.c:522: error: dereferencing pointer to incomplete type
../source3/smbd/utmp.c:526: error: dereferencing pointer to incomplete type
../source3/smbd/utmp.c:526: error: dereferencing pointer to incomplete type
../source3/smbd/utmp.c:545:2: error: #error "with-utmp must have UT_TIME or UT_TV"
../source3/smbd/utmp.c:503: warning: unused variable 'timeval'
../source3/smbd/utmp.c: In function 'sys_utmp_yield':
../source3/smbd/utmp.c:591: error: storage size of 'u' isn't known
../source3/smbd/utmp.c:591: warning: unused variable 'u'
../source3/smbd/utmp.c: In function 'sys_utmp_claim':
../source3/smbd/utmp.c:618: error: storage size of 'u' isn't known
../source3/smbd/utmp.c:618: warning: unused variable 'u'
Waf: Leaving directory `/root/samba-master/bin'
Build failed:  -> task failed (err #1): 
	{task: cc utmp.c -> utmp_86.o}
*** Error code 1

FreeBSD freebsdality 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

* master 1f0298d python: Change except: statement to except Exception:

This seems to be because FreeBSD 9.0 uses utmpx.h rather than utmp.h I am not sure where to change this in the waf configure stages however.

Sincerely,

William Brown

Research & Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-----------------------------------------------------------------------------
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x3C0AC6DAB2F928A2




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120124/69faeae5/attachment.pgp>


More information about the samba-technical mailing list