libapache-mod-security: FTBFS: syntax error before 'regex_t'

Bug #13493 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
libapache-mod-security (Debian)
Fix Released
Unknown
libapache-mod-security (Ubuntu)
Invalid
High
Thom May

Bug Description

Automatically imported from Debian bug report #297983 http://bugs.debian.org/297983

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #297983 http://bugs.debian.org/297983

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 03 Mar 2005 21:55:27 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: libapache-mod-security: FTBFS: syntax error before 'regex_t'

Package: libapache-mod-security
Severity: serious
Tags: patch

When trying to build 'libapache-mod-security', I get the following error:

/usr/bin/libtool --silent --mode=compile gcc -prefer-pic -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2 -pthread -I/usr/include/apache2 -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include -c -o mod_security.lo mod_security.c && touch mod_security.slo
mod_security.c:280: error: syntax error before 'regex_t'

With the attached patch 'libapache-mod-security' can be compiled.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libapache-mod-security-1.8.4/apache2/mod_security.c ./apache2/mod_security.c
--- ../tmp-orig/libapache-mod-security-1.8.4/apache2/mod_security.c 2004-07-29 13:25:34.000000000 +0200
+++ ./apache2/mod_security.c 2005-03-03 21:49:41.610284810 +0100
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <regex.h>

 #ifdef WIN32
 #include <direct.h>

Revision history for this message
Thom May (thombot) wrote :

Already fixed in hoary; the proposed fix is incorrect anyway.

Revision history for this message
In , Alberto Gonzalez Iniesta (agi-inittab) wrote : Bug#297983: fixed in libapache-mod-security 1.8.4-2

Source: libapache-mod-security
Source-Version: 1.8.4-2

We believe that the bug you reported is fixed in the latest version of
libapache-mod-security, which is due to be installed in the Debian FTP archive:

libapache-mod-security_1.8.4-2.diff.gz
  to pool/main/liba/libapache-mod-security/libapache-mod-security_1.8.4-2.diff.gz
libapache-mod-security_1.8.4-2.dsc
  to pool/main/liba/libapache-mod-security/libapache-mod-security_1.8.4-2.dsc
libapache-mod-security_1.8.4-2_i386.deb
  to pool/main/liba/libapache-mod-security/libapache-mod-security_1.8.4-2_i386.deb
libapache2-mod-security_1.8.4-2_i386.deb
  to pool/main/liba/libapache-mod-security/libapache2-mod-security_1.8.4-2_i386.deb
mod-security-common_1.8.4-2_all.deb
  to pool/main/liba/libapache-mod-security/mod-security-common_1.8.4-2_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alberto Gonzalez Iniesta <email address hidden> (supplier of updated libapache-mod-security package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 8 Apr 2005 08:48:11 +0200
Source: libapache-mod-security
Binary: libapache-mod-security libapache2-mod-security mod-security-common
Architecture: source i386 all
Version: 1.8.4-2
Distribution: unstable
Urgency: medium
Maintainer: Alberto Gonzalez Iniesta <email address hidden>
Changed-By: Alberto Gonzalez Iniesta <email address hidden>
Description:
 libapache-mod-security - Tighten the Web application security for Apache 1.x
 libapache2-mod-security - Tighten the Web application security for Apache 2.x
 mod-security-common - Tighten the Web application security - common files
Closes: 267353 297983 303613
Changes:
 libapache-mod-security (1.8.4-2) unstable; urgency=medium
 .
   * New maintainer (Closes: #303613)
   * Thanks Adam Conrad for helping with the apache2
     LFS transition. (Closes: #267353)
   * Patched apache2/mod_security.c to include regex.h and build
     correctly. (Closes: #297983). Thanks Andreas Jochens.
     This was RC, thus the urgency.
Files:
 dd64bbdea8b5ec344f5ed324432b2440 737 web optional libapache-mod-security_1.8.4-2.dsc
 0cd6c87e96bc4984ad585d6c75918b08 7100 web optional libapache-mod-security_1.8.4-2.diff.gz
 6d4586b2f7c459fa2fb8cc1869317474 278316 web optional mod-security-common_1.8.4-2_all.deb
 e4e6872c111fe4e1f6a135c44f00766e 26902 web optional libapache-mod-security_1.8.4-2_i386.deb
 24141387c68a242215a846dce3c74e87 32880 web optional libapache2-mod-security_1.8.4-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCVi29xRSvjkukAcMRApmRAKCXFSUromTBz7mnd+aqBDZAuap3jwCgifAL
BPGxrzE73mRXDcdmIZlu8Nc=
=s/P1
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.3 KiB)

Message-Id: <email address hidden>
Date: Fri, 08 Apr 2005 03:17:07 -0400
From: Alberto Gonzalez Iniesta <email address hidden>
To: <email address hidden>
Subject: Bug#297983: fixed in libapache-mod-security 1.8.4-2

Source: libapache-mod-security
Source-Version: 1.8.4-2

We believe that the bug you reported is fixed in the latest version of
libapache-mod-security, which is due to be installed in the Debian FTP archive:

libapache-mod-security_1.8.4-2.diff.gz
  to pool/main/liba/libapache-mod-security/libapache-mod-security_1.8.4-2.diff.gz
libapache-mod-security_1.8.4-2.dsc
  to pool/main/liba/libapache-mod-security/libapache-mod-security_1.8.4-2.dsc
libapache-mod-security_1.8.4-2_i386.deb
  to pool/main/liba/libapache-mod-security/libapache-mod-security_1.8.4-2_i386.deb
libapache2-mod-security_1.8.4-2_i386.deb
  to pool/main/liba/libapache-mod-security/libapache2-mod-security_1.8.4-2_i386.deb
mod-security-common_1.8.4-2_all.deb
  to pool/main/liba/libapache-mod-security/mod-security-common_1.8.4-2_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alberto Gonzalez Iniesta <email address hidden> (supplier of updated libapache-mod-security package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 8 Apr 2005 08:48:11 +0200
Source: libapache-mod-security
Binary: libapache-mod-security libapache2-mod-security mod-security-common
Architecture: source i386 all
Version: 1.8.4-2
Distribution: unstable
Urgency: medium
Maintainer: Alberto Gonzalez Iniesta <email address hidden>
Changed-By: Alberto Gonzalez Iniesta <email address hidden>
Description:
 libapache-mod-security - Tighten the Web application security for Apache 1.x
 libapache2-mod-security - Tighten the Web application security for Apache 2.x
 mod-security-common - Tighten the Web application security - common files
Closes: 267353 297983 303613
Changes:
 libapache-mod-security (1.8.4-2) unstable; urgency=medium
 .
   * New maintainer (Closes: #303613)
   * Thanks Adam Conrad for helping with the apache2
     LFS transition. (Closes: #267353)
   * Patched apache2/mod_security.c to include regex.h and build
     correctly. (Closes: #297983). Thanks Andreas Jochens.
     This was RC, thus the urgency.
Files:
 dd64bbdea8b5ec344f5ed324432b2440 737 web optional libapache-mod-security_1.8.4-2.dsc
 0cd6c87e96bc4984ad585d6c75918b08 7100 web optional libapache-mod-security_1.8.4-2.diff.gz
 6d4586b2f7c459fa2fb8cc1869317474 278316 web optional mod-security-common_1.8.4-2_all.deb
 e4e6872c111fe4e1f6a135c44f00766e 26902 web optional libapache-mod-security_1.8.4-2_i386.deb
 24141387c68a242215a846dce3c74e87 32880 web optional libapache2-mod-security_1.8.4-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (G...

Read more...

Changed in libapache-mod-security:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.