[Bug 203224] lang/gcc49: unistd.h is busted (also lang/gcc5)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 20 19:41:07 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203224

            Bug ID: 203224
           Summary: lang/gcc49: unistd.h is busted (also lang/gcc5)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald at FreeBSD.org
          Reporter: cem at freebsd.org
          Assignee: gerald at FreeBSD.org
             Flags: maintainer-feedback?(gerald at FreeBSD.org)

E.g.:

$ cat test.c
#include <unistd.h>
$ gcc49 -c test.c
In file included from test.c:1:0:
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:
In function 'execl':
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:343:45:
error: expected declaration specifiers before '__sentinel'
 int  execl(const char *, const char *, ...) __sentinel;
                                             ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:345:46:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sentinel'
 int  execlp(const char *, const char *, ...) __sentinel;
                                              ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:392:14:
error: storage class specified for parameter 'optarg'
 extern char *optarg;   /* getopt(3) external variables */
              ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:393:12:
error: storage class specified for parameter 'optind'
 extern int optind, opterr, optopt;
            ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:393:20:
error: storage class specified for parameter 'opterr'
 extern int optind, opterr, optopt;
                    ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:393:28:
error: storage class specified for parameter 'optopt'
 extern int optind, opterr, optopt;
                            ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:600:12:
error: storage class specified for parameter 'optreset'
 extern int optreset;   /* getopt(3) external variable */
            ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:343:6:
error: old-style parameter declarations in prototyped function definition
 int  execl(const char *, const char *, ...) __sentinel;
      ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:343:1:
error: parameter name omitted
 int  execl(const char *, const char *, ...) __sentinel;
 ^
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd11.0/4.9.4/include-fixed/unistd.h:343:1:
error: parameter name omitted
test.c:1:0: error: expected '{' at end of input
 #include <unistd.h>
 ^

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list