So, habe es jetzt grad auch mal getestet und sieht soweit garnicht schlecht aus. Ist nur noch ein fehler beim einbinden in die httpd.conf...
aber es dürfte so dann schon benutzbar sein...
Code:
make -f Makefile.dso install
/usr/bin/apxs2 -c -DSTATEDIR='\"usr/lib/apache2/modules/\"' mod_watch.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\" -c -o mod_watch.lo mod_watch.c && touch mod_watch.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o mod_watch.la -rpath /usr/lib/apache2/modules -module -avoid-version mod_watch.lo
/usr/bin/apxs2 -c -DSTATEDIR='\"usr/lib/apache2/modules/\"' Memory.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\" -c -o Memory.lo Memory.c && touch Memory.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o Memory.la -rpath /usr/lib/apache2/modules -module -avoid-version Memory.lo
/usr/bin/apxs2 -c -DSTATEDIR='\"usr/lib/apache2/modules/\"' SharedHash.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\" -c -o SharedHash.lo SharedHash.c && touch SharedHash.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o SharedHash.la -rpath /usr/lib/apache2/modules -module -avoid-version SharedHash.lo
/usr/bin/apxs2 -c -DSTATEDIR='\"usr/lib/apache2/modules/\"' NetworkTable.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\" -c -o NetworkTable.lo NetworkTable.c && touch NetworkTable.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o NetworkTable.la -rpath /usr/lib/apache2/modules -module -avoid-version NetworkTable.lo
/usr/bin/apxs2 -c -DSTATEDIR='\"usr/lib/apache2/modules/\"' mod_watch.lo Memory.lo SharedHash.lo NetworkTable.lo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o mod_watch.la -rpath /usr/lib/apache2/modules -module -avoid-version mod_watch.lo Memory.lo SharedHash.lo NetworkTable.lo
chmod u+x mod_watch.pl
cp -f mod_watch.pl /usr/local/sbin
chmod u+x apache2mrtg.pl
cp -f apache2mrtg.pl /usr/local/sbin
/usr/bin/apxs2 -i -a -n 'watch' mod_watch.la
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_watch.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp mod_watch.la /usr/lib/apache2/modules/
cp .libs/mod_watch.so /usr/lib/apache2/modules/mod_watch.so
cp .libs/mod_watch.lai /usr/lib/apache2/modules/mod_watch.la
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/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.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_watch.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install] Fehler 1
Hier meine makefile.dso
Code:
########################################################################
### Pick one that best suits your system.
########################################################################
#
# The location of apxs utility.
#
#APXS=/home/apache2/bin/apxs
APXS=/usr/bin/apxs2
#
# The location of apachectl utility to stop/start/restart targets.
#
APACHECTL=apache2ctl
#
# Where the scripts should live
#
SCRIPTDIR=/usr/local/sbin
#
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/
#
# Define to use unsigned long long counters.
#
#BIG=-DUSE_OCTET_COUNTER_64
#
# Extras
#
DEF=$(BIG) -DSTATEDIR='\"$(STATEDIR)\"'
INC=
LIB=
########################################################################
### No further configuration beyond this point.
########################################################################
Greez BeNe