You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Martin Englund <ma...@sweden.sun.com> on 1997/02/05 13:00:02 UTC
os-solaris/153: unistd.h needs to be included earlier in conf.h
>Number: 153
>Category: os-solaris
>Synopsis: unistd.h needs to be included earlier in conf.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Feb 5 04:00:01 1997
>Originator: martin.englund@sweden.sun.com
>Organization:
apache
>Release: 1.2b6
>Environment:
Solaris 2.6 build 21
SPARCompiler C 4.0
>Description:
cc -c -Iregex -O2 -DSOLARIS2 alloc.c
cc: Warning: option -2 passed to ld
"/usr/include/unistd.h", line 280: syntax error before or at: MAX_STRING_LEN
"/usr/include/unistd.h", line 280: warning: undefined or missing type for: MAX_STRING_LEN
cc: acomp failed for alloc.c
*** Error code 2
make: Fatal error: Command failed for target `alloc.o'
>How-To-Repeat:
run Configure and then make
>Fix:
diff conf.h conf.h.old
62,65d61
< #ifndef NEXT
< #include <unistd.h>
< #endif
<
You man also change the compiler flag '-O2' to '-fast -xO4' for SPARCcompiler
>Audit-Trail:
>Unformatted: