ModSecurity will nicht installieren...

Apache, Lighttpd, nginx, Cherokee
atrix
Posts: 25
Joined: 2006-11-21 21:23
Location: Bad Ems

ModSecurity will nicht installieren...

Post by atrix »

Hey Leute...
ich bin total am verzweifeln. Wenn ich die Datei kompilieren will kommt mir immer als fehler:

Code: Select all

#  apxs2 -cia mod_security2.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -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 mod_security2.lo mod_security2.c && touch mod_security2.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_security2.la  -rpath /usr/lib64/apache2 -module -avoid-version    mod_security2.lo
.libs/mod_security2.o: In function `perform_interception':
/modsecurity-apache_2.0.4/apache2/mod_security2.c:199: undefined reference to `msc_alert'
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: .libs/mod_security2.o: relocation R_X86_64_PC32 against `msc_alert' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
Naja und ich hab keine Ahnung was es bedeutet...
Versuch es schon seit 2Tagen mit haufen Howto's etc...

Habe Suse Linux 10.0, alles installiert (httpd-devel, subversion-devel)

wie find ich eigentlich heraus ob mod_unique_id läuft und was ist wenns nich läuft? wie soll ichs dann starten?

Naja libxml2 ist auch installiert...
lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: ModSecurity will nicht installieren...

Post by lucki2 »

Mach es Dir das Leben leichter:

Code: Select all

cd $SECURITYDIR/apache2
cp ../modsecurity.conf-minimal /etc/apache2/conf.d/modsecurity.conf
vi /etc/apache2/conf.d/modsecurity.conf
vi /etc/apache2/httpd.conf
vi Makefile
make clean all install
/etc/init.d/apache2 restart
und unique id

Code: Select all

apache2ctl -M 
atrix
Posts: 25
Joined: 2006-11-21 21:23
Location: Bad Ems

Re: ModSecurity will nicht installieren...

Post by atrix »

Dann kommt mir aber diese Fehlermeldung:

Code: Select all

mod_security2.c:338: error: syntax error before '*' token
mod_security2.c:338: warning: return type defaults to 'int'
mod_security2.c:338: warning: function declaration isn't a prototype
mod_security2.c: In function 'change_server_signature':
mod_security2.c:343: warning: implicit declaration of function 'ap_get_server_version'
mod_security2.c:343: warning: cast to pointer from integer of different size
mod_security2.c:345: error: 'APLOG_MARK' undeclared (first use in this function)
mod_security2.c:345: error: 'APLOG_ERR' undeclared (first use in this function)
mod_security2.c:345: error: 'APLOG_NOERRNO' undeclared (first use in this function)
mod_security2.c:345: error: 's' undeclared (first use in this function)
mod_security2.c:350: warning: implicit declaration of function 'strlen'
mod_security2.c:350: warning: incompatible implicit declaration of built-in function 'strlen'
mod_security2.c:351: warning: implicit declaration of function 'strcpy'
mod_security2.c:351: warning: incompatible implicit declaration of built-in function 'strcpy'
mod_security2.c: At top level:
mod_security2.c:366: error: syntax error before 'module_cleanup'
mod_security2.c:366: warning: return type defaults to 'int'
mod_security2.c:366: warning: no previous prototype for 'module_cleanup'
mod_security2.c: In function 'module_cleanup':
mod_security2.c:368: error: 'APR_SUCCESS' undeclared (first use in this function)
mod_security2.c: At top level:
mod_security2.c:374: error: syntax error before '*' token
mod_security2.c:374: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_pre_config':
mod_security2.c:376: error: 'mp' undeclared (first use in this function)
mod_security2.c:382: error: 'HTTP_INTERNAL_SERVER_ERROR' undeclared (first use in this function)
mod_security2.c:385: error: 'OK' undeclared (first use in this function)
mod_security2.c: At top level:
mod_security2.c:391: error: syntax error before '*' token
mod_security2.c:391: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_post_config':
mod_security2.c:396: warning: implicit declaration of function 'apr_pool_userdata_get'
mod_security2.c:396: error: 's' undeclared (first use in this function)
mod_security2.c:399: warning: implicit declaration of function 'apr_pool_userdata_set'
mod_security2.c:400: error: 'apr_pool_cleanup_null' undeclared (first use in this function)
mod_security2.c:402: error: 'mp' undeclared (first use in this function)
mod_security2.c:406: warning: implicit declaration of function 'apr_pstrdup'
mod_security2.c:406: warning: assignment makes pointer from integer without a cast
mod_security2.c:410: warning: implicit declaration of function 'ap_add_version_component'
mod_security2.c:425: error: 'APLOG_MARK' undeclared (first use in this function)
mod_security2.c:425: error: 'APLOG_NOTICE' undeclared (first use in this function)
mod_security2.c:425: error: 'APLOG_NOERRNO' undeclared (first use in this function)
mod_security2.c:429: error: 'APLOG_ERR' undeclared (first use in this function)
mod_security2.c:431: error: 'errno' undeclared (first use in this function)
mod_security2.c:431: warning: implicit declaration of function 'strerror'
mod_security2.c:461: warning: implicit declaration of function 'apr_pool_cleanup_register'
mod_security2.c:475: warning: implicit declaration of function 'time'
mod_security2.c:477: error: 'OK' undeclared (first use in this function)
mod_security2.c: At top level:
mod_security2.c:483: error: syntax error before '*' token
mod_security2.c:483: warning: function declaration isn't a prototype
mod_security2.c:491: error: syntax error before '*' token
mod_security2.c:491: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_request_early':
mod_security2.c:498: error: request for member 'main' in something not a structure or union
mod_security2.c:498: error: request for member 'prev' in something not a structure or union
mod_security2.c:499: error: 'DECLINED' undeclared (first use in this function)
mod_security2.c:509: error: dereferencing pointer to incomplete type
mod_security2.c:515: error: dereferencing pointer to incomplete type
mod_security2.c:515: error: dereferencing pointer to incomplete type
mod_security2.c:517: error: dereferencing pointer to incomplete type
mod_security2.c:518: error: 'HTTP_REQUEST_ENTITY_TOO_LARGE' undeclared (first use in this function)
mod_security2.c:523: warning: implicit declaration of function 'modsecurity_process_phase'
mod_security2.c: At top level:
mod_security2.c:534: error: syntax error before '*' token
mod_security2.c:534: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_request_late':
mod_security2.c:547: error: 'DECLINED' undeclared (first use in this function)
mod_security2.c:549: error: dereferencing pointer to incomplete type
mod_security2.c:551: error: dereferencing pointer to incomplete type
mod_security2.c:557: error: dereferencing pointer to incomplete type
mod_security2.c:561: error: dereferencing pointer to incomplete type
mod_security2.c:564: error: dereferencing pointer to incomplete type
mod_security2.c:564: error: request for member 'per_dir_config' in something not a structure or union
mod_security2.c:565: warning: cast to pointer from integer of different size
mod_security2.c:568: error: dereferencing pointer to incomplete type
mod_security2.c:568: error: dereferencing pointer to incomplete type
mod_security2.c:569: error: dereferencing pointer to incomplete type
mod_security2.c:570: error: dereferencing pointer to incomplete type
mod_security2.c:571: error: dereferencing pointer to incomplete type
mod_security2.c:571: error: dereferencing pointer to incomplete type
mod_security2.c:571: error: dereferencing pointer to incomplete type
mod_security2.c:571: error: dereferencing pointer to incomplete type
mod_security2.c:572: error: dereferencing pointer to incomplete type
mod_security2.c:576: error: dereferencing pointer to incomplete type
mod_security2.c:576: error: dereferencing pointer to incomplete type
mod_security2.c:576: error: dereferencing pointer to incomplete type
mod_security2.c:576: error: dereferencing pointer to incomplete type
mod_security2.c:578: error: dereferencing pointer to incomplete type
mod_security2.c:580: error: dereferencing pointer to incomplete type
mod_security2.c:583: error: dereferencing pointer to incomplete type
mod_security2.c:584: error: dereferencing pointer to incomplete type
mod_security2.c:586: error: dereferencing pointer to incomplete type
mod_security2.c:587: error: dereferencing pointer to incomplete type
mod_security2.c:590: warning: implicit declaration of function 'read_request_body'
mod_security2.c:595: error: 'HTTP_INTERNAL_SERVER_ERROR' undeclared (first use in this function)
mod_security2.c:598: error: request for member 'connection' in something not a structure or union
mod_security2.c:598: error: 'AP_CONN_CLOSE' undeclared (first use in this function)
mod_security2.c:599: error: 'HTTP_REQUEST_TIME_OUT' undeclared (first use in this function)
mod_security2.c:602: error: request for member 'connection' in something not a structure or union
mod_security2.c:603: error: 'HTTP_REQUEST_ENTITY_TOO_LARGE' undeclared (first use in this function)
mod_security2.c:610: error: dereferencing pointer to incomplete type
mod_security2.c:611: error: dereferencing pointer to incomplete type
mod_security2.c:619: error: dereferencing pointer to incomplete type
mod_security2.c:619: error: dereferencing pointer to incomplete type
mod_security2.c:619: error: request for member 'headers_in' in something not a structure or union
mod_security2.c: At top level:
mod_security2.c:637: error: syntax error before 'apr_status_t'
mod_security2.c:639: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_error_log':
mod_security2.c:648: error: dereferencing pointer to incomplete type
mod_security2.c:648: error: invalid application of 'sizeof' to incomplete type 'error_message'
mod_security2.c:648: warning: cast to pointer from integer of different size
mod_security2.c:651: error: 'file' undeclared (first use in this function)
mod_security2.c:651: error: dereferencing pointer to incomplete type
mod_security2.c:651: error: dereferencing pointer to incomplete type
mod_security2.c:652: error: dereferencing pointer to incomplete type
mod_security2.c:652: error: 'line' undeclared (first use in this function)
mod_security2.c:653: error: dereferencing pointer to incomplete type
mod_security2.c:653: error: 'level' undeclared (first use in this function)
mod_security2.c:654: error: dereferencing pointer to incomplete type
mod_security2.c:654: error: 'status' undeclared (first use in this function)
mod_security2.c:655: error: 'fmt' undeclared (first use in this function)
mod_security2.c:655: error: dereferencing pointer to incomplete type
mod_security2.c:655: error: dereferencing pointer to incomplete type
mod_security2.c:658: error: dereferencing pointer to incomplete type
mod_security2.c:659: error: dereferencing pointer to incomplete type
mod_security2.c:669: warning: implicit declaration of function 'apr_array_push'
mod_security2.c:669: error: dereferencing pointer to incomplete type
mod_security2.c:669: warning: cast to pointer from integer of different size
mod_security2.c: At top level:
mod_security2.c:676: error: syntax error before '*' token
mod_security2.c:676: warning: function declaration isn't a prototype
mod_security2.c: In function 'sec_guardian_logger':
mod_security2.c:680: error: 'apr_size_t' undeclared (first use in this function)
mod_security2.c:680: error: syntax error before 'nbytes'
mod_security2.c:681: error: 'apr_time_t' undeclared (first use in this function)
mod_security2.c:685: error: 'guardianlog_fd' undeclared (first use in this function)
mod_security2.c:690: error: request for member 'subprocess_env' in something not a structure or union
mod_security2.c:690: warning: comparison between pointer and integer
mod_security2.c:695: error: request for member 'subprocess_env' in something not a structure or union
mod_security2.c:695: warning: comparison between pointer and integer
mod_security2.c:710: error: 'msr' undeclared (first use in this function)
mod_security2.c:710: error: syntax error before 'APR_TIME_T_FMT'
mod_security2.c:729: warning: incompatible implicit declaration of built-in function 'strlen'
mod_security2.c:739: warning: assignment makes pointer from integer without a cast
mod_security2.c:741: warning: assignment makes pointer from integer without a cast
mod_security2.c:745: error: 'nbytes' undeclared (first use in this function)
mod_security2.c:746: warning: implicit declaration of function 'apr_file_write_full'
mod_security2.c:746: error: 'nbytes_written' undeclared (first use in this function)
mod_security2.c:679: warning: unused variable 'modsec_rating'
mod_security2.c:678: warning: unused variable 'modsec_message'
mod_security2.c: At top level:
mod_security2.c:752: error: syntax error before '*' token
mod_security2.c:752: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_log_transaction':
mod_security2.c:753: error: syntax error before '*' token
mod_security2.c:754: error: 'request_rec' undeclared (first use in this function)
mod_security2.c:754: error: 'origr' undeclared (first use in this function)
mod_security2.c:759: error: 'DECLINED' undeclared (first use in this function)
mod_security2.c:769: error: request for member 'next' in something not a structure or union
mod_security2.c:770: error: request for member 'next' in something not a structure or union
mod_security2.c:780: error: 'arr' undeclared (first use in this function)
mod_security2.c:780: warning: implicit declaration of function 'apr_table_elts'
mod_security2.c:780: error: request for member 'headers_out' in something not a structure or union
mod_security2.c:781: error: request for member 'prev' in something not a structure or union
mod_security2.c:782: error: request for member 'prev' in something not a structure or union
mod_security2.c:783: error: request for member 'headers_out' in something not a structure or union
mod_security2.c:786: error: dereferencing pointer to incomplete type
mod_security2.c:787: error: dereferencing pointer to incomplete type
mod_security2.c:787: error: request for member 'status' in something not a structure or union
mod_security2.c:788: error: dereferencing pointer to incomplete type
mod_security2.c:788: error: request for member 'status_line' in something not a structure or union
mod_security2.c:789: error: request for member 'status_line' in something not a structure or union
mod_security2.c:789: warning: implicit declaration of function 'ap_get_status_line'
mod_security2.c:789: error: request for member 'status' in something not a structure or union
mod_security2.c:790: error: dereferencing pointer to incomplete type
mod_security2.c:791: error: dereferencing pointer to incomplete type
mod_security2.c:791: error: dereferencing pointer to incomplete type
mod_security2.c:791: error: request for member 'headers_out' in something not a structure or union
mod_security2.c:792: error: request for member 'assbackwards' in something not a structure or union
mod_security2.c:792: error: dereferencing pointer to incomplete type
mod_security2.c:793: error: dereferencing pointer to incomplete type
mod_security2.c:793: error: request for member 'bytes_sent' in something not a structure or union
mod_security2.c:794: error: dereferencing pointer to incomplete type
mod_security2.c:794: error: request for member 'user' in something not a structure or union
mod_security2.c:795: error: dereferencing pointer to incomplete type
mod_security2.c:795: error: request for member 'connection' in something not a structure or union
mod_security2.c: At top level:
mod_security2.c:812: error: syntax error before '*' token
mod_security2.c:812: warning: function declaration isn't a prototype
mod_security2.c: In function 'hook_insert_filter':
mod_security2.c:821: error: dereferencing pointer to incomplete type
mod_security2.c:826: error: dereferencing pointer to incomplete type
mod_security2.c:828: warning: implicit declaration of function 'ap_add_input_filter'
mod_security2.c:828: error: request for member 'connection' in something not a structure or union
mod_security2.c:835: error: dereferencing pointer to incomplete type
mod_security2.c:837: warning: implicit declaration of function 'ap_add_output_filter'
mod_security2.c:837: error: request for member 'connection' in something not a structure or union
mod_security2.c: In function 'modsec_register_tfn':
mod_security2.c:880: error: dereferencing pointer to incomplete type
mod_security2.c: In function 'modsec_register_operator':
mod_security2.c:890: error: dereferencing pointer to incomplete type
mod_security2.c: At top level:
mod_security2.c:897: error: syntax error before '*' token
mod_security2.c:897: warning: function declaration isn't a prototype
mod_security2.c: In function 'register_hooks':
mod_security2.c:918: warning: implicit declaration of function 'APR_REGISTER_OPTIONAL_FN'
mod_security2.c:922: warning: implicit declaration of function 'ap_hook_pre_config'
mod_security2.c:922: error: 'APR_HOOK_FIRST' undeclared (first use in this function)
mod_security2.c:923: warning: implicit declaration of function 'ap_hook_post_config'
mod_security2.c:924: error: 'APR_HOOK_REALLY_LAST' undeclared (first use in this function)
mod_security2.c:925: warning: implicit declaration of function 'ap_hook_child_init'
mod_security2.c:925: error: 'APR_HOOK_MIDDLE' undeclared (first use in this function)
mod_security2.c:932: warning: implicit declaration of function 'ap_hook_post_read_request'
mod_security2.c:933: error: 'APR_HOOK_REALLY_FIRST' undeclared (first use in this function)
mod_security2.c:936: warning: implicit declaration of function 'ap_hook_access_checker'
mod_security2.c:936: error: 'APR_HOOK_LAST' undeclared (first use in this function)
mod_security2.c:939: warning: implicit declaration of function 'ap_hook_error_log'
mod_security2.c:940: warning: implicit declaration of function 'ap_hook_log_transaction'
mod_security2.c:943: warning: implicit declaration of function 'ap_hook_insert_filter'
mod_security2.c:946: warning: implicit declaration of function 'ap_register_input_filter'
mod_security2.c:946: error: 'input_filter' undeclared (first use in this function)
mod_security2.c:947: error: 'AP_FTYPE_CONTENT_SET' undeclared (first use in this function)
mod_security2.c:948: warning: implicit declaration of function 'ap_register_output_filter'
mod_security2.c:948: error: 'output_filter' undeclared (first use in this function)
mod_security2.c: At top level:
mod_security2.c:953: error: syntax error before 'module_directives'
mod_security2.c:953: warning: type defaults to 'int' in declaration of 'module_directives'
mod_security2.c:953: warning: data definition has no type or storage class
mod_security2.c:956: error: syntax error before 'AP_MODULE_DECLARE_DATA'
mod_security2.c:956: warning: type defaults to 'int' in declaration of 'security2_module'
mod_security2.c:957: error: 'STANDARD20_MODULE_STUFF' undeclared here (not in a function)
mod_security2.c:958: warning: excess elements in scalar initializer
mod_security2.c:958: warning: (near initialization for 'security2_module')
mod_security2.c:959: warning: excess elements in scalar initializer
mod_security2.c:959: warning: (near initialization for 'security2_module')
mod_security2.c:960: warning: excess elements in scalar initializer
mod_security2.c:960: warning: (near initialization for 'security2_module')
mod_security2.c:961: warning: excess elements in scalar initializer
mod_security2.c:961: warning: (near initialization for 'security2_module')
mod_security2.c:962: warning: excess elements in scalar initializer
mod_security2.c:962: warning: (near initialization for 'security2_module')
mod_security2.c:964: warning: excess elements in scalar initializer
mod_security2.c:964: warning: (near initialization for 'security2_module')
mod_security2.c:964: warning: data definition has no type or storage class
make: *** [mod_security2.slo] Fehler 1
Also wenn ichs mit make install mache...

wenn ich mit apxs2 -cia mod_security2.c mache kommt:

Code: Select all

 # apxs2 -cia mod_security2.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -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 mod_security2.lo mod_security2.c && touch mod_security2.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_security2.la  -rpath /usr/lib64/apache2 -module -avoid-version    mod_security2.lo
.libs/mod_security2.o: In function `perform_interception':
/modsecurity-apache_2.0.4/apache2/mod_security2.c:199: undefined reference to `msc_alert'
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: .libs/mod_security2.o: relocation R_X86_64_PC32 against `msc_alert' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: ModSecurity will nicht installieren...

