From nobody@hyperreal.com Mon Jan 6 15:17:45 1997 Received: by taz.hyperreal.com (8.8.3/V2.0) id PAA14055; Mon, 6 Jan 1997 15:17:45 -0800 (PST) Message-Id: <199701062317.PAA14055@taz.hyperreal.com> Date: Mon, 6 Jan 1997 15:17:45 -0800 (PST) From: Greg Onufer Reply-To: greg@cheers.bungi.com To: apbugs@hyperreal.com Subject: getcwd macro breaks system include files X-Send-Pr-Version: 3.2 >Number: 89 >Category: os-sunos >Synopsis: getcwd macro breaks system include files >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jan 6 15:20:01 1997 >Last-Modified: Fri Feb 21 12:48:03 PST 1997 >Originator: greg@cheers.bungi.com >Organization: >Release: 1.2b4 >Environment: SunOS 5.6, gcc 2.7.2.1 >Description: SunOS 5.6 has a getcwd prototype in unistd.h. The macro from conf.h causes the prototype to expand into garbage and the build fails: gcc -c -Iregex -O3 -mv8 -DSOLARIS2 -DSTATUS -DICMD alloc.c In file included from conf.h:519, from alloc.c:61: /pkg/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.1/include/unistd.h:280: parse error before `MAX_STRING_LEN' *** Error code 1 make: Fatal error: Command failed for target `alloc.o' >How-To-Repeat: Build on SunOS 5.6 >Fix: Use guards such as HAVE_GETCWD instead of guards like SOLARIS to determine whether or not workarounds/features need to be used >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri Feb 21 12:48:03 PST 1997 State-Changed-Why: Fixed by getting rid of the getwd() macro entirely. The fixed version will be available in 1.2b7 when released in a few days. >Unformatted: