php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17854 /pcre/pcrelib/pcre.c: structure has no member named `MEM'
Submitted: 2002-06-19 17:34 UTC Modified: 2002-07-02 14:28 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bugzilla at cm51-210 dot liwest dot at Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2002-06-28 OS: Linux 2.4.18
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugzilla at cm51-210 dot liwest dot at
New email:
PHP Version: OS:

 

 [2002-06-19 17:34 UTC] bugzilla at cm51-210 dot liwest dot at
when compiling with --with-gdmb, i get the following error:

/bin/sh libtool --silent --mode=compile gcc -DSUPPORT_UTF8 -I/usr/src/php4/ext/pcre/pcrelib -Iext/pcre/ -I/usr/src/php4/ext/pcre/ -DPHP_ATOM_INC -I/usr/src/php4/include -I/usr/src/php4/main -I/usr/src/php4 -I/usr/local/apache2/include -I/usr/src/php4/Zend -I/usr/src/php4/ext/xml/expat  -D_REENTRANT -I/usr/src/php4/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS  -prefer-pic -c /usr/src/php4/ext/pcre/pcrelib/pcre.c -o ext/pcre/pcrelib/pcre.lo
/usr/src/php4/ext/pcre/pcrelib/pcre.c: In function `php_pcre_compile':
/usr/src/php4/ext/pcre/pcrelib/pcre.c:3041: structure has no member named `MEM'
/usr/src/php4/ext/pcre/pcrelib/pcre.c:3041: parse error before character 0302
make: *** [ext/pcre/pcrelib/pcre.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-19 17:39 UTC] bugzilla at cm51-210 dot liwest dot at
--with-gdbm 

from the configure script:
checking for gdbm_open in -lgdbm... yes
checking for GDBM support... yes
checking for PCRE support... yes

btw. i get the same error with php-4.2.1

(and i _dont_ if i work without gdbm)
 [2002-06-19 19:09 UTC] sniper@php.net
What was the full configure line and which exact
snapshot did you use?

 [2002-06-20 01:29 UTC] bugzilla at cm51-210 dot liwest dot at
./configure --with-mysql --with-apxs2 --with-gdbm 
 
i did not use a snapshot, i got latest version 
from cvs. 
 
Versions (/php4/ext/pcre/CVS): 
 
/.cvsignore/1.9/Sat Apr 20 09:30:21 2002// 
/CREDITS/1.1/Mon Nov 20 10:31:30 2000// 
/config.m4/1.27/Thu Mar  7 14:19:31 2002// 
/php_pcre.c/1.126/Thu Jun 13 01:04:40 2002// 
/php_pcre.h/1.33/Mon May 13 17:28:36 2002//
 [2002-06-28 03:54 UTC] sniper@php.net
Can you please try with a plain './configure' line..ie. without any options. (And delete config.cache first!)

--Jani

 [2002-06-28 07:49 UTC] bugzilla at cm51-210 dot liwest dot at
tried with very last cvs version: 
 
if i ./configure without any options, it  
compiles fine.  
  
(well there is an warning at the very end:  
ext/mysql/libmysql/my_tempnam.o: In function  
`my_tempnam':  
/usr/src/php4/ext/mysql/libmysql/my_tempnam.c:103:  
the use of `tempnam' is dangerous, better use  
`mkstemp'  
  
but it works.  
  
(i needed gdbm for phpwiki. i now use mysql to  
replace gdbm)
 [2002-06-28 08:50 UTC] sniper@php.net
What's the gdbm version? (which linux distro, btw?)

 [2002-06-29 13:04 UTC] bugzilla at cm51-210 dot liwest dot at
...well there is a file called 
/usr/lib/libgdbm.so.2.0.0 :-) .. may be my gdbm 
version (?) 
 
distro = redhat 7.3 
kernel = 2.4.18-grsec-1.9.4 
gcc = gcc version 2.96 20000731 (Red Hat Linux 7.3 
2.96-110) 
libtool = ltmain.sh (GNU libtool) 1.4.2 
(1.922.2.54 2001/09/11 03:33:37)
 [2002-06-29 18:44 UTC] sniper@php.net
Okay, it's not that, I have the same. It's propably that
GCC you have installed. I suggest you update it.

http://www.google.com/search?hl=en&ie=ISO-8859-1&q=gcc+2.96

Those couple of first links explain a bit why I wouldn't
use that version..

 [2002-07-02 14:28 UTC] bugzilla at cm51-210 dot liwest dot at
works with upgraded gcc 3.1
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 08:00:02 2026 UTC