httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Felt <mamf...@gmail.com>
Subject Re: problem with build on AIX 6.1
Date Wed, 07 Oct 2009 06:11:49 GMT
Rainer Jung wrote:
> On 06.10.2009 20:01, Michael Felt wrote:
>   
>> Hello all,
>>
>> I am trying to get a build made on AIX 6.1. And I suspect the problem I
>> am having is the "root" cause of the problems people are reporting
>> regarding can't make .so files when using AIX 6.1 (p.s. the quick fix is
>> to compile on AIX 5.3, it runs fine on AIX 6.1)
>>
>> Standard process:
>> unpack archive,
>> ./configure --prefix=/usr/local/apache2 \
>> --enable-module=so \
>> --enable-module=unique_id \
>> --enable-module=usertrack \
>> --enable-module=vhost_alias \
>> --enable-rewrite=shared \
>> --enable-speling=shared \
>> --enable-digest=shared \
>> --enable-cgi=shared \
>> --enable-headers=shared \
>> --enable-info=shared \
>> --enable-log_forensic=shared \
>> --enable-proxy=shared \
>> --enable-proxy-connect=shared \
>> --enable-proxy-ftp=shared \
>> --enable-proxy-http=shared \
>> --enable-proxy-ajp=shared \
>> --enable-proxy-balancer=shared \
>> --with-z=/data/prj/zlib-1.2.3
>> make
>>
>> On AIX5.3 I have as result, among others:
>> # find modules -name '*.so'
>> modules/generators/.libs/mod_info.so
>> modules/generators/.libs/mod_cgi.so
>> modules/loggers/.libs/mod_log_forensic.so
>> modules/mappers/.libs/mod_speling.so
>> modules/mappers/.libs/mod_rewrite.so
>> modules/metadata/.libs/mod_headers.so
>> modules/proxy/.libs/mod_proxy.so
>> modules/proxy/.libs/mod_proxy_connect.so
>> modules/proxy/.libs/mod_proxy_ftp.so
>> modules/proxy/.libs/mod_proxy_http.so
>> modules/proxy/.libs/mod_proxy_scgi.so
>> modules/proxy/.libs/mod_proxy_ajp.so
>> modules/proxy/.libs/mod_proxy_balancer.so
>> =====
>> And...
>> # find modules -name '*.slo'
>> modules/generators/mod_cgi.slo
>> modules/generators/mod_info.slo
>> modules/loggers/mod_log_forensic.slo
>> modules/mappers/mod_rewrite.slo
>> modules/mappers/mod_speling.slo
>> modules/metadata/mod_headers.slo
>> modules/proxy/mod_proxy.slo
>> modules/proxy/ajp_header.slo
>> modules/proxy/mod_proxy_connect.slo
>> modules/proxy/mod_proxy_scgi.slo
>> modules/proxy/mod_proxy_ftp.slo
>> modules/proxy/ajp_utils.slo
>> modules/proxy/mod_proxy_ajp.slo
>> modules/proxy/proxy_util.slo
>> modules/proxy/ajp_msg.slo
>> modules/proxy/ajp_link.slo
>> modules/proxy/mod_proxy_http.slo
>> modules/proxy/mod_proxy_balancer.slo
>> ++++++++++++++++++++++
>> On AIX 6.1 I have:
>> michael@x054:[/data/prj/httpd-2.2.14]find modules -name '*.so'
>> =================================================
>> michael@x054:[/data/prj/httpd-2.2.14]find modules -name '*.slo'
>> modules/generators/mod_info.slo
>> modules/generators/mod_cgi.slo
>> modules/loggers/mod_log_forensic.slo
>> modules/mappers/mod_speling.slo
>> modules/mappers/mod_rewrite.slo
>> modules/metadata/mod_headers.slo
>> modules/proxy/mod_proxy.slo
>> modules/proxy/proxy_util.slo
>> modules/proxy/mod_proxy_connect.slo
>> modules/proxy/mod_proxy_ftp.slo
>> modules/proxy/mod_proxy_http.slo
>> modules/proxy/mod_proxy_scgi.slo
>> modules/proxy/mod_proxy_ajp.slo
>> modules/proxy/ajp_header.slo
>> modules/proxy/ajp_link.slo
>> modules/proxy/ajp_msg.slo
>> modules/proxy/ajp_utils.slo
>> modules/proxy/mod_proxy_balancer.slo
>> ++++++++++++++++++++++++++++++++++++
>> Suspecting it was libtool I downloaded, built and installed libtool
>> 2.2.6a and Python 2.6.3, ope did the following:
>> make distclean
>> ./buildconf
>> ./configure *** as above
>> make
>> =========
>> make ends with:
>> Making all in srclib
>> make[1]: Entering directory `/data/prj/http-2.2.14.bad/srclib'
>> Making all in apr
>> make[2]: Entering directory `/data/prj/http-2.2.14.bad/srclib/apr'
>> make[3]: Entering directory `/data/prj/http-2.2.14.bad/srclib/apr'
>> make[3]: Nothing to be done for `local-all'.
>> make[3]: Leaving directory `/data/prj/http-2.2.14.bad/srclib/apr'
>> make[2]: Leaving directory `/data/prj/http-2.2.14.bad/srclib/apr'
>> Making all in apr-util
>> make[2]: Entering directory `/data/prj/http-2.2.14.bad/srclib/apr-util'
>> make[2]: *** No rule to make target `all'.  Stop.
>> make[2]: Leaving directory `/data/prj/http-2.2.14.bad/srclib/apr-util'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/data/prj/http-2.2.14.bad/srclib'
>> make: *** [all-recursive] Error 1
>> michael@x054:[/data/prj/http-2.2.14.bad]
>>
>> Attached: the config.log from each directory/system
>>
>> AIX 5.3 TL07, xlc v7 patched to July 2009
>> AIX 6.1 : 6100-03-01-0921 (TL 03), same compiler.
>>     
>
> I wouldn't use libtool 2.
>
> So lets assume you have autoconf 2.64 and libtool 1.5.26. I assume both
> tools are in your PATH and correctly installed.
>
> Running buildconf for httpd 2.2.14 on my system (not AIX, it's Solaris)
> gives:
>
> % ./buildconf
> found apr source: srclib/apr
> found apr-util source: srclib/apr-util
> rebuilding srclib/apr/configure
> buildconf: checking installation...
> buildconf: python version 2.5.1 (ok)
> buildconf: autoconf version 2.64 (ok)
> buildconf: libtool version 1.5.26 (ok)
> Copying libtool helper files ...
> buildconf: Using libtool.m4 at /some/path/share/aclocal/libtool.m4.
> Creating include/arch/unix/apr_private.h.in ...
> Creating configure ...
> Generating 'make' outputs ...
> rebuilding rpm spec file
> rebuilding srclib/apr-util/configure
>
> Looking for apr source in /test/httpd-2.2.14.buildconf/srclib/apr
> Creating include/private/apu_config.h ...
> Creating configure ...
> Generating 'make' outputs ...
> Invoking xml/expat/buildconf.sh ...
> Copying libtool helper files ...
> Incorporating /some/path/share/aclocal/libtool.m4 into aclocal.m4 ...
> Creating config.h.in ...
> autoheader: WARNING: Using auxiliary files such as `acconfig.h',
> `config.h.bot'
> autoheader: WARNING: and `config.h.top', to define templates for
> `config.h.in'
> autoheader: WARNING: is deprecated and discouraged.
> autoheader:
> autoheader: WARNING: Using the third argument of `AC_DEFINE' and
> autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a
> template without
> autoheader: WARNING: `acconfig.h':
> autoheader:
> autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
> autoheader:             [Define if a function `main' is needed.])
> autoheader:
> autoheader: WARNING: More sophisticated templates can also be produced,
> see the
> autoheader: WARNING: documentation.
> Creating configure ...
> rebuilding rpm spec file
> copying build files
> rebuilding srclib/pcre/configure
> rebuilding include/ap_config_auto.h.in
> rebuilding configure
> rebuilding rpm spec file
> fixing timestamps for mod_ssl sources
>
>
> Running buildconf updates the following files in the httpd tree on my
> system:
>
> httpd-2.2.14/srclib/apr/build/libtool.m4
> httpd-2.2.14/srclib/apr/configure
> httpd-2.2.14/srclib/apr-util/xml/expat/aclocal.m4
> httpd-2.2.14/srclib/apr-util/xml/expat/config.h.in
> httpd-2.2.14/srclib/apr-util/xml/expat/configure
>
> All other files stay the same (some have a newer timestamp, but the
> contents do not change). What about that on your system?
>
> The changes to the m4 and configure file pretty minor and are only
> related to the Apple Darwin platform.
>
> The change to config.h.in in srclib/apr-util is also small and
> neglectable. So I think libtool and the autotools were pretty recent on
> the system on which Graham prepared the 2.2.14 release. It seems no need
> to actually run buildconf.
>
> What is not very recent is two build files, namely config.sub and
> config.guess. They originate from automake and you can copy them over
> from automake 1.10.2. Whereas config.sub doesn't seem to have AIX
> related changes, config.guess does:
>
> 534c548
> <     *:AIX:*:[45])
> ---
>   
>>     *:AIX:*:[456])
>>     
>
> All copies of the files in the four directories
>
> build
> srclib/apr/build
> srclib/apr-util/build
> srclib/apr-util/xml/expat/conftools
>
> should be fixed. What is the output, when calling the original
> config.guess, and what is the output of the fixed one?
>
> Now try again and post again the contents of config.log and the full
> output of your configure and make invocation.
>
> Regards,
>
> Rainer
>   
thanks. The buildconf output is similiar, and the config.guess file is 
missing the 456 string. After work I'll get the rest done.

Mime
View raw message