Re: [PHP4BETA] PHP Compile Problems

From: Date: Fri, 11 Feb 2000 22:01:15 +0000
Subject: Re: [PHP4BETA] PHP Compile Problems
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-10153@lists.php.net to get a copy of this message
Ok, things are just not working out. Here is the error I am getting when I use --with-system-regex Here is my PHP compilation setup (works fine and runs make fine, problems when make apache) --------------------------------------------------------------- ./configure \ --with-apache=/export/tmp/apache_1.3.9 \ --with-pgsql=/usr/local/pgsql \ --with-mysql=/usr/local/mysql \ --enable-safe-mode \ --enable-track-vars \ --enable-url-includes \ --with-system-regex Here is my Apache compilation setup --------------------------------------------------------------- ./configure \ --prefix=/netra/usr/local/etc/httpd \ --enable-module=rewrite \ --enable-module=usertrack \ --activate-module=src/modules/jserv/libjserv.a \ --activate-module=src/modules/php4/libphp4.a I am running Sparc Solaris 7 Php Version 4.0b3 Here is the error message dump when I compile apache 1.3.9 <=== src/modules/jserv ===> src/modules/php4 gcc -c -I../../os/unix -I../../include -DSOLARIS2=270 -I/export/tmp/php-4.0b3 -I/export/tmp/php-4.0b3/libzend -I/expo rt/tmp/php-4.0b3/libzend -I/export/tmp/php-4.0b3 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite ../../apaci mod_php 4.c In file included from ../../include/ap_config.h:1093, from /export/tmp/php-4.0b3/php.h:179, from mod_php4.c:23: ../../include/hsregex.h:41: warning: `REG_EXTENDED' redefined /usr/include/regex.h:32: warning: this is the location of the previous definition ../../include/hsregex.h:42: warning: `REG_ICASE' redefined /usr/include/regex.h:34: warning: this is the location of the previous definition ../../include/hsregex.h:43: warning: `REG_NOSUB' redefined /usr/include/regex.h:35: warning: this is the location of the previous definition ../../include/hsregex.h:44: warning: `REG_NEWLINE' redefined /usr/include/regex.h:33: warning: this is the location of the previous definition ../../include/hsregex.h:52: warning: `REG_BADPAT' redefined /usr/include/regex.h:68: warning: this is the location of the previous definition ../../include/hsregex.h:53: warning: `REG_ECOLLATE' redefined /usr/include/regex.h:56: warning: this is the location of the previous definition ../../include/hsregex.h:54: warning: `REG_ECTYPE' redefined /usr/include/regex.h:67: warning: this is the location of the previous definition ../../include/hsregex.h:55: warning: `REG_EESCAPE' redefined /usr/include/regex.h:57: warning: this is the location of the previous definition ../../include/hsregex.h:60: warning: `REG_BADBR' redefined /usr/include/regex.h:69: warning: this is the location of the previous definition ../../include/hsregex.h:61: warning: `REG_ERANGE' redefined /usr/include/regex.h:64: warning: this is the location of the previous definition ../../include/hsregex.h:62: warning: `REG_ESPACE' redefined /usr/include/regex.h:65: warning: this is the location of the previous definition ../../include/hsregex.h:63: warning: `REG_BADRPT' redefined /usr/include/regex.h:66: warning: this is the location of the previous definition ../../include/hsregex.h:74: warning: `REG_NOTBOL' redefined /usr/include/regex.h:49: warning: this is the location of the previous definition ../../include/hsregex.h:75: warning: `REG_NOTEOL' redefined /usr/include/regex.h:50: warning: this is the location of the previous definition In file included from ../../include/ap_config.h:1093, from /export/tmp/php-4.0b3/php.h:179, from mod_php4.c:23: ../../include/hsregex.h:25: conflicting types for `regoff_t' /usr/include/regex.h:27: previous declaration of `regoff_t' ../../include/hsregex.h:31: conflicting types for `regex_t' /usr/include/regex.h:100: previous declaration of `regex_t' ../../include/hsregex.h:35: conflicting types for `regmatch_t' /usr/include/regex.h:108: previous declaration of `regmatch_t' ../../include/hsregex.h:39: conflicting types for `regcomp' /usr/include/regex.h:131: previous declaration of `regcomp' ../../include/hsregex.h:69: conflicting types for `regerror' /usr/include/regex.h:133: previous declaration of `regerror' ../../include/hsregex.h:73: conflicting types for `regexec' /usr/include/regex.h:132: previous declaration of `regexec' ../../include/hsregex.h:83: conflicting types for `regfree' /usr/include/regex.h:134: previous declaration of `regfree' make[4]: *** [mod_php4.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/export/tmp/apache_1.3.9/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/export/tmp/apache_1.3.9' make: *** [build] Error 2 data[/export/tmp/apache_1.3.9]$ Victor wrote: > Hmm, that what must be causing it, I did run Configure twice. I am running 4.0b3 > php version. I also did not any problems running the cgi executable (no NT > though) and the problems that I've been having are exactly with split and regex > expressions. > > I also sometime get weird things like if I forget to put a $ for a variable like > > if ($i == 0) i = 1; > > the page that I get back says: "document returned no data" and absolutely no > errors are written anywhere. Hopefully, when I try to redo the regex thing > during compile, it will start working. I am getting apache 1.3.11 now and JServ > 1.1 (which is not compiling right now and I am waiting for responses from their > mailing list now :). Once I get that running, I will try to solve this php > problem and post the results. > > Thanks for your feedback. > Now I am not the only one with solaris to notice these problems. > > Victor > > Peter Kocks wrote: > > > > Also, I am having problems with php (It is compiled into apache) to > > > compile with system regex because it complains (when I compile apache) > > > that some stuff is defined twice. Any ideas? > > > > > > Php is also sometime having problems with memory allocation, dumping > > > core on some scripts, especially when regex's are used. > > > > > > I am running solaris 7 (sparc) > > > Apache 1.3.9 with JServ 1.1b3 > > > > I'm using a recent php snapshot (Feb 9), Solaris 7 (intel), mod_perl as > > well. > > > > I've noticed that if you compile with the --with-system-regex function > > everything works fine. I do not get things multiply defined. So, I don't > > get the same error as you. However, I'm very careful to run configure only > > once on a clean distribution. I've noticed similair build problems when > > I do multiple configure(s) on the same source tree. > > > > With NO (--with-system-regex). I find trouble when using split() or any > > other regex based function. I get seg faults and memory allocation errors. > > This only happens when php is run within apache. Run php as a script > > (/usr/local/bin/php) has no trouble. So, in this case I have the same error > > as you. > > > > Which version of php are you using? > > > > --pk > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net

« previous php.version4 (#10153) next »