Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Apr 2008 02:49:06 +0000
From:      "Julian C. Dunn" <jdunn@aquezada.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122364: mod_security2 won't work properly without libxml2
Message-ID:  <1207104546.3229.5.camel@jupiter.acf.aquezada.com>
Resent-Message-ID: <200804020310.m323A1nj085628@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122364
>Category:       ports
>Synopsis:       mod_security2 won't work properly without libxml2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 02 03:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Julian C. Dunn
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD aphrodite.acf.aquezada.com 6.3-STABLE FreeBSD 6.3-STABLE #7: Wed Mar 5 09:24:32 EST 2008 jdunn@aphrodite.acf.aquezada.com:/usr/obj/usr/src/sys/APHRODITE i386


>Description:

If mod_security is built without libxml2 support, then the bundled ruleset won't load with the following error:

Error creating rule: Unknown variable: XML

>How-To-Repeat:

Install www/mod_security2 without specifying the make flag -DWITH_LIBXML2. The above error will be seen when activating it in Apache.

>Fix:

Remove this knob from the Makefile:

 .if defined(WITH_LIBXML2)
 AP_EXTRAS+= -DWITH_LIBXML2
 AP_INC= ${LOCALBASE}/include/libxml2
 AP_LIB= ${LOCALBASE}/lib
 USE_GNOME= libxml2
 .endif

and always build with libxml2 as a dependency.


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1207104546.3229.5.camel>