Bug 8707 - Apache make fails in AIX 5.1
Summary: Apache make fails in AIX 5.1
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.0.35
Hardware: Other AIX
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-01 18:33 UTC by Tony Fan
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Fan 2002-05-01 18:33:46 UTC
$ make
Making all in srclib
Making all in apr
Making all in strings
        /bin/sh /home/tfan/kits/apache20/httpd-2.0.35/srclib/apr/libtool --silen
t --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_USE_IRS -D_THREAD_SAF
E   -I../include -I../include/arch/unix  -c apr_cpystrn.c && touch apr_cpystrn.l
o
In file included from /home/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1/i
nclude/sys/signal.h:309,
                 from /home/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1/i
nclude/sys/wait.h:62,
                 from ../include/apr.h:274,
                 from apr_cpystrn.c:55:
/usr/include/sys/context.h:155: parse error before "sigset64_t"
/usr/include/sys/context.h:158: parse error before '}' token
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.
Comment 1 Jeff Trawick 2002-05-01 18:45:21 UTC
This isn't an Apache or APR problem.

It seems that you have an incomplete or incorrect gcc install.
gcc wants to create its own copy of system header files (it can
tweak the syntax).  Your gcc installation has its own copies of
sys/signal.h and sys/wait.h, but not its own copy of sys/context.h,
and somehow the combination is blowing up.

Isn't there a program that comes with gcc that you can run to
regenerate gcc-parsable copies of the system header files?  I'm
afraid that I don't know the details of that part of the install.

I've used the IBM packaging of gcc as well as IBM's C for AIX
on AIX 5 with no problems like this.
Comment 2 Tony Fan 2002-05-02 18:40:09 UTC
OK,  I reinstall old version gcc 2.95.3 and got different error after make

-----------------------------------------------------------------------------
Making all in uri
        /bin/sh /home/tfan/kits/apache20/httpd-2.0.35/srclib/apr/libtool --silen
t --mode=link  gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_USE_IRS -D_THREAD_SAFE
  -I/home/tfan/kits/apache20/httpd-2.0.35/srclib/apr/include  -I/home/tfan/kits/
apache20/httpd-2.0.35/srclib/apr-util/include -I/home/tfan/kits/apache20/httpd-2
.0.35/srclib/apr-util/xml/expat/lib -I/home/tfan/kits/apache20/httpd-2.0.35/srcl
ib/apr-util/include/private -I.  -Wl,-brtl   -o gen_uri_delims -Wl,-brtl gen_uri
_delims.lo -lm -liconv -lnsl  -ldl
collect2: /lib/libm.a: not a COFF file
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
Comment 3 Tony Fan 2002-05-03 16:31:54 UTC
I retry again today with all fresh gcc and Apache source
I had this error message. this is not gcc problem.

-----------------------------------------------------------------------------

Target "local-all" is up to date.
Target "all" is up to date.
Target "all" is up to date.
Making all in support
        /bin/sh /home/tfan/kits/apache20/httpd-2.0.35/srclib/apr/libtool --silen
t --mode=compile gcc  -g -O2    -U__STR__ -D_USE_IRS -D_THREAD_SAFE -DAP_HAVE_DE
SIGNATED_INITIALIZER   -I. -I/home/tfan/kits/apache20/httpd-2.0.35/os/unix -I/ho
me/tfan/kits/apache20/httpd-2.0.35/server/mpm/prefork -I/home/tfan/kits/apache20
/httpd-2.0.35/modules/http -I/home/tfan/kits/apache20/httpd-2.0.35/modules/proxy
 -I/home/tfan/kits/apache20/httpd-2.0.35/include -I/home/tfan/kits/apache20/http
d-2.0.35/srclib/apr/include -I/home/tfan/kits/apache20/httpd-2.0.35/srclib/apr-u
til/include -I/home/tfan/kits/apache20/httpd-2.0.35/modules/dav/main -I/home/tfa
n/kits/apache20/httpd-2.0.35/srclib/apr-util/include -I/home/tfan/kits/apache20/
httpd-2.0.35/srclib/apr-util/xml/expat/lib  -c htpasswd.c && touch htpasswd.lo
        /bin/sh /home/tfan/kits/apache20/httpd-2.0.35/srclib/apr/libtool --silen
t --mode=link gcc  -g -O2    -U__STR__ -D_USE_IRS -D_THREAD_SAFE -DAP_HAVE_DESIG
NATED_INITIALIZER   -I. -I/home/tfan/kits/apache20/httpd-2.0.35/os/unix -I/home/
tfan/kits/apache20/httpd-2.0.35/server/mpm/prefork -I/home/tfan/kits/apache20/ht
tpd-2.0.35/modules/http -I/home/tfan/kits/apache20/httpd-2.0.35/modules/proxy -I
/home/tfan/kits/apache20/httpd-2.0.35/include -I/home/tfan/kits/apache20/httpd-2
.0.35/srclib/apr/include -I/home/tfan/kits/apache20/httpd-2.0.35/srclib/apr-util
/include -I/home/tfan/kits/apache20/httpd-2.0.35/modules/dav/main -I/home/tfan/k
its/apache20/httpd-2.0.35/srclib/apr-util/include -I/home/tfan/kits/apache20/htt
pd-2.0.35/srclib/apr-util/xml/expat/lib -export-dynamic -Wl,-brtl   -o htpasswd
 htpasswd.lo -Wl,-brtl -Wl,-uXML_Parse /home/tfan/kits/apache20/httpd-2.0.35/src
lib/apr-util/libaprutil.la  /home/tfan/kits/apache20/httpd-2.0.35/srclib/apr/lib
apr.la /home/tfan/kits/apache20/httpd-2.0.35/srclib/apr-util/xml/expat/lib/libex
pat.la
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_attr_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_attr_setdetachstate
ld: 0711-317 ERROR: Undefined symbol: .pthread_attr_getdetachstate
ld: 0711-317 ERROR: Undefined symbol: .pthread_create
ld: 0711-317 ERROR: Undefined symbol: .pthread_self
ld: 0711-317 ERROR: Undefined symbol: .pthread_exit
ld: 0711-317 ERROR: Undefined symbol: .pthread_join
ld: 0711-317 ERROR: Undefined symbol: .pthread_detach
ld: 0711-317 ERROR: Undefined symbol: .pthread_once
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_trylock
ld: 0711-317 ERROR: Undefined symbol: .pthread_sigmask
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
#
Comment 4 Tony Fan 2002-05-07 19:34:00 UTC
New 2.0.26 build resolved this problem,  I am all set now,  no any problem with 
this build so far.