Thread: [mod-security-users] Apache2 Install Error
Brought to you by:
victorhora,
zimmerletw
|
From: Rudi S. <te...@wi...> - 2004-07-22 01:14:06
|
Hi,
I'm trying to install mod_security-1.8.3 into httpd-2.0.50.
Error's are occuring which have me stumped.
If you could please help that would be awesome.
This is my install command: apxs -cia mod_security.c
This is my output and error:
/usr/local/apache2/build/libtool --silent --mode=compile gcc
-prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT
-D_THREAD_SAFE -g -O2 -I/usr/local/apache2/include
-I/usr/local/apache2/include -I/usr/local/apache2/include -c -o
mod_security.lo mod_security.c && touch mod_security.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_security.la -rpath /usr/local/apache2/modules -module
-avoid-version mod_security.lo
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_security.la
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp mod_security.la
/usr/local/apache2/modules/
cp .libs/mod_security.lai /usr/local/apache2/modules/mod_security.la
cp .libs/mod_security.a /usr/local/apache2/modules/mod_security.a
ranlib /usr/local/apache2/modules/mod_security.a
chmod 644 /usr/local/apache2/modules/mod_security.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/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
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning! dlname not found in /usr/local/apache2/modules/mod_security.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/mod_security.so
chmod: /usr/local/apache2/modules/mod_security.so: No such file or directory
apxs:Error: Command failed with rc=65536
Many thanks.
Kind regards,
Rudi.
|
|
From: Rudi S. <te...@wi...> - 2004-07-22 01:21:47
|
Hi, I can add some more debugging info to try help solve this one. As I see this warning: Warning! dlname not found in /usr/local/apache2/modules/mod_security.la. I typed 'grep dlname *' and see this: mod_security.la:dlname='' Hope this helps Thanks Rudi Rudi Starcevic wrote: > Hi, > > I'm trying to install mod_security-1.8.3 into httpd-2.0.50. > Error's are occuring which have me stumped. > If you could please help that would be awesome. > > This is my install command: apxs -cia mod_security.c > > This is my output and error: > > /usr/local/apache2/build/libtool --silent --mode=compile gcc > -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT > -D_THREAD_SAFE -g -O2 -I/usr/local/apache2/include > -I/usr/local/apache2/include -I/usr/local/apache2/include -c -o > mod_security.lo mod_security.c && touch mod_security.slo > /usr/local/apache2/build/libtool --silent --mode=link gcc -o > mod_security.la -rpath /usr/local/apache2/modules -module > -avoid-version mod_security.lo > /usr/local/apache2/build/instdso.sh > SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_security.la > /usr/local/apache2/modules > /usr/local/apache2/build/libtool --mode=install cp mod_security.la > /usr/local/apache2/modules/ > cp .libs/mod_security.lai /usr/local/apache2/modules/mod_security.la > cp .libs/mod_security.a /usr/local/apache2/modules/mod_security.a > ranlib /usr/local/apache2/modules/mod_security.a > chmod 644 /usr/local/apache2/modules/mod_security.a > ---------------------------------------------------------------------- > Libraries have been installed in: > /usr/local/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 > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > Warning! dlname not found in /usr/local/apache2/modules/mod_security.la. > Assuming installing a .so rather than a libtool archive. > chmod 755 /usr/local/apache2/modules/mod_security.so > chmod: /usr/local/apache2/modules/mod_security.so: No such file or > directory > apxs:Error: Command failed with rc=65536 > > > > Many thanks. > Kind regards, > Rudi. > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > mod-security-users mailing list > mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-security-users > > |
|
From: Ivan R. <iv...@we...> - 2004-07-22 08:34:11
|
Rudi Starcevic wrote: > Hi, > > I'm trying to install mod_security-1.8.3 into httpd-2.0.50. > Error's are occuring which have me stumped. > If you could please help that would be awesome. What system are you running on and what was the configure line you used to compile Apache? My guess is that you cannot compile Apache modules at all. It seems other people have similar problems. This is how one guy described the solution: ------------------------------------------------------------------------ [2003-12-30 16:22:36] eldy at users dot sourceforge dot net I got the same problem, this is how i solved it: When running the ./configure, the "libtool" script built contained the line deplibs_check_method="unknown" instead of deplibs_check_method="pass_all" Since i use a linux os and on linux the check for lib dependencies is not required, the value should be "pass_all". I don't know why the script ./configure put the wrong value because after removing the config.cache file and runing again the ./configure, the libtools script was edited correctly... and make compiled correctly the libphp4.so ------------------------------- -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] |