Received: (qmail 12843 invoked by uid 2012); 7 Apr 1998 17:13:46 -0000 Message-Id: <19980407171346.12842.qmail@hyperreal.org> Date: 7 Apr 1998 17:13:46 -0000 From: Malcolm Nooning Reply-To: nooninm@dps-server.pgh.wec.com To: apbugs@hyperreal.org Subject: Fatal error: Command failed for target `alloc.o' during the make process X-Send-Pr-Version: 3.2 >Number: 2044 >Category: os-sunos >Synopsis: Fatal error: Command failed for target `alloc.o' during the make process >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Apr 7 10:20:00 PDT 1998 >Last-Modified: Tue Apr 7 11:14:15 PDT 1998 >Originator: nooninm@dps-server.pgh.wec.com >Organization: >Release: 1.3b5 >Environment: The result of 'uname -a' is SunOS dps-ranger 5.4 Generic_101945-36 sun4m sparc >Description: Configure works fine. Make does not. I am installing in a subdirectory so that I can try it out prior to 'real' use. Is this possible? The file alloc.c doesn't seem to want to compile. Any ideas? ----------------------- snip from screen output ------------------------ /home/nooninm/apache/src/make for i in os/unix main ap modules regex; do \ ( cd $i && make CC='gcc' AUX_CFLAGS=' -DSOLARIS2=240 -DUSE_HSREGEX ' RANLIB='ranlib') || exit 1; \ done gcc -c -I../../os/unix -I../../include -DSOLARIS2=240 -DUSE_HSREGEX os.c gcc -c -I../../os/unix -I../../include -DSOLARIS2=240 -DUSE_HSREGEX os-inline.c rm -f libos.a ar cr libos.a os.o os-inline.o ranlib libos.a gcc -c -I../os/unix -I../include -DSOLARIS2=240 -DUSE_HSREGEX alloc.c alloc.c: In function `pstrcat': alloc.c:745: `__builtin_va_alist' undeclared (first use this function) alloc.c:745: (Each undeclared identifier is reported only once alloc.c:745: for each function it appears in.) alloc.c: In function `table_do': alloc.c:1212: `__builtin_va_alist' undeclared (first use this function) alloc.c: In function `pfopen': alloc.c:1414: warning: assignment makes pointer from integer without a cast alloc.c: In function `pfdopen': alloc.c:1432: warning: assignment makes pointer from integer without a cast alloc.c: In function `spawn_child_err': alloc.c:1826: warning: assignment makes pointer from integer without a cast alloc.c:1834: warning: assignment makes pointer from integer without a cast alloc.c:1842: warning: assignment makes pointer from integer without a cast *** Error code 1 make: Fatal error: Command failed for target `alloc.o' Current working directory /home/nooninm/apache/src/main *** Error code 1 make: Fatal error: Command failed for target `subdirs' /home/nooninm/apache/src/ ----------------------- end snip from screen output -------------------- >How-To-Repeat: Solaris 2.4 Download apache_1.3.b.5.tar.gz into a non-root subdirectory. Then gunzip and tar -xvf, then follow the directions in the INSTALL file. If gcc is your compiler, as mine is, place "gcc" in the Configuration file, and no other changes. Run Configure, which should work. Then run make. The alloc.c should bomb. >Fix: `__builtin_va_alist' undeclared hints at a code problem. Also, the messages show that an integer is being used without a pointer cast in alloc.c. Try checking that out first. Thanks >Audit-Trail: From: Dean Gaudet To: Malcolm Nooning Cc: apbugs@hyperreal.org Subject: Re: os-sunos/2044: Fatal error: Command failed for target `alloc.o' during the make process Date: Tue, 7 Apr 1998 11:23:15 -0700 (PDT) If I had to take a wild guess, which I will, you've installed a gcc which doesn't match the header files on solaris 2.4. Maybe one built against 2.5, or maybe one built against a much earlier beta version of 2.4 (there was a gcc binary floating around like this for a long time). This isn't an apache bug, __builtin_va_list is gcc talking to itself, and if it doesn't have the definition somewhere then gcc is missing or has the wrong header files. Dean State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Tue Apr 7 11:14:14 PDT 1998 State-Changed-Why: Your compiler is not installed properly. You may be using a gcc designed for a different version of Solaris or you may not have followed the instructions properly for installing it. This is not an Apache problem. Note that if you searched the bugdb for __builtin_va_alist you would have found another PR telling you this. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]