Apache 2.0.49 strange compile/install issue mod_layout - no .so file built

ZGWerke <[email protected]> Fri, 2 Apr 2004 18:37:58 +0200
Newsgroups gmane.comp.apache.mod-layout
Organization ZGWerke
Message-ID <[email protected]>
It doesn't build a .so file. Instead a series of .la files. Here's the
output. This is Version 4.0.1a Oct 21 2002

Output of make/make install as follows...

sh-2.05b# make
/usr/local/apache2/bin/apxs -c mod_layout.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include   -c -o mod_layout.lo mod_layout.c && touch mod_layout.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_layout.la  -rpath /usr/local/apache2/modules -module -avoid-version    mod_layout.lo
/usr/local/apache2/bin/apxs -c utility.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include   -c -o utility.lo utility.c && touch utility.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o utility.la  -rpath /usr/local/apache2/modules -module -avoid-version    utility.lo
/usr/local/apache2/bin/apxs -c layout.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include   -c -o layout.lo layout.c && touch layout.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o layout.la  -rpath /usr/local/apache2/modules -module -avoid-version    layout.lo
/usr/local/apache2/bin/apxs -o liblayout.la -c mod_layout.lo utility.lo layout.lo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o liblayout.la  -rpath /usr/local/apache2/modules -module -avoid-version    mod_layout.lo utility.lo layout.lo
#/usr/local/apache2/bin/apxs -c -o liblayout mod_layout.lo utility.lo layout.lo
#/usr/local/apache2/bin/apxs -i -a mod_layout.la
sh-2.05b# make install
make[1]: Entering directory `/home/closer/softwarecore/mod_layout-4.0.1a'
/bin/sh /usr/local/apache2/build/libtool --silent --mode=install cp mod_layout.la /usr/local/apache2/modules/
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning!  dlname not found in /usr/local/apache2/modules/mod_layout.la.
Assuming installing a .so rather than a libtool archive.
make[1]: Leaving directory `/home/closer/softwarecore/mod_layout-4.0.1a'
/usr/local/apache2/bin/apxs -i -n liblayout.so -e liblayout.la
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' liblayout.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp liblayout.la /usr/local/apache2/modules/
cp .libs/liblayout.lai /usr/local/apache2/modules/liblayout.la
cp .libs/liblayout.a /usr/local/apache2/modules/liblayout.a
ranlib /usr/local/apache2/modules/liblayout.a
chmod 644 /usr/local/apache2/modules/liblayout.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning!  dlname not found in /usr/local/apache2/modules/liblayout.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/liblayout.so
chmod: failed to get attributes of `/usr/local/apache2/modules/liblayout.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install] Error 1

sh-2.05b# ls /usr/local/apache2/modules
httpd.exp  liblayout.a  liblayout.la  mod_layout.a  mod_layout.la
sh-2.05b# uname -a
Linux newserver 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

-doug