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/27 14:56:18 UTC

httpd-2.3.16-beta "make install" fails...

AIX 5.3.7
xlC v7


After "minor" edits, compiles (with warnings)

root@x105:[/data/prj/httpd-2.3.16-beta]./httpd -V
Server version: Apache/2.3.16 (Unix)
Server built:   Dec 27 2011 07:28:45
Server's Module Magic Number: 20111203:0
Server loaded:  APR 1.4.5, APR-UTIL 1.4.1
Compiled using: APR 1.4.5, APR-UTIL 1.4.1
Architecture:   32-bit
Server MPM:     worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/opt/apache2"
 -D SUEXEC_BIN="/opt/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="/var/apache2/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"

make install fails...
...
Target "local-install" is up to date.
Target "install" is up to date.
Making install in modules
Making install in aaa
rm -f /var/apache2/libexec/mod_authn_file.so
/data/prj/httpd-2.3.16-beta/srclib/apr/libtool --silent --mode=install
install mod_authn_file.la /var/apache2/libexec/
find: bad status-- /var/apache2/libexec/mod_authn_file.so
install: File mod_authn_file.so was not found.
make: 1254-004 The error code from the last command is 2.


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.
root@x105:[/data/prj/httpd-2.3.16-beta]find .  -ls | grep  mod_authn_file
60751    1 -rw-r--r--  1 michael   system         415 Nov  8 23:46
./docs/manual/mod/mod_authn_file.html
60752    9 -rw-r--r--  1 michael   system        9043 Dec 15 14:38
./docs/manual/mod/mod_authn_file.html.en
60753   10 -rw-r--r--  1 michael   system        9764 Dec 15 14:38
./docs/manual/mod/mod_authn_file.html.fr
60754   10 -rw-r--r--  1 michael   system        9977 Dec 15 14:38
./docs/manual/mod/mod_authn_file.html.ja.utf8
60755    8 -rw-r--r--  1 michael   system        8130 Dec 15 14:38
./docs/manual/mod/mod_authn_file.html.ko.euc-kr
70559    8 -rw-r--r--  1 michael   system        7942 Dec 27 07:39
./modules/aaa/.libs/mod_authn_file.o
70560    1 -rw-r--r--  1 michael   system          18 Dec 27 07:39
./modules/aaa/.libs/mod_authn_file.exp
70561   12 -rwxr-xr-x  1 michael   system       11554 Dec 27 07:39
./modules/aaa/.libs/mod_authn_file.so
70562    9 -rw-r--r--  1 michael   system        8520 Dec 27 07:39
./modules/aaa/.libs/mod_authn_file.a
70563    1 -rw-r--r--  1 michael   system         963 Dec 27 07:39
./modules/aaa/.libs/mod_authn_file.lai
70564    1 lrwxrwxrwx  1 root      system          20 Dec 27 07:39
./modules/aaa/.libs/mod_authn_file.la -> ../mod_authn_file.la
60415    7 -rw-r--r--  1 michael   system        6389 Dec  5 00:08
./modules/aaa/mod_authn_file.c
60424    5 -rw-r--r--  1 michael   system        4645 Jan 11  2007
./modules/aaa/mod_authn_file.dsp
615754    1 -rw-r--r--  1 michael   system         962 Dec 27 07:39
./modules/aaa/mod_authn_file.la
615752    1 -rw-r--r--  1 michael   system         294 Dec 27 07:39
./modules/aaa/mod_authn_file.lo
615751    8 -rw-r--r--  1 michael   system        7942 Dec 27 07:39
./modules/aaa/mod_authn_file.o
615753    0 -rw-r--r--  1 michael   system           0 Dec 27 07:39
./modules/aaa/mod_authn_file.slo
root@x105:[/data/prj/httpd-2.3.16-beta]

Suggestions?

Michael

Re: httpd-2.3.16-beta "make install" fails...

Posted by Michael Felt <ma...@gmail.com>.
OK. longer threads.

On Tue, Dec 27, 2011 at 3:50 PM, Eric Covener <co...@gmail.com> wrote:

