httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Dumpleton" <graham.dumple...@gmail.com>
Subject Re: APXS question
Date Mon, 23 Jul 2007 00:51:17 GMT
On 23/07/07, Farokh Irani <farokh@mcfsoftware.com> wrote:
> >Farokh Irani wrote:
> >>    apxs -i -n mod_fancy mod_fancy.o config.o
> >
> >You don't -i'nstall a .o file.  It's not a loadable module.
> >
> >Loadable modules are the .so (.sl/.dll/.dylib) already-linked object files.
>
> I tried it with the .so files (apxs -i -n mod_fancy
> .libs/mod_fancy.so .libs/config.so) and got the same errors:
> /usr/local/apache2/bin/apxs -i -n mod_fancy .libs/mod_fancy.so .libs/config.so
> /usr/local/apache2/build/instdso.sh
> SH_LIBTOOL='/usr/local/apache2/build/libtool' .libs/mod_fancy.so
> /usr/local/apache2/modules
> /usr/local/apache2/build/libtool --mode=install cp .libs/mod_fancy.so
> /usr/local/apache2/modules/
> cp .libs/mod_fancy.so /usr/local/apache2/modules/mod_fancy.so
> Warning!  dlname not found in /usr/local/apache2/modules/mod_fancy.so.
> Assuming installing a .so rather than a libtool archive.
> chmod 755 /usr/local/apache2/modules/mod_fancy.so
> /usr/local/apache2/build/instdso.sh
> SH_LIBTOOL='/usr/local/apache2/build/libtool' .libs/config.so
> /usr/local/apache2/modules
> /usr/local/apache2/build/libtool --mode=install cp .libs/config.so
> /usr/local/apache2/modules/
> cp .libs/config.so /usr/local/apache2/modules/config.so
> Warning!  dlname not found in /usr/local/apache2/modules/config.so.
> Assuming installing a .so rather than a libtool archive.

If using Apache 1.3, the magic you want is something like::

  install : all
        $(APXS) -i -n 'mod_wsgi' mod_wsgi.so

If using Apache 2.X, the magic you want is something like:

install : all
        $(APXS) -i -n 'mod_wsgi' mod_wsgi.la

That is presuming you are using your own Makefile for some reason. If
using Makefile generated by apxs and which uses makefile rule system
supplied by Apache, you wouldn't normally need to worry about it
explicitly as it should do it the correct way.

Graham

Mime
View raw message