I'm trying to set up a makefile using apxs to compile and link a
module and I'm running into a couple of problems.
If I use the following command line:
apxs -ic -S CC=g++ -n mod_fancy mod_fancy.cpp config.cpp
everything works fine.
In my makefile, I have the following (this is a partial):
mod_fancy.so: mod_fancy.o config.o
apxs -i -n mod_fancy mod_fancy.o config.o
%.o : %.cpp
apxs -S CC=g++ -c $<
Now, when I try to run make, the compile works fine, but the final
install doesn't work. Here's what I get:
/usr/local/apache2/bin/apxs -i -n mod_fancy mod_fancy.o config.o
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_fancy.o
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp mod_fancy.o
/usr/local/apache2/modules/
cp mod_fancy.o /usr/local/apache2/modules/mod_fancy.o
Warning! dlname not found in /usr/local/apache2/modules/mod_fancy.o.
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' config.o
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp config.o
/usr/local/apache2/modules/
cp config.o /usr/local/apache2/modules/config.o
Warning! dlname not found in /usr/local/apache2/modules/config.o.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/config.so
chmod: /usr/local/apache2/modules/config.so: No such file or directory
apxs:Error: Command failed with rc=65536
I've tried it by using different files (ie .slo and .lo files), but I
get the same error.
Any ideas? I'd really rather not have apxs recompiling every single
file each time.
Thanks.
--
Farokh
----------------------------------------------------------------------------
MCF Software...simply dependably engineered
Developers of ListSTAR http://www.liststar.com/, MacRADIUS
http://www.macradius.com/, Address List Sorter
http://www.mcfsoftware.com/als/, SimpleText Filter for EIMS
http://www.mcfsoftware.com/stf/ and Auto Reply plug-in for EIMS
http://www.mcfsoftware.com/ar/.