PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Probleme mit mod_security Installation unter SuSE 9.3



SD8RDB
28.05.07, 14:35
Hallo,

wollte heute modsecurity-apache_2.1.1 installieren und habe es so kompilieren wollen

apxs2 -cia modsecurity.c



/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2 -I/usr/include/apache2 -I/usr/include/apache2 -c -o modsecurity.lo modsecurity.c && touch modsecurity.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o modsecurity.la -rpath /usr/lib/apache2 -module -avoid-version modsecurity.lo
apxs:Error: Sorry, cannot determine bootstrap symbol name.
apxs:Error: Please specify one with option `-n'.


Ok dacht ich mir..probier ich es so:

apxs2 -n modsecurity -cia modsecurity.c


/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2 -I/usr/include/apache2 -I/usr/include/apache2 -c -o modsecurity.lo modsecurity.c && touch modsecurity.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o modsecurity.la -rpath /usr/lib/apache2 -module -avoid-version modsecurity.lo
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' modsecurity.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp modsecurity.la /usr/lib/apache2/
cp .libs/modsecurity.so /usr/lib/apache2/modsecurity.so
cp .libs/modsecurity.lai /usr/lib/apache2/modsecurity.la
cp .libs/modsecurity.a /usr/lib/apache2/modsecurity.a
ranlib /usr/lib/apache2/modsecurity.a
chmod 644 /usr/lib/apache2/modsecurity.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache2

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 755 /usr/lib/apache2/modsecurity.so
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.


Die Fehlermeldung unten hab ich erstmal ignoriert und alles manuell eingetragen.
Nur wenn ich jetzt:

rcapache2 configtest


Syntax error on line 27 of /etc/apache2/sysconfig.d/loadmodule.conf:
Cannot load /usr/lib/apache2-prefork/modsecurity.so into server: /usr/lib/apache2-prefork/modsecurity.so: undefined symbol: msc_regexec


kommt diese Meldung..

in der loadmodule.conf steht:


LoadModule modsecurity_module /usr/lib/apache2-prefork/modsecurity.so

Kann mir jemand helfen?

google hat nach dieser Meldung keine Ergebnisse geliefert