> On Tue, Dec 27, 2011 at 8:56 AM, Michael Felt <ma...@gmail.com> wrote:
> > AIX 5.3.7
> > xlC v7
>
> Would prefer a longer thread than so many separate ones.
>
> > install: File mod_authn_file.so was not found.
> > make: 1254-004 The error code from the last command is 2.
>
> What libtool are you using? It looks like it thinks your AIX system
> doesn't support shared libraries.
>
> I generally test httpd releases with libtool 2.4 on AIX (6.1)
>

On the system I am porting with I only have the compiler installed. I have
not installed a separate libtool so I imagine I am using the embedded
libtool.
>From what I thought I was reading in terms of flags, etc. I thought it was
using shared libraries - but I may have been reading wrong.

>From config.status (attached) I read:

S["LIBTOOL"]="/data/prj/httpd-2.3.16-beta/srclib/apr/libtool $(LTFLAGS)"
and
S["INSTALL"]="$(LIBTOOL) --mode=install $(abs_srcdir)/build/install.sh -c"

Could not find just "LIBTOOL" for $(LIBTOOL) in config.status, but I
suspect it is being translated to the apr/libtool.

sincerely,
Michael

Re: httpd-2.3.16-beta "make install" fails...

Posted by Michael Felt <ma...@gmail.com>.
"longer thread :p at me" seems 2.4.2 is the latest.

On Wed, Dec 28, 2011 at 12:06 PM, Michael Felt <ma...@gmail.com> wrote:

> root@x105:[/data/prj/httpd-2.3.16-beta]src*/apr/libtool --version
> libtool (GNU libtool) 2.4.2
> Written by Gordon Matzigkeit <go...@gnu.ai.mit.edu>, 1996
>
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> --- So how can I be sure that a new libtool is being used (downloading
> after I send this)?
>
> On Tue, Dec 27, 2011 at 3:50 PM, Eric Covener <co...@gmail.com> wrote:
>
>> On Tue, Dec 27, 2011 at 8:56 AM, Michael Felt <ma...@gmail.com> wrote:
>> > AIX 5.3.7
>> > xlC v7
>>
>> Would prefer a longer thread than so many separate ones.
>>
>> > install: File mod_authn_file.so was not found.
>> > make: 1254-004 The error code from the last command is 2.
>>
>> What libtool are you using? It looks like it thinks your AIX system
>> doesn't support shared libraries.
>>
>> I generally test httpd releases with libtool 2.4 on AIX (6.1)
>>
>
>

Re: httpd-2.3.16-beta "make install" fails...

Posted by Michael Felt <ma...@gmail.com>.
root@x105:[/data/prj/httpd-2.3.16-beta]src*/apr/libtool --version
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <go...@gnu.ai.mit.edu>, 1996

Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--- So how can I be sure that a new libtool is being used (downloading
after I send this)?

On Tue, Dec 27, 2011 at 3:50 PM, Eric Covener <co...@gmail.com> wrote:

> On Tue, Dec 27, 2011 at 8:56 AM, Michael Felt <ma...@gmail.com> wrote:
> > AIX 5.3.7
> > xlC v7
>
> Would prefer a longer thread than so many separate ones.
>
> > install: File mod_authn_file.so was not found.
> > make: 1254-004 The error code from the last command is 2.
>
> What libtool are you using? It looks like it thinks your AIX system
> doesn't support shared libraries.
>
> I generally test httpd releases with libtool 2.4 on AIX (6.1)
>

Re: httpd-2.3.16-beta "make install" fails...

Posted by Eric Covener <co...@gmail.com>.
On Tue, Dec 27, 2011 at 8:56 AM, Michael Felt <ma...@gmail.com> wrote:
> AIX 5.3.7
> xlC v7

Would prefer a longer thread than so many separate ones.

> install: File mod_authn_file.so was not found.
> make: 1254-004 The error code from the last command is 2.

What libtool are you using? It looks like it thinks your AIX system
doesn't support shared libraries.

I generally test httpd releases with libtool 2.4 on AIX (6.1)

Re: httpd-2.3.16-beta "make install" fails...

Posted by Michael Felt <ma...@gmail.com>.
I do not understand your patch either :p @ me, I am working on a seperate
build/aix for apr and will "depend" on that for build/aix with httpd as
well.

