Date: Sat, 8 Nov 2008 13:11:59 +0000 (GMT) From: d bena <d.bena@yahoo.fr> To: freebsd-questions@freebsd.org Subject: Compile : Always missing headers Message-ID: <927777.56615.qm@web25604.mail.ukl.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi,=0A=0AWe have just install our FreeBSD and we try naturally to update ou= r system.=0A$ uname -a=0AFreeBSD pinky.e-cac.fr 7.0-RELEASE-p5 FreeBSD=0A7.= 0-RELEASE-p5 #0: Wed Oct 1 10:10:12 UTC 2008 =0Aroot@i386-builder.daemo= nology.net:/usr/obj/usr/src/sys/GENERIC i386=0A=0ABut each time we compile= softs, ports or world, we have errors with the headers not found or wrong = headers like that :=0A" /usr/include/sys/param.h:63:23: error: sys/types.h:= No such file or directory "=0A" /usr/src/lib/libmagic/../../contrib/file/f= ile.h:50:23: error: sys/types.h: No such file or directory "=0A" chkproc.c:= 61:23: error: sys/types.h: No such file or directory "=0A" /usr/src/sys/sys= /types.h:169: error: two or more data types in declaration specifiers "=0A"= /usr/src/sys/sys/types.h:169: warning: useless type name in empty declarat= ion "=0A=0AWe think : "Hmmm ... il seems that includes are wrong ... try to= add some includes folders"=0ASo we precise the CFLAGS : CFLAGS=3D'-I/usr/s= rc/sys -I/usr/include -I/sys'=0AUnfortunately, we have always some errors i= n the compilation...=0A=0AExample :=0A# make buildworld=0A[...]=0A/usr/src/= lib/libmagic/../../contrib/file/file.h:336: error: expected '=3D', ',', ';'= , 'asm' or '__attribute__' before 'sread'=0AIn file included from /usr/src/= lib/libmagic/../../contrib/file/apprentice.c:37:=0A/usr/include/unistd.h:51= 0: error: expected declaration specifiers or '...' before 'vm_offset_t'=0A/= usr/include/unistd.h:528: error: expected declaration specifiers or '...' b= efore 'fd_set'=0A/usr/include/unistd.h:528: error: expected declaration spe= cifiers or '...' before 'fd_set'=0A/usr/include/unistd.h:528: error: expect= ed declaration specifiers or '...' before 'fd_set'=0A/usr/include/unistd.h:= 546: error: expected declaration specifiers or '...' before 'u_long'=0A/usr= /include/unistd.h:546: error: expected declaration specifiers or '...' befo= re 'u_long'=0A/usr/include/unistd.h:550: error: expected ')' before '...' t= oken=0AIn file included from /usr/src/lib/libmagic/../../contrib/file/funcs= .c:27:=0A/usr/src/lib/libmagic/../../contrib/file/file.h:50:23: error: sys/= types.h: No such file or directory=0AIn file included from /usr/src/lib/lib= magic/../../contrib/file/funcs.c:27:=0A/usr/src/lib/libmagic/../../contrib/= file/file.h:336: error: expected '=3D', ',', ';', 'asm' or '__attribute__' = before 'sread'=0AIn file included from /usr/src/lib/libmagic/../../contrib/= file/magic.c:28:=0A/usr/src/lib/libmagic/../../contrib/file/file.h:50:23: e= rror: sys/types.h: No such file or directory=0AIn file included from /usr/s= rc/lib/libmagic/../../contrib/file/magic.c:28:=0A/usr/src/lib/libmagic/../.= ./contrib/file/file.h:336: error: expected '=3D', ',', ';', 'asm' or '__att= ribute__' before 'sread'=0AIn file included from /usr/src/lib/libmagic/../.= ./contrib/file/magic.c:33:=0A/usr/include/unistd.h:510: error: expected dec= laration specifiers or '...' before 'vm_offset_t'=0A/usr/include/unistd.h:5= 28: error: expected declaration specifiers or '...' before 'fd_set'=0A/usr/= include/unistd.h:528: error: expected declaration specifiers or '...' befor= e 'fd_set'=0A/usr/include/unistd.h:528: error: expected declaration specifi= ers or '...' before 'fd_set'=0A/usr/include/unistd.h:546: error: expected d= eclaration specifiers or '...' before 'u_long'=0A/usr/include/unistd.h:546:= error: expected declaration specifiers or '...' before 'u_long'=0A/usr/inc= lude/unistd.h:550: error: expected ')' before '...' token=0AIn file include= d from /usr/src/lib/libmagic/../../contrib/file/print.c:32:=0A/usr/src/lib/= libmagic/../../contrib/file/file.h:50:23: error: sys/types.h: No such file = or directory=0AIn file included from /usr/src/lib/libmagic/../../contrib/fi= le/print.c:32:=0A/usr/src/lib/libmagic/../../contrib/file/file.h:336: error= : expected '=3D', ',', ';', 'asm' or '__attribute__' before 'sread'=0AIn fi= le included from /usr/src/lib/libmagic/../../contrib/file/print.c:39:=0A/us= r/include/unistd.h:510: error: expected declaration specifiers or '...' bef= ore 'vm_offset_t'=0A/usr/include/unistd.h:528: error: expected declaration = specifiers or '...' before 'fd_set'=0A/usr/include/unistd.h:528: error: exp= ected declaration specifiers or '...' before 'fd_set'=0A/usr/include/unistd= .h:528: error: expected declaration specifiers or '...' before 'fd_set'=0A/= usr/include/unistd.h:546: error: expected declaration specifiers or '...' b= efore 'u_long'=0A/usr/include/unistd.h:546: error: expected declaration spe= cifiers or '...' before 'u_long'=0A/usr/include/unistd.h:550: error: expect= ed ')' before '...' token=0A*** Error code 1=0A=0A=0AWe don't understand wh= y it lacks some headers files like /usr/include/sys/types.h ?=0AAnd google,= our best friend, doesn't want to explain us...=0A=0AIf you need more infor= mation, tell us, we'll be glad to answer.=0A=0A--=0AThree poor french guys,= very happy to discover FreeBSD but little disturb...=0A=0A=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?927777.56615.qm>