Summary: | Undefined symbols ld error on apache 1.3.34 build on AIX 5.3 using gcc in 64 bit mode | ||
---|---|---|---|
Product: | Apache httpd-1.3 | Reporter: | bpinch |
Component: | Build | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | Keywords: | ErrorMessage |
Priority: | P2 | ||
Version: | 1.3.34 | ||
Target Milestone: | --- | ||
Hardware: | HP | ||
OS: | AIX |
Description
bpinch
2006-02-28 12:21:43 UTC
See http://people.apache.org/~trawick/apache13aix.html You need to use the EXTRA_LDFLAGS_SHLIB to work around this gcc oddity. following the apache 1.3 on aix http://people.apache.org/~trawick/apache13aix.html note gave # find / -name "libgcc.*" -print ./opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/libgcc.a ./opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/ppc64/libgcc.a ./opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/pthread/libgcc.a ./opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/pthread/ppc64/libgcc.a So somethings similar to the following were tried including just one -lgcc #EXTRA_LDFLAGS_SHLIB="-b64 -L/opt/freeware/lib/gcc-lib/powerpc-ibm- aix5.3.0.0/3.3.2 -lgcc -L/opt/freeware/lib/gcc-lib/powerpc-ibm- aix5.3.0.0/3.3.2/ppc64 -lgcc -L/opt/freeware/lib/gcc-lib/powerpc-ibm- aix5.3.0.0/3.3.2/pthread -lgcc -L/opt/freeware/lib/gcc-lib/powerpc-ibm- aix5.3.0.0/3.3.2/pthread/ppc64 -lgcc"; export EXTRA_LDFLAGS_SHLIB; echo $EXTRA_LDFLAGS_SHLIB The ld error remained in that the symbol remained unresolved. However, adding to the still undefined symbol to __fixunssfdi (there was only one) to src/support/httpd.exp as explained in http://people.apache.org/~trawick/apache13aix.html allowed apache to link and subsequently start as a webserver. Thanks Brian Try the link flag --static-libgcc and report back if this works. I'm unsure if this flag is libtool specific or generally applicable to any gcc compilation. As a link option the following is not permitted EXTRA_LDFLAGS_SHLIB="-b64 -static-libgcc"; export EXTRA_LDFLAGS_SHLIB; echo $EXTRA_LDFLAGS_SHLIB As a CFLAGS option it is apparently permitted CFLAGS="-maix64 -static-libgcc"; export CFLAGS; echo $CFLAGS But it still came up with same error ie Undefined symbol: .__fixunssfdi, still requiring adding to the apache symbols file to allow to link edit. Regards Brian |