Re: Bug #1614: Compiling with APXS and Apache 1.3.6 dies with RegEx Errors

From: Date: Mon, 28 Jun 1999 13:41:13 +0000
Subject: Re: Bug #1614: Compiling with APXS and Apache 1.3.6 dies with RegEx Errors
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7681@lists.php.net to get a copy of this message
On Mon, Jun 28, 1999 at 01:30:24PM -0000, danbeck@scott.net wrote: > From: danbeck@scott.net > Operating system: Linux 2.0.36 (RedHat 5.2) > PHP version: 3.0.11 > PHP Bug Type: Compile Failure > Bug description: Compiling with APXS and Apache 1.3.6 dies with RegEx Errors > > When building with apxs from Apache 1.3.6, I get regex errors. This occurs whether or not I use > the --with-system-regex configure option. PHP will compile file if I just use --with-shared-apache. > I'm using the following configure options: > > ./configure --with-apxs\ > --with-mysql\ > --enable-debug=no --enable-track-vars=yes > > >From that I received the following output: > > parser.tab.o > In file included from /usr/include/apache/ap_config.h:1011, > from php.h:191, > from language-parser.y:57: > /usr/include/apache/hsregex.h:41: warning: `REG_EXTENDED' redefined > /usr/include/regex.h:252: warning: this is the location of the previous definition Hm, my changes for this don't seem to be in 3.0.11 :-( Try applying the attached patch to php.h. -- Regards, Sascha Schumann Consultant

diff -u php3/php.h:1.54 php3/php.h:1.55 --- php3/php.h:1.54 Mon Jun 21 20:26:37 1999 +++ php3/php.h Sun Jun 27 22:51:18 1999 @@ -28,7 +28,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php.h,v 1.54 1999/06/22 00:26:37 jim Exp $ */ +/* $Id: php.h,v 1.55 1999/06/28 02:51:18 sas Exp $ */ #ifndef _PHP_H #define _PHP_H @@ -159,12 +159,21 @@ #if REGEX #include "regex/regex.h" +#else +#include <regex.h> +#endif + +#ifndef _REGEX_H #define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */ +#endif +#ifndef _RX_H #define _RX_H 1 /* Try defining these for Linux to */ +#endif +#ifndef __REGEXP_LIBRARY_H__ #define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */ +#endif +#ifndef _H_REGEX #define _H_REGEX 1 /* This one is for AIX */ -#else -#include <regex.h> #endif #if STDC_HEADERS
« previous php.dev (#7681) next »