[ https://www.modsecurity.org/tracker/browse/MODSEC-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Breno Silva Pinto resolved MODSEC-203.
--------------------------------------
Resolution: Fixed
Added a OS type checking at autotools and remove the undefied directive of libtool when we detected mac os.
> Make sure ModSecurity can compile under Darwin
> ----------------------------------------------
>
> Key: MODSEC-203
> URL: https://www.modsecurity.org/tracker/browse/MODSEC-203
> Project: ModSecurity
> Issue Type: Improvement
> Security Level: Normal
> Components: Build System
> Affects Versions: 2.6.0
> Reporter: Breno Silva Pinto
> Assignee: Breno Silva Pinto
> Fix For: 2.6.0
>
>
> Had some compile problems under Darwin
> bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/libxml2 -MT mod_security2_la-re_operators.lo -MD -MP -MF .deps/mod_security2_la-re_operators.Tpo -c -o mod_security2_la-re_operators.lo `test -f 're_operators.c' || echo './'`re_operators.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/libxml2 -MT mod_security2_la-re_operators.lo -MD -MP -MF .deps/mod_security2_la-re_operators.Tpo -c re_operators.c -fno-common -DPIC -o .libs/mod_security2_la-re_operators.o
> re_operators.c: In function 'msre_op_ipmatch_param_init':
> mod_security2.c: In function 'hook_request_late':
> mod_security2.c:806: warning: format '%d' expects type 'int', but argument 3 has type 'apr_size_t'
> mod_security2.c: In function 'sec_guardian_logger':
> mod_security2.c:916: warning: format '%ld' expects type 'long int', but argument 4 has type 'long long int'
> apache2_io.c: In function 'input_filter':
> apache2_io.c:69: warning: format '%ld' expects type 'long int', but argument 6 has type 'apr_off_t'
> apache2_io.c: In function 'inject_content_to_of_brigade':
> apache2_io.c:474: warning: format '%d' expects type 'int', but argument 4 has type 'apr_size_t'
> e_operators.c: In function 'msre_op_ipmatch_param_init':
> re_operators.c:195: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:199: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:200: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:204: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:209: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:209: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:247: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:251: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:252: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:256: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:261: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:261: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c: In function 'msre_op_ipmatch_execute':
> re_operators.c:395: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:395: error: 'struct in6_addr' has no member named '__in6_u'
> re_operators.c:396: error: 'struct in6_addr' has no member named '__in6_u'
> make[2]: *** [mod_security2_la-re_operators.lo] Error 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://www.modsecurity.org/tracker/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|