From owner-freebsd-questions@FreeBSD.ORG Sat Nov 8 13:38:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 461B8106568A for ; Sat, 8 Nov 2008 13:38:41 +0000 (UTC) (envelope-from d.bena@yahoo.fr) Received: from web25604.mail.ukl.yahoo.com (web25604.mail.ukl.yahoo.com [217.12.10.163]) by mx1.freebsd.org (Postfix) with SMTP id 849318FC14 for ; Sat, 8 Nov 2008 13:38:40 +0000 (UTC) (envelope-from d.bena@yahoo.fr) Received: (qmail 57555 invoked by uid 60001); 8 Nov 2008 13:11:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=nNycB94CY8U1wRzh4Orve/SLxpib5EiTChLHnboW67xnFJHbz7hTC4bpRS85Py0grJZveoPqdPhT3wsf38ZS2m17JJbw8EiXjMp4IQYcJobWTVpuZKWpUnyJO2lAXuGqP3x0jQbRn7P1tdqy2srW73EVyW7faTlRVygLlQZYo9s=; X-YMail-OSG: p2avgE4VM1kaPKby7SQM4e_scaaEJJ9kmG2WR3Uxdu8vO3Bute4q6wu57KJuPItyNwi.wjLEy0SB0SBhm7VAqi6oh8YMyACIlHs25KHR2XWzivSp2DIVJniLMkyZ1pN6oRhvvimXx2i6NvEqR7bWj.GDROM- Received: from [82.226.243.207] by web25604.mail.ukl.yahoo.com via HTTP; Sat, 08 Nov 2008 13:11:59 GMT X-Mailer: YahooMailRC/1155.29 YahooMailWebService/0.7.260.1 Date: Sat, 8 Nov 2008 13:11:59 +0000 (GMT) From: d bena To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <927777.56615.qm@web25604.mail.ukl.yahoo.com> X-Mailman-Approved-At: Sat, 08 Nov 2008 15:09:36 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Compile : Always missing headers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2008 13:38:41 -0000 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