httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Mahoney, System Admin" <>
Subject Re: [users@httpd] APXS/Libtool confusion
Date Sat, 14 May 2005 18:07:49 GMT
On Sat, 14 May 2005, Nick Kew wrote:

> Dan Mahoney, System Admin wrote:
>> Hey all...
>> I'm having some difficulty compiling a module with apxs -- I get a .o
>> file, and a .la and a .lo file -- but no shared object.
> Did you try "apxs -i" ?

Of course, I've been dealing with apxs under apache 1 for years -- before 
we were depending on libtool and autoconf in obscure ways.

>> Apache 2.0.54 under FreeBSD 4.10.
> Can't help with platform issues - sorry.  But apxs works fine for me
> on FreeBSD versions I've used.

/usr/local/apache2/build/libtool --mode=install cp 
cp .libs/mod_suphp.lai /usr/local/apache2/modules/
cp .libs/mod_suphp.a /usr/local/apache2/modules/mod_suphp.a
ranlib /usr/local/apache2/modules/mod_suphp.a
chmod 644 /usr/local/apache2/modules/mod_suphp.a
Libraries have been installed in:

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

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages.
Warning!  dlname not found in /usr/local/apache2/modules/
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/
chmod: /usr/local/apache2/modules/ No such file or directory
apxs:Error: Command failed with rc=65536

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message