You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Michael Felt <ma...@gmail.com> on 2011/12/26 18:17:01 UTC

AIX porting, various levels, creating a DESTDIR build and related "issues"

Hi all,

I am getting back to doing "recent" ports to AIX 5.3+ and am running into
various minor issues. I do not wish to call any of them a "bug",
but would like to discuss the best approach to get some modifications
worked on so that they go away. This may be a modification in my
understanding (aka learning).

Note: when I use  --enable-maintainer-mode I get some "errors" from the IBM
compiler that stop all activity. I am not concerned with those now.

As I would like to create an installable package I am exporting DESTDIR and
then running "make install"

If I do this immediately (with no install in the normal (runtime) position
I get an error early on during the install (see example 1 below) - while
the "normal" install completes with no errors.
Example 1:

> ....
> Making install in apr-util
> Making all in xml/expat
> Target "all" is up to date.
> Target "local-all" is up to date.
>         /data/prj/httpd-2.2.21/srclib/apr/build/mkdir.sh
> /data/prj/build/http_2221/opt/apache2/include
> /data/prj/build/http_2221/var/apache2/lib/pkgconfig
> /data/prj/build/http_2221/var/apache2/lib
> /data/prj/build/http_2221/var/apache2/bin
>         for f in /data/prj/httpd-2.2.21/srclib/apr-util/include/*.h
> /data/prj/httpd-2.2.21/srclib/apr-util/include/*.h; do  build/install.sh -c
> -m 644 ${f} /data/prj/build/http_2221/opt/apache2/include;  done
>         build/install.sh -c -m 644 apr-util.pc
> /data/prj/build/http_2221/var/apache2/lib/pkgconfig/apr-util-1.pc
>         list='xml/expat'; for i in $list; do  ( cd $i ; make
> DESTDIR=/data/prj/build/http_2221 install );  done
>         /bin/sh ./conftools/mkinstalldirs
> /data/prj/build/http_2221/var/apache2/lib
> /data/prj/build/http_2221/opt/apache2/include
>         /bin/sh ./libtool  --mode=install conftools/install-sh -c
> libexpat.la /data/prj/build/http_2221/var/apache2/lib/libexpat.la
> conftools/install-sh -c .libs/libexpat.a
> /data/prj/build/http_2221/var/apache2/lib/libexpat.a
> conftools/install-sh -c .libs/libexpat.lai
> /data/prj/build/http_2221/var/apache2/lib/libexpat.la
> libtool: install: warning: remember to run `libtool --finish
> /var/apache2/lib'
>         conftools/install-sh -c -m 644 ./lib/expat.h
> /data/prj/build/http_2221/opt/apache2/include
> Target "install" is up to date.
>         /bin/sh /data/prj/httpd-2.2.21/srclib/apr/libtool --mode=install
> build/install.sh -c -m 755 libaprutil-1.la/data/prj/build/http_2221/var/apache2/lib
> libtool: install: warning: relinking `libaprutil-1.la'
> (cd /data/prj/httpd-2.2.21/srclib/apr-util; /bin/sh
> /data/prj/httpd-2.2.21/srclib/apr/libtool  --silent --mode=relink cc
> -qlanglvl=extc89 -g -qHALT=E -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE
> -D_USE_IRS -D_LARGEFILE64_SOURCE
> -I/data/prj/httpd-2.2.21/srclib/apr-util/include
> -I/data/prj/httpd-2.2.21/srclib/apr-util/include/private
> -I/data/prj/httpd-2.2.21/srclib/apr/include
> -I/data/prj/httpd-2.2.21/srclib/apr-util/xml/expat/lib -version-info 3:12:3
> -Wl,-brtl -o libaprutil-1.la -rpath /var/apache2/lib
> buckets/apr_brigade.lo buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo
> buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo
> buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo
> buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo
> buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo
> buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo
> crypto/apr_md4.lo crypto/apr_md5.lo crypto/apr_sha1.lo crypto/getuuid.lo
> crypto/uuid.lo dbd/apr_dbd.lo dbm/apr_dbm.lo dbm/apr_dbm_sdbm.lo
> dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo dbm/sdbm/sdbm_lock.lo
> dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo hooks/apr_hooks.lo
> ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo memcache/apr_memcache.lo
> misc/apr_date.lo misc/apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo
> misc/apr_thread_pool.lo misc/apu_dso.lo misc/apu_version.lo
> strmatch/apr_strmatch.lo uri/apr_uri.lo xlate/xlate.lo xml/apr_xml.lo
> -lpthread /data/prj/httpd-2.2.21/srclib/apr-util/xml/expat/libexpat.la-liconv /data/prj/httpd-2.2.21/srclib/apr/
> libapr-1.la -lpthread -inst-prefix-dir /data/prj/build/http_2221)
> cc: 1501-228 input file /var/apache2/lib/libexpat.a not found
> cc: 1501-228 input file /var/apache2/lib/libapr-1.so not found
> libtool: install: error: relink `libaprutil-1.la' with the above command
> before installing it
> 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.
> root@x105:[/data/prj/httpd-2.2.21]
>
>
After completing the normal install, exporting DESTDIR and "make install"
still do not complete.

Example 2:

> mkdir /data/prj/build/http_2221/etc/apache2/original
> mkdir /data/prj/build/http_2221/etc/apache2/original/extra
> Installing HTML documents
> mkdir /data/prj/build/http_2221/var/apache2/htdocs
> cp: /data/prj/build/http_2221/var/apache2/htdocs/index.html: A system call
> received a parameter that is not valid.
> Installing error documents
> mkdir /data/prj/build/http_2221/var/apache2/error
> cp: /data/prj/build/http_2221/var/apache2/error/HTTP_BAD_GATEWAY.html.var:
> A system call received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/error/HTTP_BAD_REQUEST.html.var:
> A system call received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/error/HTTP_FORBIDDEN.html.var: A
> system call received a parameter that is not valid.
> ....
> cp: /data/prj/build/http_2221/var/apache2/error/include: A system call
> received a parameter that is not valid.
> Installing icons
> mkdir /data/prj/build/http_2221/var/apache2/icons
> cp: /data/prj/build/http_2221/var/apache2/icons/README: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/icons/README.html: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/icons/a.gif: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/icons/a.png: A system call
> received a parameter that is not valid.
> ...
>
cp: /data/prj/build/http_2221/var/apache2/icons/world2.gif: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/icons/world2.png: A system call
> received a parameter that is not valid.
> mkdir /data/prj/build/http_2221/var/apache2/logs
> mkdir /data/prj/build/http_2221/var/apache2/run
> Installing CGIs
> mkdir /data/prj/build/http_2221/var/apache2/cgi-bin
> cp: /data/prj/build/http_2221/var/apache2/cgi-bin/printenv: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/var/apache2/cgi-bin/test-cgi: A system call
> received a parameter that is not valid.
> Installing header files
> Installing build system files
> Installing man pages and online manual
> mkdir /data/prj/build/http_2221/usr
>
mkdir /data/prj/build/http_2221/usr/share
> mkdir /data/prj/build/http_2221/usr/share/man
> mkdir /data/prj/build/http_2221/usr/share/man/man1
> mkdir /data/prj/build/http_2221/usr/share/man/man8
> mkdir /data/prj/build/http_2221/var/apache2/manual
> cp: /data/prj/build/http_2221/usr/share/man/man1/dbmmanage.1: A system
> call received a parameter that is not valid.
> cp: /data/prj/build/http_2221/usr/share/man/man1/htdbm.1: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/usr/share/man/man1/htdigest.1: A system call
> received a parameter that is not valid.
> cp: /data/prj/build/http_2221/usr/share/man/man1/htpasswd.1: A system call
> received a parameter that is not valid.
> make: 1254-004 The error code from the last command is 1.
>
> Are these "bugs", or am I not understanding something. I am ready to
investigate - would appreciate hints on where to start.

Sincerely,
Michael

Re: AIX porting, various levels, creating a DESTDIR build and related "issues"

Posted by Michael Felt <ma...@gmail.com>.
Note: I created an AIX layout that I am using:

#   Adopt layout using /opt (read-only) filesystem conventions on AIX
#       Standard executables in /opt (shareable)
#       man pages at AIX standard location (/usr/share/man)
#       editable files, scripts in /etc and /var
<Layout AIX>
    prefix:        /opt/apache2
    exec_prefix:   /var/apache2
    bindir:        ${exec_prefix}/bin
    sbindir:       ${exec_prefix}/sbin
    libdir:        ${exec_prefix}/lib
    libexecdir:    ${exec_prefix}/libexec
    mandir:        /usr/share/man
    sysconfdir:    /etc+
    datadir:       /var+
    installbuilddir: ${datadir}/build
    errordir:      ${datadir}/error
    iconsdir:      ${datadir}/icons
    htdocsdir:     ${datadir}/htdocs
    manualdir:     ${datadir}/manual
    cgidir:        ${datadir}/cgi-bin
    includedir:    ${prefix}/include
    localstatedir: /var+
    runtimedir:    ${localstatedir}/run
    logfiledir:    ${localstatedir}/logs
    proxycachedir: ${localstatedir}/proxy
</Layout>

On Mon, Dec 26, 2011 at 6:17 PM, Michael Felt <ma...@gmail.com> wrote:

> Hi all,
>
> I am getting back to doing "recent" ports to AIX 5.3+ and am running into
> various minor issues. I do not wish to call any of them a "bug",
> but would like to discuss the best approach to get some modifications
> worked on so that they go away. This may be a modification in my
> understanding (aka learning).
>
> Note: when I use  --enable-maintainer-mode I get some "errors" from the
> IBM compiler that stop all activity. I am not concerned with those now.
>
> As I would like to create an installable package I am exporting DESTDIR
> and then running "make install"
>
> If I do this immediately (with no install in the normal (runtime) position
> I get an error early on during the install (see example 1 below) - while
> the "normal" install completes with no errors.
> Example 1:
>
>> ....
>> Making install in apr-util
>> Making all in xml/expat
>> Target "all" is up to date.
>> Target "local-all" is up to date.
>>         /data/prj/httpd-2.2.21/srclib/apr/build/mkdir.sh
>> /data/prj/build/http_2221/opt/apache2/include
>> /data/prj/build/http_2221/var/apache2/lib/pkgconfig
>> /data/prj/build/http_2221/var/apache2/lib
>> /data/prj/build/http_2221/var/apache2/bin
>>         for f in /data/prj/httpd-2.2.21/srclib/apr-util/include/*.h
>> /data/prj/httpd-2.2.21/srclib/apr-util/include/*.h; do  build/install.sh -c
>> -m 644 ${f} /data/prj/build/http_2221/opt/apache2/include;  done
>>         build/install.sh -c -m 644 apr-util.pc
>> /data/prj/build/http_2221/var/apache2/lib/pkgconfig/apr-util-1.pc
>>         list='xml/expat'; for i in $list; do  ( cd $i ; make
>> DESTDIR=/data/prj/build/http_2221 install );  done
>>         /bin/sh ./conftools/mkinstalldirs
>> /data/prj/build/http_2221/var/apache2/lib
>> /data/prj/build/http_2221/opt/apache2/include
>>         /bin/sh ./libtool  --mode=install conftools/install-sh -c
>> libexpat.la /data/prj/build/http_2221/var/apache2/lib/libexpat.la
>> conftools/install-sh -c .libs/libexpat.a
>> /data/prj/build/http_2221/var/apache2/lib/libexpat.a
>> conftools/install-sh -c .libs/libexpat.lai
>> /data/prj/build/http_2221/var/apache2/lib/libexpat.la
>> libtool: install: warning: remember to run `libtool --finish
>> /var/apache2/lib'
>>         conftools/install-sh -c -m 644 ./lib/expat.h
>> /data/prj/build/http_2221/opt/apache2/include
>> Target "install" is up to date.
>>         /bin/sh /data/prj/httpd-2.2.21/srclib/apr/libtool --mode=install
>> build/install.sh -c -m 755 libaprutil-1.la/data/prj/build/http_2221/var/apache2/lib
>> libtool: install: warning: relinking `libaprutil-1.la'
>> (cd /data/prj/httpd-2.2.21/srclib/apr-util; /bin/sh
>> /data/prj/httpd-2.2.21/srclib/apr/libtool  --silent --mode=relink cc
>> -qlanglvl=extc89 -g -qHALT=E -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE
>> -D_USE_IRS -D_LARGEFILE64_SOURCE
>> -I/data/prj/httpd-2.2.21/srclib/apr-util/include
>> -I/data/prj/httpd-2.2.21/srclib/apr-util/include/private
>> -I/data/prj/httpd-2.2.21/srclib/apr/include
>> -I/data/prj/httpd-2.2.21/srclib/apr-util/xml/expat/lib -version-info 3:12:3
>> -Wl,-brtl -o libaprutil-1.la -rpath /var/apache2/lib
>> buckets/apr_brigade.lo buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo
>> buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo
>> buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo
>> buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo
>> buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo
>> buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo
>> crypto/apr_md4.lo crypto/apr_md5.lo crypto/apr_sha1.lo crypto/getuuid.lo
>> crypto/uuid.lo dbd/apr_dbd.lo dbm/apr_dbm.lo dbm/apr_dbm_sdbm.lo
>> dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo dbm/sdbm/sdbm_lock.lo
>> dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo hooks/apr_hooks.lo
>> ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo memcache/apr_memcache.lo
>> misc/apr_date.lo misc/apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo
>> misc/apr_thread_pool.lo misc/apu_dso.lo misc/apu_version.lo
>> strmatch/apr_strmatch.lo uri/apr_uri.lo xlate/xlate.lo xml/apr_xml.lo
>> -lpthread /data/prj/httpd-2.2.21/srclib/apr-util/xml/expat/libexpat.la-liconv /data/prj/httpd-2.2.21/srclib/apr/
>> libapr-1.la -lpthread -inst-prefix-dir /data/prj/build/http_2221)
>> cc: 1501-228 input file /var/apache2/lib/libexpat.a not found
>> cc: 1501-228 input file /var/apache2/lib/libapr-1.so not found
>> libtool: install: error: relink `libaprutil-1.la' with the above command
>> before installing it
>> 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.
>> root@x105:[/data/prj/httpd-2.2.21]
>>
>>
> After completing the normal install, exporting DESTDIR and "make install"
> still do not complete.
>
> Example 2:
>
>> mkdir /data/prj/build/http_2221/etc/apache2/original
>> mkdir /data/prj/build/http_2221/etc/apache2/original/extra
>> Installing HTML documents
>> mkdir /data/prj/build/http_2221/var/apache2/htdocs
>> cp: /data/prj/build/http_2221/var/apache2/htdocs/index.html: A system
>> call received a parameter that is not valid.
>> Installing error documents
>> mkdir /data/prj/build/http_2221/var/apache2/error
>> cp:
>> /data/prj/build/http_2221/var/apache2/error/HTTP_BAD_GATEWAY.html.var: A
>> system call received a parameter that is not valid.
>> cp:
>> /data/prj/build/http_2221/var/apache2/error/HTTP_BAD_REQUEST.html.var: A
>> system call received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/var/apache2/error/HTTP_FORBIDDEN.html.var:
>> A system call received a parameter that is not valid.
>> ....
>> cp: /data/prj/build/http_2221/var/apache2/error/include: A system call
>> received a parameter that is not valid.
>> Installing icons
>> mkdir /data/prj/build/http_2221/var/apache2/icons
>> cp: /data/prj/build/http_2221/var/apache2/icons/README: A system call
>> received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/var/apache2/icons/README.html: A system
>> call received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/var/apache2/icons/a.gif: A system call
>> received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/var/apache2/icons/a.png: A system call
>> received a parameter that is not valid.
>> ...
>>
> cp: /data/prj/build/http_2221/var/apache2/icons/world2.gif: A system call
>> received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/var/apache2/icons/world2.png: A system call
>> received a parameter that is not valid.
>> mkdir /data/prj/build/http_2221/var/apache2/logs
>> mkdir /data/prj/build/http_2221/var/apache2/run
>> Installing CGIs
>> mkdir /data/prj/build/http_2221/var/apache2/cgi-bin
>> cp: /data/prj/build/http_2221/var/apache2/cgi-bin/printenv: A system call
>> received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/var/apache2/cgi-bin/test-cgi: A system call
>> received a parameter that is not valid.
>> Installing header files
>> Installing build system files
>> Installing man pages and online manual
>> mkdir /data/prj/build/http_2221/usr
>>
> mkdir /data/prj/build/http_2221/usr/share
>> mkdir /data/prj/build/http_2221/usr/share/man
>> mkdir /data/prj/build/http_2221/usr/share/man/man1
>> mkdir /data/prj/build/http_2221/usr/share/man/man8
>> mkdir /data/prj/build/http_2221/var/apache2/manual
>> cp: /data/prj/build/http_2221/usr/share/man/man1/dbmmanage.1: A system
>> call received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/usr/share/man/man1/htdbm.1: A system call
>> received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/usr/share/man/man1/htdigest.1: A system
>> call received a parameter that is not valid.
>> cp: /data/prj/build/http_2221/usr/share/man/man1/htpasswd.1: A system
>> call received a parameter that is not valid.
>> make: 1254-004 The error code from the last command is 1.
>>
>> Are these "bugs", or am I not understanding something. I am ready to
> investigate - would appreciate hints on where to start.
>
> Sincerely,
> Michael
>

Re: AIX porting, various levels, creating a DESTDIR build and related "issues"

Posted by Michael Felt <ma...@gmail.com>.
That may explain why the initial install into the DESTDIR fails, but what
is failing (the cp (copies)) in the second example - after the regular
install has been completed.

FYI: two+ years ago (2.2.13 and 2.2.16 I did not have the second problem,
but then I was using the Apache layout)

Thanks,
Michael

On Mon, Dec 26, 2011 at 11:02 PM, Eric Covener <co...@gmail.com> wrote:

> > In the code snippet $^O is the file being "installed"? - and it is all
> > written perl?
>
> Just the OS. I think we do this between make and make install in our
> scripts that drive the build. If I ever have to revisit, I'll probably
> "make install DESTDIR=xxx" individually and not treat expat and
> apr/apu as bundled.
>

Re: AIX porting, various levels, creating a DESTDIR build and related "issues"

Posted by Eric Covener <co...@gmail.com>.
> In the code snippet $^O is the file being "installed"? - and it is all
> written perl?

Just the OS. I think we do this between make and make install in our
scripts that drive the build. If I ever have to revisit, I'll probably
"make install DESTDIR=xxx" individually and not treat expat and
apr/apu as bundled.

Re: AIX porting, various levels, creating a DESTDIR build and related "issues"

Posted by Michael Felt <ma...@gmail.com>.
Thank you. Just have to figure out where this fits :p. I have never really
understood libtool (:p and I wonder if libtool has ever really understood
AIX.)

What I do recall is that in apr there is a single reference to AIX
regarding shared libraries, and rather than use slibclean (shared library
clean) it performs a rm -f ${...} -- which by the way fails, even with the
-f, if a shared function is still still loaded in memory.

This gets in the way of "make install" for php which copies, then removes,
then fails to chmod the libexec/libphp*.so object. (but this is a different
question).

In the code snippet $^O is the file being "installed"? - and it is all
written perl?

Sincerely,
Michael

On Mon, Dec 26, 2011 at 8:52 PM, Eric Covener <co...@gmail.com> wrote:

> On Mon, Dec 26, 2011 at 12:17 PM, Michael Felt <ma...@gmail.com> wrote:
> > Hi all,
> >
> > I am getting back to doing "recent" ports to AIX 5.3+ and am running into
> > various minor issues. I do not wish to call any of them a "bug",
> > but would like to discuss the best approach to get some modifications w
> >> cc: 1501-228 input file /var/apache2/lib/libexpat.a not found
> >> cc: 1501-228 input file /var/apache2/lib/libapr-1.so not found
> >> libtool: install: error: relink `libaprutil-1.la' with the above
> command
>
> FWIW, here's the crude way I work around this on AIX w/ DESTDIR
>
> # AIX/HPUX-parisc: When libtool is relinking libaprutil for install,
> # it tries to pass $libdir/foo.la for expat and apr, because the .la
> files think they've been installed
> # without the DESTDIR prepended to them. The change below changes the
> linkage to look like non-libtool for expat
> # and excludes the linkage for apr
>
>
> if ($^O eq "aix") {
>    if ($destdir) {
>        $rc = run_cmd("perl -p -i.orig -e  \"s#[^
> ]+libexpat.la#-L$curdir/srclib/apr-util/xml/expat/lib/ -lexpat#" .
>                      " ; s#[^ ]+libapr-1.la##;\" "  .
>                      "$curdir/srclib/apr-util/Makefile" , $logfile, 1);
>        exit_and_log($rc, $logfile, "APRUTIL_LIBS replace failed ") if
> ($rc != 0);
>    }
> }
>

Re: AIX porting, various levels, creating a DESTDIR build and related "issues"

Posted by Eric Covener <co...@gmail.com>.
On Mon, Dec 26, 2011 at 12:17 PM, Michael Felt <ma...@gmail.com> wrote:
> Hi all,
>
> I am getting back to doing "recent" ports to AIX 5.3+ and am running into
> various minor issues. I do not wish to call any of them a "bug",
> but would like to discuss the best approach to get some modifications w
>> cc: 1501-228 input file /var/apache2/lib/libexpat.a not found
>> cc: 1501-228 input file /var/apache2/lib/libapr-1.so not found
>> libtool: install: error: relink `libaprutil-1.la' with the above command

FWIW, here's the crude way I work around this on AIX w/ DESTDIR

# AIX/HPUX-parisc: When libtool is relinking libaprutil for install,
# it tries to pass $libdir/foo.la for expat and apr, because the .la
files think they've been installed
# without the DESTDIR prepended to them. The change below changes the
linkage to look like non-libtool for expat
# and excludes the linkage for apr


if ($^O eq "aix") {
    if ($destdir) {
        $rc = run_cmd("perl -p -i.orig -e  \"s#[^
]+libexpat.la#-L$curdir/srclib/apr-util/xml/expat/lib/ -lexpat#" .
                      " ; s#[^ ]+libapr-1.la##;\" "  .
                      "$curdir/srclib/apr-util/Makefile" , $logfile, 1);
        exit_and_log($rc, $logfile, "APRUTIL_LIBS replace failed ") if
($rc != 0);
    }
}