Same "depends" on external expat, and (with 2.4.0, pcre).

In any case, sounds like it is not "really" httpd issue/concern, so "not a
bug" :)

On Tue, Feb 7, 2012 at 4:28 PM, Eric Covener <co...@gmail.com> wrote:

> FWIW, I have a hack between make/make install w/ DESTDIR in my 22x AIX
> builds for this.  I think it's probably better as Graham says to not
> build w/ bundled deps as DESTDIR (if I could go back, I'd make install
> DESTDIR= the prereqs one at a time).
>
> # 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
> 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
>
> (caution: comment writer / kludger doesn't understand autoconf/libtool)
>

Re: httpd-2.3.16-beta "make install" fails...

Posted by Eric Covener <co...@gmail.com>.
FWIW, I have a hack between make/make install w/ DESTDIR in my 22x AIX
builds for this.  I think it's probably better as Graham says to not
build w/ bundled deps as DESTDIR (if I could go back, I'd make install
DESTDIR= the prereqs one at a time).

# 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
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

(caution: comment writer / kludger doesn't understand autoconf/libtool)

Re: httpd-2.3.16-beta "make install" fails...

Posted by Graham Leggett <mi...@sharp.fm>.
On 07 Feb 2012, at 4:03 PM, Michael Felt wrote:

> Unfortunately, while installing coreutils fixed it for 2.3.16/2.4.0, it is still 'broken' for 2.2.22
> 
> I have used both the AIXToolBox version - (ancient  coreutils-5.2.1-2) - which has extra warnings ;) and also
> coreutils 8.14.
> 
> So, new bug-report?

> cc: 1501-228 input file /opt/httpd/lib/libexpat.a not found
> cc: 1501-228 input file /opt/httpd/lib/libapr-1.so not found

Again, it looks like you're trying to build the version of httpd that contains built in copies of dependent packages, in this case APR, and expat.

You need to package all dependencies of httpd, that means everything in the srclib directory, as separate system installed packages in order for this to work properly.

Even if you manage to get this to build, you're going to have pain at runtime caused by the same or similar libraries being installed in the library path potentially multiple times.

Regards,
Graham
--


Re: httpd-2.3.16-beta "make install" fails...

Posted by Michael Felt <ma...@gmail.com>.
Unfortunately, while installing coreutils fixed it for 2.3.16/2.4.0, it is
still 'broken' for 2.2.22

I have used both the AIXToolBox version - (ancient  coreutils-5.2.1-2) -
which has extra warnings ;) and also
coreutils 8.14.

