One final comment, the 'apxs' manual page provides a number of examples of using -i separate to compilation. For example:
$ apxs -i -a mod_foo.la /path/to/instdso.sh mod_foo.la /path/to/apache/modules /path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules ... chmod 755 /path/to/apache/modules/mod_foo.so [activating module `foo' in /path/to/apache/conf/httpd.conf] $ _ Thus, it does by way of example at least document that the dso-file in this case is the .la file. It could perhaps be more explicit in mentioning this perhaps. :-) Graham On 23/07/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
On 23/07/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On 23/07/07, Farokh Irani <[EMAIL PROTECTED]> 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. BTW, for the remainder of the configure/makefile system I use, see: http://modwsgi.googlecode.com/svn/trunk/mod_wsgi/ You'll possibly need to look at that to see what 'all' actually maps to on Apache 1.3 vs Apache 2.X as it needs to be different as well. Graham