Bug 48281 - Compilation issue with shared modules on AIX 6.1
Summary: Compilation issue with shared modules on AIX 6.1
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Runtime Config (show other bugs)
Version: 2.2.14
Hardware: Other AIX
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2009-11-25 05:12 UTC by jeremy jacque
Modified: 2014-01-19 19:03 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jeremy jacque 2009-11-25 05:12:44 UTC
I was trying to compile apache under AIX 6.1 (gcc/g++ 4.2.0) with some shared modules but they were built static (ie: libmod_cache.a)




It seems to be due to the srclib/apr/configure script in which many test are done using syntax like this :
case $host_os in
  aix[4-9]*)  ...
  aix5*)      ...
and so on.

It works under AIX 5.3 because the configure script shows : 
checking build system type... powerpc-ibm-aix5.3.0.0
checking host system type... powerpc-ibm-aix5.3.0.0
checking target system type... powerpc-ibm-aix5.3.0.0
Configuring APR library
Platform: powerpc-ibm-aix5.3.0.0

but with AIX 6.1 it looks like this :  
checking build system type... rs6000-ibm-aix
checking host system type... rs6000-ibm-aix
checking target system type... rs6000-ibm-aix
Configuring APR library
Platform: rs6000-ibm-aix


Here is my env :

export MAKE=gmake
export OBJECT_MODE=64
export CFLAGS='-maix64 -mcpu=powerpc64 -O2'
export CPPFLAGS='-maix64 -mcpu=powerpc64 -I/opt/freeware/include'
export CXXFLAGS='-maix64 -mcpu=powerpc64 -O2'
export LDFLAGS='-maix64 -mcpu=powerpc64 -L/usr/lib -L/opt/freeware/lib -Wl,-blibpath:LIBDIR:/usr/vac/lib:/usr/lib/threads:/usr/lib:/lib:/opt/freeware/lib:/apache/modules:/apache/lib'
export PATH=/usr/bin:/usr/sbin:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/opt/freeware/bin:/usr/vac/bin:/usr/linux/bin
export CC=gcc
export CXX=g++
export CONFIG_SHELL=/usr/bin/bash

./configure --prefix=/apache  \
 --disable-autoindex --disable-asis \
 --disable-actions --disable-cgid --disable-imagemap \
 --disable-status --disable-userdir --enable-so --with-mpm=prefork \
 --disable-include --disable-auth-basic \
 --disable-authn-file --disable-authn-default --disable-authz-groupfile \
 --disable-authz-user --disable-filter --disable-info \
 --enable-mods-shared='ssl cache mem_cache deflate rewrite'
Comment 1 Jeff Trawick 2009-11-25 05:21:26 UTC
See work-around documented at the end of
https://issues.apache.org/bugzilla/show_bug.cgi?id=47692 (grabbing config.guess that recognizes that level of AIX).
Comment 2 Eric Covener 2011-08-07 19:19:16 UTC
another workaround for 2.2.x is:

export ac_cv_build="powerpc-ibm-aix5.3.0.0"
export ac_cv_build_alias="powerpc-ibm-aix5.3.0.0"
Comment 3 Eric Covener 2014-01-19 19:03:40 UTC
2.2 and later have updated config.*