So, new bug-report?
===
+ make install DESTDIR=/var/tmp/root/httpd.2.2.22 > build/aix/install.out
mkdir /var/tmp/root/httpd.2.2.22
mkdir /var/tmp/root/httpd.2.2.22/opt
mkdir /var/tmp/root/httpd.2.2.22/opt/httpd
mkdir /var/tmp/root/httpd.2.2.22/opt/httpd/lib
mkdir /var/tmp/root/httpd.2.2.22/opt/httpd/bin
mkdir /var/tmp/root/httpd.2.2.22/var
mkdir /var/tmp/root/httpd.2.2.22/var/httpd
mkdir /var/tmp/root/httpd.2.2.22/var/httpd/build
mkdir /var/tmp/root/httpd.2.2.22/opt/httpd/lib/pkgconfig
mkdir /var/tmp/root/httpd.2.2.22/opt/httpd/include
libtool: install: warning: remember to run `libtool --finish /opt/httpd/lib'
libtool: install: warning: remember to run `libtool --finish /opt/httpd/lib'
libtool: install: warning: relinking `libaprutil-1.la'
cc: 1501-228 input file /opt/httpd/lib/libexpat.a not found
cc: 1501-228 input file /opt/httpd/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.
make install returned an error
====
p.s. If I run a regular make install, and then the command above, the
command above succeeds.
p.p.s. - I am also wondering about the libtool warnings about --finish - I
have done them, but also not done them and cannot determine what the
difference is.

Michael


On Tue, Jan 3, 2012 at 2:48 PM, Eric Covener <co...@gmail.com> wrote:

> On Tue, Dec 27, 2011 at 8:56 AM, Michael Felt <ma...@gmail.com> wrote:
> > AIX 5.3.7
> > xlC v7
> >
> >
> > After "minor" edits, compiles (with warnings)
> >
> > root@x105:[/data/prj/httpd-2.3.16-beta]./httpd -V
> > Server version: Apache/2.3.16 (Unix)
> > Server built:   Dec 27 2011 07:28:45
> > Server's Module Magic Number: 20111203:0
> > Server loaded:  APR 1.4.5, APR-UTIL 1.4.1
> > Compiled using: APR 1.4.5, APR-UTIL 1.4.1
> > Architecture:   32-bit
> > Server MPM:     worker
> >   threaded:     yes (fixed thread count)
> >     forked:     yes (variable process count)
> > Server compiled with....
> >  -D APR_HAS_SENDFILE
> >  -D APR_HAS_MMAP
> >  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
> >  -D APR_USE_SYSVSEM_SERIALIZE
> >  -D APR_USE_PTHREAD_SERIALIZE
> >  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
> >  -D APR_HAS_OTHER_CHILD
> >  -D AP_HAVE_RELIABLE_PIPED_LOGS
> >  -D DYNAMIC_MODULE_LIMIT=256
> >  -D HTTPD_ROOT="/opt/apache2"
> >  -D SUEXEC_BIN="/opt/apache2/bin/suexec"
> >  -D DEFAULT_PIDLOG="/var/apache2/run/httpd.pid"
> >  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> >  -D DEFAULT_ERRORLOG="logs/error_log"
> >  -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
> >  -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
> >
> > make install fails...
> > ...
> > Target "local-install" is up to date.
> > Target "install" is up to date.
> > Making install in modules
> > Making install in aaa
> > rm -f /var/apache2/libexec/mod_authn_file.so
> > /data/prj/httpd-2.3.16-beta/srclib/apr/libtool --silent --mode=install
> > install mod_authn_file.la /var/apache2/libexec/
> > find: bad status-- /var/apache2/libexec/mod_authn_file.so
> > install: File mod_authn_file.so was not found.
> > make: 1254-004 The error code from the last command is 2.
> >
> >
> > 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.
> >
>
> FWIW we discovered offline that we needed GNU coreutils (for
> /opt/freeware/bin/install) on AIX.
>

Re: httpd-2.3.16-beta "make install" fails...

Posted by Eric Covener <co...@gmail.com>.
On Tue, Dec 27, 2011 at 8:56 AM, Michael Felt <ma...@gmail.com> wrote:
> AIX 5.3.7
> xlC v7
>
>
> After "minor" edits, compiles (with warnings)
>
> root@x105:[/data/prj/httpd-2.3.16-beta]./httpd -V
> Server version: Apache/2.3.16 (Unix)
> Server built:   Dec 27 2011 07:28:45
> Server's Module Magic Number: 20111203:0
> Server loaded:  APR 1.4.5, APR-UTIL 1.4.1
> Compiled using: APR 1.4.5, APR-UTIL 1.4.1
> Architecture:   32-bit
> Server MPM:     worker
>   threaded:     yes (fixed thread count)
>     forked:     yes (variable process count)
> Server compiled with....
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_SYSVSEM_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=256
>  -D HTTPD_ROOT="/opt/apache2"
>  -D SUEXEC_BIN="/opt/apache2/bin/suexec"
>  -D DEFAULT_PIDLOG="/var/apache2/run/httpd.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
>  -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
>
> make install fails...
> ...
> Target "local-install" is up to date.
> Target "install" is up to date.
> Making install in modules
> Making install in aaa
> rm -f /var/apache2/libexec/mod_authn_file.so
> /data/prj/httpd-2.3.16-beta/srclib/apr/libtool --silent --mode=install
> install mod_authn_file.la /var/apache2/libexec/
> find: bad status-- /var/apache2/libexec/mod_authn_file.so
> install: File mod_authn_file.so was not found.
> make: 1254-004 The error code from the last command is 2.
>
>
> 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.
>

FWIW we discovered offline that we needed GNU coreutils (for
/opt/freeware/bin/install) on AIX.