ports/167652: lang/gcc: Missing include files.
Christian Mangin
christian.mangin at gmail.com
Sun May 6 19:50:12 UTC 2012
>Number: 167652
>Category: ports
>Synopsis: lang/gcc: Missing include files.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 06 19:50:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Christian Mangin
>Release: FreeBSD 9.0-RELEASE-p1 amd64
>Organization:
>Environment:
System: FreeBSD titan 9.0-RELEASE-p1
>Description:
The stddef.h header file included with lang/gcc refers to sys/_types.h
which only exists in the base system. When compiling with -nostdinc
the compilation aborts with the error below.
I can't override '-nostdinc' because it creates type definition conflicts
when trying to compile this particular port. (It's the bazaar version of grub2)
>How-To-Repeat:
test.c:
#include <stddef.h>
int main()
{
return 0;
}
gcc46 -nostdinc -I/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/include test.c
In file included from test.c:1:0:
/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/include/stddef.h:59:24: fatal error: sys/_types.h: No such file or directory
compilation terminated.
>Fix:
As a workaround I've been able to successfully build the port by adding symlinks to
/usr/include/sys and /usr/include/machine. The specific files that stddef.h wants are:
sys/_types.h
sys/cdefs.h
machine/_types.h
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list