Post by lucki2 »

Mir fallen die Augen raus!
implicit declaration of function 'strlen'
das gibts nicht, wenn das nur halbwegs normal ist. Das davor sind auch so Fehler wo Typen fehlen.

Eigentlich würde ich sagen Makefile nicht richtig editiert: dem fehlen die ganzen incudes.

halt ... da hängt er ja:

Code: Select all

relocation R_X86_64_PC32 against
er sagts auch noch:
recompile with -fPIC
a) den aktuellsten gcc nehmen den Du bekommen kannst(v > 4.1.0).
b) jenes machen.
Dann müßte das zumindest weniger werden.
atrix
Posts: 25
Joined: 2006-11-21 21:23
Location: Bad Ems

Re: ModSecurity will nicht installieren...

Post by atrix »

Also ich installier mal den neuen gcc und versuchs dann nochmal...

Makefile sieht bei mir so aus:

Code: Select all

builddir     = .

#top_dir      = /usr/share/apache2
top_dir      = /usr/share/apache2

top_srcdir   = ${top_dir}
top_builddir = ${top_dir}

include ${top_builddir}/build/special.mk

APXS      = apxs2
APACHECTL = apache2ctl

INCLUDES = -I /usr/include/libxml2
DEFS = -DWITH_LIBXML2
#LIBS = -Lmy/lib/dir -lmylib

CFLAGS = -O2 -g -Wuninitialized -Wall -Wmissing-prototypes -Wshadow -Wunused-variable -Wunused-value -Wchar-subscripts -Wsign-compare

all: local-shared-build

clean:
	-rm -f *.o *.lo *.slo *.la *~ .libs
    
ich mein da ist alles richtig...
sledge0303
Posts: 695
Joined: 2005-09-16 00:06
Location: Berlin-Reinickendorf

Re: ModSecurity will nicht installieren...

Post by sledge0303 »

dpkg --list | grep gcc
@Lucki2
Ich glaube nicht das es an der verwendeten gcc liegt. Meine verwendete Version ist auch etwas betagter ;)

Code: Select all

dpkg --list | grep gcc
ii  gcc            3.3.5-3        The GNU C compiler
ii  gcc-3.3        3.3.5-13       The GNU C compiler
ii  gcc-3.3-base   3.3.5-13       The GNU Compiler Collection (base package)
ii  libgcc1        3.4.3-13sarge1 GCC support library
Mein aktueller Server läuft mit mod_sec.

@Atrix

Bingo, meine sieht auch so aus ;)
atrix
Posts: 25
Joined: 2006-11-21 21:23
Location: Bad Ems

Re: ModSecurity will nicht installieren...

Post by atrix »

also ich hab gcc 4.0.2 drauf...

wie aktivier i ch den Mod_unique_id
lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: ModSecurity will nicht installieren...

Post by lucki2 »

Mein aktueller Server läuft mit mod_sec.
Mag ja sein(Ist das auch Verson: 2.0.4 auf Suse 64Bit mit dem selben gcc ?). Ich babe diese Verson: 2.0.4 entpackt und durchcompiliert: lief traumhaft durch.
Trotzdem hat Atrixt hier ein Problem und spätestens nach der Fehlermeldung bei apxs scheint 64Bit eines davon zu sein.


Gcc und ld in v 4.0 haben einige Bugs was 64Bit angeht. Sollte es das sein und das sonst über apxs das laufen, mach ich keinen Finger krumm um zu schauen, was beim normalen compilieren mit den include-Pfaden los ist, die anscheinend nicht stimmen.
wie aktivier i ch den Mod_unique_id

Code: Select all

LoadModule unique_id_module $PFAD/mod_unique_id.so
sledge0303
Posts: 695
Joined: 2005-09-16 00:06
Location: Berlin-Reinickendorf

Re: ModSecurity will nicht installieren...

Post by sledge0303 »

Ich selber hab (noch) kein 64Bit System, der Bildungsträger wo ich zeitweise tätig bin auch nicht - jedenfalls nicht für Linux.
Meine Wenigkeit sieht auch keinen Grund sich so schnell einen 64 Bit Rechner anzuschaffen.

Hab mal was gelesen das es besser ist trotz eines 64 Bit Systems die 32 Bit Versionen zu installieren. Ohne Grund werden diejenigen es nicht behaupten ;)
atrix
Posts: 25
Joined: 2006-11-21 21:23
Location: Bad Ems

Re: ModSecurity will nicht installieren...

Post by atrix »

Okay hab das Modul aktiviert...
Fehler besteht aber weiterhin...

nun kommt aber bei dem befehl # make clean all install
# make clean all install
make: *** Keine Regel, um »clean« zu erstellen. Schluss.
und bei dem anderen:
# apxs2 -cia mod_security2.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -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 mod_security2.lo mod_security2.c && touch mod_security2.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_security2.la -rpath /usr/lib64/apache2 -module -avoid-version mod_security2.lo
.libs/mod_security2.o: In function `perform_interception':
/modsecurity-apache_2.0.4/apache2/mod_security2.c:199: undefined reference to `msc_alert'
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: .libs/mod_security2.o: relocation R_X86_64_PC32 against `msc_alert' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: ModSecurity will nicht installieren...

Post by lucki2 »

Code: Select all

/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: .libs/mod_security2.o: relocation R_X86_64_PC32 against `msc_alert' can not be used when making a shared object; recompile with -fPIC 
ich kann mich nur wiederholen.
a) gcc möglichst aktuell.
b) probieren, was es Dir vorschlägt: recompile with -fPIC
also in $secmod/apache2

Code: Select all

make clean
apsx2 -c apxs2 -Wc,-fPIC -cia mod_security2.c
Probieren, ob's hilft, wenn es das schon sagt. Ich glaubs ja nicht.
Du kannst auch wie sledge sagt für 32bit compilieren:

Code: Select all

make clean
apsx2 -c apxs2 -Wc,-m32 -Wl,-m32 -cia mod_security2.c
auch eine Idee(Achtung 32bit libs haben)!

PS: Ich kann Dir auch das Problem erklären, das ich sehe: Apache ist für 32bit gebaut und Du baust jetzt für 64 bit. ld beklagt sich, wenn es das zusammen bringen soll, daß es das nicht kann.

Problem mit den includes oben. Die werden normal mit "-I" dem compiler mitgegeben. Wenn die aber falsch sind, dann sieht das z.B. so aus, wie Dein selbst compiliertes. Wenn ich nun 32bit und 64bit in Betracht ziehe, liegt das sehr wahrscheinlich daran.
Anonymous

Re: ModSecurity will nicht installieren...

Post by Anonymous »

Suse 9.3 bei mir sieht das so aus :roll: das ist nur die hälfte der Fehlermeldungen

Code: Select all

msc_multipart.h:25:24: apr_tables.h: No such file or directory
In file included from modsecurity.h:36,
                 from mod_security2.c:18:
msc_multipart.h:42: error: syntax error before "apr_array_header_t"
msc_multipart.h:42: warning: no semicolon at end of struct or union
msc_multipart.h:55: error: syntax error before '*' token
msc_multipart.h:55: warning: type defaults to `int' in declaration of `headers'
msc_multipart.h:55: warning: data definition has no type or storage class
msc_multipart.h:59: error: syntax error before '}' token
msc_multipart.h:63: error: syntax error before "apr_array_header_t"
msc_multipart.h:63: warning: no semicolon at end of struct or union
msc_multipart.h:102: error: syntax error before '}' token
msc_multipart.h:111: warning: declaration of `buf' shadows a global declaration
msc_multipart.h:73: warning: shadowed declaration is here
msc_multipart.h:114: warning: type defaults to `int' in declaration of `apr_status_t'
msc_multipart.h:114: error: syntax error before "multipart_cleanup"
msc_multipart.h:116: error: syntax error before "apr_table_t"
msc_multipart.h:116: warning: function declaration isn't a prototype
In file included from modsecurity.h:37,
                 from mod_security2.c:18:
msc_pcre.h:18:18: pcre.h: No such file or directory
msc_pcre.h:19:25: apr_general.h: No such file or directory
In file included from modsecurity.h:37,
                 from mod_security2.c:18:
msc_pcre.h:28: warning: type defaults to `int' in declaration of `apr_status_t'
msc_pcre.h:28: error: syntax error before "msc_pcre_cleanup"
msc_pcre.h:30: error: syntax error before '*' token
msc_pcre.h:31: warning: function declaration isn't a prototype
msc_pcre.h:33: error: syntax error before '*' token
msc_pcre.h:34: warning: function declaration isn't a prototype
msc_pcre.h:36: error: syntax error before '*' token
msc_pcre.h:37: warning: function declaration isn't a prototype
In file included from modsecurity.h:38,
                 from mod_security2.c:18:
msc_util.h:22: error: syntax error before '*' token
msc_util.h:22: warning: function declaration isn't a prototype
msc_util.h:24: error: syntax error before '*' token
msc_util.h:24: warning: function declaration isn't a prototype
msc_util.h:28: error: syntax error before '*' token
msc_util.h:28: warning: function declaration isn't a prototype
msc_util.h:30: error: syntax error before '*' token
msc_util.h:30: warning: function declaration isn't a prototype
msc_util.h:34: error: syntax error before '*' token
msc_util.h:34: warning: function declaration isn't a prototype
msc_util.h:42: error: syntax error before '*' token
msc_util.h:42: warning: function declaration isn't a prototype
msc_util.h:44: error: syntax error before '*' token
msc_util.h:44: warning: function declaration isn't a prototype
msc_util.h:46: error: syntax error before '*' token
msc_util.h:46: warning: function declaration isn't a prototype
msc_util.h:54: error: syntax error before '*' token
msc_util.h:54: warning: function declaration isn't a prototype
msc_util.h:56: error: syntax error before '*' token
msc_util.h:56: warning: function declaration isn't a prototype
msc_util.h:58: error: syntax error before '*' token
msc_util.h:58: warning: function declaration isn't a prototype
msc_util.h:60: error: syntax error before '*' token
msc_util.h:60: warning: function declaration isn't a prototype
msc_util.h:62: error: syntax error before '*' token
msc_util.h:62: warning: function declaration isn't a prototype
msc_util.h:64: error: syntax error before '*' token
msc_util.h:65: warning: function declaration isn't a prototype
msc_util.h:71: error: syntax error before '*' token
msc_util.h:71: warning: function declaration isn't a prototype
In file included from modsecurity.h:40,
                 from mod_security2.c:18:
msc_xml.h:19:31: libxml/xmlschemas.h: No such file or directory
msc_xml.h:20:26: libxml/xpath.h: No such file or directory
In file included from modsecurity.h:40,
                 from mod_security2.c:18:
msc_xml.h:25: error: syntax error before "xmlSAXHandler"
msc_xml.h:25: warning: no semicolon at end of struct or union
msc_xml.h:26: warning: type defaults to `int' in declaration of `parsing_ctx'
msc_xml.h:26: warning: data definition has no type or storage class
msc_xml.h:27: error: syntax error before "doc"
msc_xml.h:27: warning: type defaults to `int' in declaration of `doc'
msc_xml.h:27: warning: data definition has no type or storage class
msc_xml.h:30: error: syntax error before '}' token
msc_xml.h:36: warning: declaration of `buf' shadows a global declaration
msc_multipart.h:73: warning: shadowed declaration is here
msc_xml.h:41: warning: type defaults to `int' in declaration of `apr_status_t'
msc_xml.h:41: error: syntax error before "xml_cleanup"
In file included from modsecurity.h:42,
                 from mod_security2.c:18:
re.h:32:25: apr_general.h: No such file or directory
re.h:33:24: apr_tables.h: No such file or directory
In file included from re.h:36,
                 from modsecurity.h:42,
                 from mod_security2.c:18:
persist_dbm.h:16:25: apr_general.h: No such file or directory
In file included from re.h:36,
                 from modsecurity.h:42,
                 from mod_security2.c:18:
persist_dbm.h:19: warning: type defaults to `int' in declaration of `apr_table_t'
persist_dbm.h:19: error: syntax error before '*' token
persist_dbm.h:22: error: syntax error before "apr_table_t"
persist_dbm.h:22: warning: function declaration isn't a prototype
In file included from re.h:37,
                 from modsecurity.h:42,
                 from mod_security2.c:18:
apache2.h:16:23: http_core.h: No such file or directory
apache2.h:17:26: http_request.h: No such file or directory
apache2.h:19:25: apr_general.h: No such file or directory
apache2.h:20:26: apr_optional.h: No such file or directory
In file included from re.h:37,
                 from modsecurity.h:42,
                 from mod_security2.c:18:
apache2.h:25: error: syntax error before "modsec_register_tfn"
apache2.h:26: error: syntax error before "modsec_register_operator"
apache2.h:31: error: syntax error before '*' token
apache2.h:31: warning: function declaration isn't a prototype
apache2.h:33: error: syntax error before '*' token
apache2.h:33: warning: function declaration isn't a prototype
apache2.h:40: warning: type defaults to `int' in declaration of `apr_status_t'
apache2.h:40: error: syntax error before "input_filter"
apache2.h:43: warning: type defaults to `int' in declaration of `apr_status_t'
apache2.h:43: error: syntax error before "output_filter"
apache2.h:45: warning: type defaults to `int' in declaration of `apr_status_t'
apache2.h:45: error: syntax error before "read_request_body"
apache2.h:56: error: syntax error before '*' token
apache2.h:56: warning: function declaration isn't a prototype
apache2.h:58: error: syntax error before '*' token
apache2.h:58: warning: function declaration isn't a prototype
apache2.h:60: error: syntax error before '*' token
apache2.h:61: warning: function declaration isn't a prototype
apache2.h:65: error: syntax error before '*' token
apache2.h:65: warning: function declaration isn't a prototype
apache2.h:67: error: syntax error before '*' token
apache2.h:67: warning: function declaration isn't a prototype
In file included from modsecurity.h:42,
                 from mod_security2.c:18:
re.h:42: error: syntax error before "msre_parse_targets"
re.h:43: error: syntax error before "apr_array_header_t"
re.h:43: warning: type defaults to `int' in declaration of `msre_parse_targets'
re.h:43: warning: function declaration isn't a prototype
re.h:43: warning: data definition has no type or storage class
re.h:45: error: syntax error before "msre_parse_actions"
re.h:46: warning: type defaults to `int' in declaration of `msre_parse_actions'
re.h:46: warning: data definition has no type or storage class
re.h:61: error: syntax error before '*' token
re.h:62: warning: function declaration isn't a prototype
re.h:68: error: syntax error before "apr_pool_t"
re.h:68: warning: no semicolon at end of struct or union
re.h:69: warning: type defaults to `int' in declaration of `variables'
re.h:69: warning: data definition has no type or storage class
re.h:70: error: syntax error before '*' token
re.h:70: warning: type defaults to `int' in declaration of `operators'
re.h:70: warning: data definition has no type or storage class
re.h:71: error: syntax error before '*' token
re.h:71: warning: type defaults to `int' in declaration of `actions'
re.h:71: warning: data definition has no type or storage class
re.h:72: error: syntax error before '*' token
re.h:72: warning: type defaults to `int' in declaration of `tfns'
re.h:72: warning: data definition has no type or storage class
re.h:73: error: syntax error before '}' token
re.h:75: error: syntax error before '*' token
re.h:75: warning: function declaration isn't a prototype
re.h:82: error: syntax error before "apr_pool_t"
re.h:82: warning: no semicolon at end of struct or union
re.h:85: error: syntax error before '*' token
re.h:85: warning: type defaults to `int' in declaration of `phase_request_headers'
re.h:85: warning: data definition has no type or storage class
re.h:86: error: syntax error before '*' token
re.h:86: warning: type defaults to `int' in declaration of `phase_request_body'
re.h:86: warning: data definition has no type or storage class
re.h:87: error: syntax error before '*' token
re.h:87: warning: type defaults to `int' in declaration of `phase_response_headers'
re.h:87: warning: data definition has no type or storage class
re.h:88: error: syntax error before '*' token
re.h:88: warning: type defaults to `int' in declaration of `phase_response_body'
re.h:88: warning: data definition has no type or storage class
re.h:89: error: syntax error before '*' token
re.h:89: warning: type defaults to `int' in declaration of `phase_logging'
re.h:89: warning: data definition has no type or storage class
re.h:90: error: syntax error before '}' token
re.h:92: error: syntax error before "msre_ruleset_process_phase"
re.h:92: warning: type defaults to `int' in declaration of `msre_ruleset_process_phase'
re.h:92: warning: data definition has no type or storage class
re.h:94: error: syntax error before "msre_ruleset_process_phase_internal"
re.h:94: warning: type defaults to `int' in declaration of `msre_ruleset_process_phase_internal'
re.h:94: warning: data definition has no type or storage class
re.h:96: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:96: error: syntax error before "apr_pool_t"
re.h:96: warning: function declaration isn't a prototype
re.h:104: error: syntax error before "apr_array_header_t"
re.h:104: warning: no semicolon at end of struct or union
re.h:114: error: syntax error before '}' token
re.h:116: warning: declaration of `ruleset' shadows a global declaration
re.h:112: warning: shadowed declaration is here
re.h:117: warning: declaration of `actions' shadows a global declaration
re.h:71: warning: shadowed declaration is here
re.h:121: error: syntax error before "msre_rule_process"
re.h:121: warning: type defaults to `int' in declaration of `msre_rule_process'
re.h:121: warning: data definition has no type or storage class
re.h:158: error: syntax error before '*' token
re.h:158: warning: function declaration isn't a prototype
re.h:161: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:162: error: syntax error before '*' token
re.h:162: warning: function declaration isn't a prototype
re.h:164: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:167: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:169: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:171: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:173: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:175: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:188: warning: declaration of `ruleset' shadows a global declaration
re.h:112: warning: shadowed declaration is here
re.h:189: error: syntax error before "apr_table_t"
re.h:189: warning: function declaration isn't a prototype
re.h:208: error: syntax error before "apr_table_t"
re.h:208: warning: no semicolon at end of struct or union
re.h:228: warning: built-in function `log' declared as non-function
re.h:230: error: syntax error before '}' token
re.h:232: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:235: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:238: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:240: warning: declaration of `actionset' shadows a global declaration
re.h:110: warning: shadowed declaration is here
re.h:264: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:265: error: syntax error before "apr_status_t"
re.h:265: warning: no semicolon at end of struct or union
re.h:266: error: syntax error before '*' token
re.h:266: error: syntax error before "apr_pool_t"
re.h:266: warning: type defaults to `int' in declaration of `apr_status_t'
re.h:266: warning: function declaration isn't a prototype
re.h:266: error: `apr_status_t' declared as function returning a function
re.h:266: warning: function declaration isn't a prototype
re.h:266: error: `apr_status_t' redeclared as different kind of symbol
apache2.h:45: error: previous declaration of `apr_status_t'
re.h:266: warning: data definition has no type or storage class
re.h:278: warning: declaration of `engine' shadows a global declaration
re.h:83: warning: shadowed declaration is here
re.h:280: error: syntax error before '*' token
re.h:281: warning: function declaration isn't a prototype
re.h:283: error: syntax error before "msre_parse_vars"
re.h:283: warning: declaration of `ruleset' shadows a global declaration
re.h:112: warning: shadowed declaration is here
re.h:284: error: syntax error before "apr_array_header_t"
re.h:284: warning: type defaults to `int' in declaration of `msre_parse_vars'
re.h:284: warning: function declaration isn't a prototype
re.h:284: warning: data definition has no type or storage class
re.h:286: warning: declaration of `actionset' shadows a global declaration
re.h:110: warning: shadowed declaration is here
In file included from mod_security2.c:18:
modsecurity.h:44:23: ap_config.h: No such file or directory
modsecurity.h:45:21: apr_md5.h: No such file or directory
modsecurity.h:46:25: apr_strings.h: No such file or directory
modsecurity.h:47:19: httpd.h: No such file or directory
modsecurity.h:48:25: http_config.h: No such file or directory
modsecurity.h:49:22: http_log.h: No such file or directory
modsecurity.h:50:27: http_protocol.h: No such file or directory
modsecurity.h:91:19: unixd.h: No such file or directory
In file included from mod_security2.c:18:
modsecurity.h:113: error: syntax error before "AP_MODULE_DECLARE_DATA"
modsecurity.h:113: warning: type defaults to `int' in declaration of `security2_module'
modsecurity.h:113: warning: data definition has no type or storage class
modsecurity.h:115: error: syntax error before "module_directives"
modsecurity.h:115: warning: type defaults to `int' in declaration of `module_directives'
modsecurity.h:115: warning: data definition has no type or storage class
modsecurity.h:169: error: syntax error before "apr_pool_t"
modsecurity.h:169: warning: no semicolon at end of struct or union
modsecurity.h:172: error: syntax error before '*' token
modsecurity.h:172: warning: type defaults to `int' in declaration of `r_early'
modsecurity.h:172: warning: data definition has no type or storage class
modsecurity.h:173: error: syntax error before '*' token
modsecurity.h:173: warning: type defaults to `int' in declaration of `r'
modsecurity.h:173: warning: data definition has no type or storage class
modsecurity.h:182: error: conflicting types for `phase'
re.h:215: error: previous declaration of `phase'
modsecurity.h:186: error: syntax error before '*' token
modsecurity.h:186: warning: type defaults to `int' in declaration of `if_brigade'
modsecurity.h:186: warning: data definition has no type or storage class
modsecurity.h:190: error: syntax error before "reqbody_length"
modsecurity.h:190: warning: type defaults to `int' in declaration of `reqbody_length'
modsecurity.h:190: warning: data definition has no type or storage class
modsecurity.h:193: error: syntax error before '*' token
modsecurity.h:193: warning: type defaults to `int' in declaration of `of_brigade'
modsecurity.h:193: warning: data definition has no type or storage class
modsecurity.h:199: error: syntax error before "resbody_length"
modsecurity.h:199: warning: type defaults to `int' in declaration of `resbody_length'
modsecurity.h:199: warning: data definition has no type or storage class
modsecurity.h:203: error: syntax error before '*' token
modsecurity.h:203: warning: type defaults to `int' in declaration of `error_messages'
modsecurity.h:203: warning: data definition has no type or storage class
modsecurity.h:204: error: syntax error before '*' token
modsecurity.h:204: warning: type defaults to `int' in declaration of `alerts'
modsecurity.h:204: warning: data definition has no type or storage class
modsecurity.h:231: error: syntax error before '*' token
modsecurity.h:231: warning: type defaults to `int' in declaration of `request_headers'
modsecurity.h:231: warning: data definition has no type or storage class
modsecurity.h:233: error: syntax error before "request_content_length"
modsecurity.h:233: warning: type defaults to `int' in declaration of `request_content_length'
modsecurity.h:233: warning: data definition has no type or storage class
modsecurity.h:236: error: syntax error before '*' token
modsecurity.h:236: warning: type defaults to `int' in declaration of `arguments'
modsecurity.h:236: warning: data definition has no type or storage class
modsecurity.h:237: error: syntax error before '*' token
modsecurity.h:237: warning: type defaults to `int' in declaration of `arguments_to_sanitise'
modsecurity.h:237: warning: data definition has no type or storage class
modsecurity.h:238: error: syntax error before '*' token
modsecurity.h:238: warning: type defaults to `int' in declaration of `request_headers_to_sanitise'
modsecurity.h:238: warning: data definition has no type or storage class
modsecurity.h:239: error: syntax error before '*' token
modsecurity.h:239: warning: type defaults to `int' in declaration of `response_headers_to_sanitise'
modsecurity.h:239: warning: data definition has no type or storage class
modsecurity.h:240: error: syntax error before '*' token
modsecurity.h:240: warning: type defaults to `int' in declaration of `request_cookies'
modsecurity.h:240: warning: data definition has no type or storage class
modsecurity.h:244: error: syntax error before '*' token
modsecurity.h:244: warning: type defaults to `int' in declaration of `tx_vars'
modsecurity.h:244: warning: data definition has no type or storage class
modsecurity.h:250: error: syntax error before '*' token
modsecurity.h:250: warning: type defaults to `int' in declaration of `response_headers'
modsecurity.h:250: warning: data definition has no type or storage class
modsecurity.h:252: error: syntax error before "bytes_sent"
modsecurity.h:252: warning: type defaults to `int' in declaration of `bytes_sent'
modsecurity.h:252: warning: data definition has no type or storage class
modsecurity.h:260: error: syntax error before '*' token
modsecurity.h:260: warning: type defaults to `int' in declaration of `msc_reqbody_mp'
modsecurity.h:260: warning: data definition has no type or storage class
modsecurity.h:261: error: syntax error before '*' token
modsecurity.h:261: warning: type defaults to `int' in declaration of `msc_reqbody_chunks'
modsecurity.h:261: warning: data definition has no type or storage class
modsecurity.h:285: error: syntax error before '*' token
modsecurity.h:285: warning: type defaults to `int' in declaration of `new_auditlog_fd'
modsecurity.h:285: warning: data definition has no type or storage class
modsecurity.h:287: error: syntax error before "new_auditlog_md5ctx"
modsecurity.h:287: warning: type defaults to `int' in declaration of `new_auditlog_md5ctx'
modsecurity.h:287: warning: data definition has no type or storage class
modsecurity.h:295: error: syntax error before "request_time"
modsecurity.h:295: warning: type defaults to `int' in declaration of `request_time'
modsecurity.h:295: warning: data definition has no type or storage class
modsecurity.h:296: error: syntax error before "time_checkpoint_1"
modsecurity.h:296: warning: type defaults to `int' in declaration of `time_checkpoint_1'
modsecurity.h:296: warning: data definition has no type or storage class
modsecurity.h:297: error: syntax error before "time_checkpoint_2"
modsecurity.h:297: warning: type defaults to `int' in declaration of `time_checkpoint_2'
modsecurity.h:297: warning: data definition has no type or storage class
modsecurity.h:298: error: syntax error before "time_checkpoint_3"
modsecurity.h:298: warning: type defaults to `int' in declaration of `time_checkpoint_3'
modsecurity.h:298: warning: data definition has no type or storage class
modsecurity.h:307: error: syntax error before '*' token
modsecurity.h:307: warning: type defaults to `int' in declaration of `collections'
modsecurity.h:307: warning: data definition has no type or storage class
modsecurity.h:308: error: syntax error before '*' token
modsecurity.h:308: warning: type defaults to `int' in declaration of `collections_dirty'
modsecurity.h:308: warning: data definition has no type or storage class
modsecurity.h:309: error: syntax error before '}' token
modsecurity.h:312: error: syntax error before "apr_pool_t"
modsecurity.h:312: warning: no semicolon at end of struct or union
modsecurity.h:323: error: syntax error before '*' token
modsecurity.h:323: warning: type defaults to `int' in declaration of `of_mime_types'
modsecurity.h:323: warning: data definition has no type or storage class
modsecurity.h:328: error: syntax error before '*' token
modsecurity.h:328: warning: type defaults to `int' in declaration of `debuglog_fd'
modsecurity.h:328: warning: data definition has no type or storage class
modsecurity.h:334: error: syntax error before '*' token
modsecurity.h:334: warning: type defaults to `int' in declaration of `rule_exceptions'
modsecurity.h:334: warning: data definition has no type or storage class
modsecurity.h:351: error: syntax error before '*' token
modsecurity.h:351: warning: type defaults to `int' in declaration of `auditlog_fd'
modsecurity.h:351: warning: data definition has no type or storage class
modsecurity.h:383: error: syntax error before '}' token
modsecurity.h:389: error: syntax error before "apr_status_t"
modsecurity.h:389: warning: no semicolon at end of struct or union
modsecurity.h:391: error: syntax error before '}' token
modsecurity.h:394: error: syntax error before "apr_pool_t"
modsecurity.h:394: warning: no semicolon at end of struct or union
modsecurity.h:395: warning: type defaults to `int' in declaration of `auditlog_lock'
modsecurity.h:395: warning: data definition has no type or storage class
modsecurity.h:398: error: syntax error before '}' token
modsecurity.h:402: error: syntax error before "apr_size_t"
modsecurity.h:402: warning: no semicolon at end of struct or union
modsecurity.h:404: error: syntax error before '}' token
modsecurity.h:428: error: syntax error before '*' token
modsecurity.h:428: warning: function declaration isn't a prototype
modsecurity.h:430: error: syntax error before "apr_pool_t"
modsecurity.h:430: warning: function declaration isn't a prototype
modsecurity.h:436: warning: type defaults to `int' in declaration of `apr_status_t'
modsecurity.h:436: error: `apr_status_t' redeclared as different kind of symbol
re.h:266: error: previous declaration of `apr_status_t'
modsecurity.h:436: error: syntax error before "modsecurity_tx_init"
modsecurity.h:438: warning: type defaults to `int' in declaration of `apr_status_t'
modsecurity.h:438: error: syntax error before "modsecurity_process_phase"
modsecurity.h:443: warning: type defaults to `int' in declaration of `apr_status_t'
modsecurity.h:443: error: syntax error before "modsecurity_request_body_start"
modsecurity.h:445: warning: type defaults to `int' in declaration of `apr_status_t'

make: *** [mod_security2.slo] Fehler 1
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten

Re: ModSecurity will nicht installieren...

Post by captaincrunch »

msc_multipart.h:25:24: apr_tables.h: No such file or directory
Dir fehlen wichtige Header-Dateien (schau mal nach apr-dev oder so).
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
sledge0303
Posts: 695
Joined: 2005-09-16 00:06
Location: Berlin-Reinickendorf

Re: ModSecurity will nicht installieren...

Post by sledge0303 »

Apache2 devels installiert?
Anonymous

Re: ModSecurity will nicht installieren...

Post by Anonymous »

Stehe gerade ein bisschen auf dem Schlauch wo finde ich die
Apache2 devels :?:
lucki2
Posts: 427
Joined: 2006-10-03 01:31

Re: ModSecurity will nicht installieren...

Post by lucki2 »

Header: richtig, die fehlen. Ich bin ja noch immer auf dem Trip, daß es mit 64bit vrs. 32 bit zusammen hängt. Kann auch mit statischem vrs dynamischem Linken zusammen hängen. Der Fehler oben(im Eingangspost) heißt, daß der Linker es nicht schafft Adressen richtig aufzulösen und einzusetzen. Manchmal wirft gcc das auch. obwohl er es können sollte: Bugs.

Das ist C-Bibliothek:
mod_security2.c:350: warning: implicit declaration of function 'strlen'
Das kann z.B. sein wenn 64Bit Header installiert sind und 32 Bit gesucht wird und wie üblich Fallunterscheidungen mit #ifdef gemacht werden.

Das ist aber Apache:
apache2.h:16:23: http_core.h: No such file or directory
apache2.h:17:26: http_request.h: No such file or directory
apache2.h:19:25: apr_general.h: No such file or directory
apache2.h:20:26: apr_optional.h: No such file or directory
Irgendwie die Pfade falsch oder Header nicht installiert. Mehr kann ich aus der Ferne auch nicht erkennen.

"Apache2 devels": Das ist das nächste Problem: wenn ich SuSE hätte ...
atrix
Posts: 25
Joined: 2006-11-21 21:23
Location: Bad Ems

Re: ModSecurity will nicht installieren...

Post by atrix »

gib in die console yast2 ein

danach gehst du auf Software installiern

nachm Laden Alt+S

und gibst devel ein
und mal schaun überall wo ein i davor steht, heißt das es bereits installiert ist