php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19433 build failed when trying --with-mm
Submitted: 2002-09-16 06:29 UTC Modified: 2002-09-16 08:01 UTC
Votes:3
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bugtracker at pech dot cz Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.3 OS: Linux (RH 7.3)
Private report: No CVE-ID: None
 [2002-09-16 06:29 UTC] bugtracker at pech dot cz
Configure ends OK, but when trying to compile, it ends  
with recursive error caused by "--with-mm". 
 
Previously reported in 4.2.1 on the same system. 
 
--- BEGIN FULL CONFIGURE LINE ---  
--with-mod_charset --with-openssl 
--enable-inline-optimization --enable-memory-limit  
--enable-track-vars --enable-sigchild 
--enable-magic-quotes --enable-gd-native-ttf 
--enable-discard-path --enable-trans-sid 
--with-oci8=/opt/oracle --enable-versioning  
--enable-sockets --enable-ftp --enable-bcmath --enable-dba  
--with-unixODBC --enable-safe-mode  
--with-config-file-path=/usr/local/etc --with-wddx  
--with-mysql=/usr --with-gd=/usr --enable-mbstring  
--with-jpeg-dir=/usr --with-zlib-dir=/usr --enable-shmop  
--enable-sysvsem --with-freetype --enable-dbase --with-bz2  
--enable-calendar --with-pspell --with-qtdom  
--enable-tokenizer --with-recode --with-oracle=/opt/oracle  
--with-mm  
--- END FULL CONFIGURE LINE ---  
--- BEGIN ERROR MESSAGES ---  
./.libs/libphp4.a(mod_mm.o): In function `hash_split':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:96:  
undefined reference to `mm_calloc'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:111:  
undefined reference to `mm_free'  
./.libs/libphp4.a(mod_mm.o): In function `ps_sd_new':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:125:  
undefined reference to `mm_malloc'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:127:  
undefined reference to `mm_error'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:127:  
undefined reference to `mm_available'  
./.libs/libphp4.a(mod_mm.o): In function `ps_sd_destroy':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:174:  
undefined reference to `mm_free'  
./.libs/libphp4.a(mod_mm.o): In function  
`ps_mm_initialize':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:213:  
undefined reference to `mm_create'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:220:  
undefined reference to `mm_calloc'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:222:  
undefined reference to `mm_destroy'  
./.libs/libphp4.a(mod_mm.o): In function `ps_mm_destroy':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:245:  
undefined reference to `mm_free'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:246:  
undefined reference to `mm_destroy'  
./.libs/libphp4.a(mod_mm.o): In function `ps_read_mm':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:324:  
undefined reference to `mm_lock'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:335:  
undefined reference to `mm_unlock'  
./.libs/libphp4.a(mod_mm.o): In function `ps_write_mm':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:345:  
undefined reference to `mm_lock'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:356:  
undefined reference to `mm_free'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:358:  
undefined reference to `mm_malloc'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:373:  
undefined reference to `mm_unlock'  
./.libs/libphp4.a(mod_mm.o): In function `ps_delete_mm':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:383:  
undefined reference to `mm_lock'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:389:  
undefined reference to `mm_unlock'  
./.libs/libphp4.a(mod_mm.o): In function `ps_gc_mm':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:408:  
undefined reference to `mm_lock'  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:421:  
undefined reference to `mm_unlock'  
./.libs/libphp4.a(mod_mm.o): In function `ps_sd_destroy':  
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:175:  
undefined reference to `mm_free'  
collect2: ld returned 1 exit status  
make[1]: *** [php] Error 1  
make[1]: Leaving directory  
`/usr/src/redhat/BUILD/php-4.2.3'  
make: *** [all-recursive] Error 1  
--- END ERROR MESSAGES ---  
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-16 06:41 UTC] bugtracker at pech dot cz
When tried to compile it "--with-mm=shared", configure was 
OK again, but build failed with another error. Maybe I'm 
doing something wrong, please let me know. 
 
Previous bugreport in 4.2.1 is #17243. 
 
--- BEGIN FULL CONFIGURE LINE --- 
--with-mod_charset=shared --with-openssl 
--enable-inline-optimization --enable-memory-limit 
--enable-track-vars --enable-sigchild 
--enable-magic-quotes --enable-gd-native-ttf 
--enable-discard-path --enable-trans-sid --with-recode 
--with-mm=shared --enable-versioning 
--enable-sockets=shared --enable-ftp=shared 
--enable-bcmath=shared --enable-dba=shared 
--with-unixODBC=shared --enable-safe-mode 
--with-config-file-path=/etc --with-wddx=shared 
--with-mysql=shared,/usr --with-apxs --with-gd=shared,/usr 
--with-jpeg-dir=/usr --with-zlib-dir=shared,/usr  
--enable-dbase --enable-shmop=shared 
--enable-sysvsem=shared --with-freetype --enable-mbstring 
--with-bz2=shared --enable-calendar --with-pspell=shared 
--with-qtdom=shared --enable-tokenizer 
--with-oci8=shared,/opt/oracle 
--with-oracle=shared,/opt/oracle 
--- END FULL CONFIGURE LINE ---sh ./configure 
--with-mod_charset=shared --with-openssl \ 
--enable-inline-optimization --enable-memory-limit 
--enable-track-vars \ 
--enable-sigchild --enable-magic-quotes 
--enable-gd-native-ttf \ 
--enable-discard-path --enable-trans-sid --with-recode 
--with-mm=shared \ 
--enable-versioning --enable-sockets=shared 
--enable-ftp=shared --enable-bcmath=shared \ 
--enable-dba=shared --with-unixODBC=shared 
--enable-safe-mode --with-config-file-path=/etc \ 
--with-wddx=shared --with-mysql=shared,/usr --with-apxs 
--with-gd=shared,/usr \ 
--with-jpeg-dir=/usr --with-zlib-dir=shared,/usr  
--enable-dbase \ 
--enable-shmop=shared --enable-sysvsem=shared 
--with-freetype --enable-mbstring \ 
--with-bz2=shared --enable-calendar --with-pspell=shared 
--with-qtdom=shared \ 
--enable-tokenizer --with-oci8=shared,/opt/oracle 
--with-oracle=shared,/opt/oracle 
--- END FULL CONFIGURE LINE --- 
--- BEGIN ERROR MESSAGES --- 
internal_functions.c:57: `phpext_ps_mm_ptr' undeclared  
here (not in a function)  
internal_functions.c:57: initializer element is not  
constant  
internal_functions.c:57: (near initialization for  
`php_builtin_extensions[11]')  
make[2]: *** [internal_functions.lo] Error 1  
make[2]: Leaving directory  
`/usr/src/redhat/BUILD/php-4.2.3/main'  
make[1]: *** [all-recursive] Error 1  
make[1]: Leaving directory  
`/usr/src/redhat/BUILD/php-4.2.3/main'  
make: *** [all-recursive] Error 1  
error: Bad exit status from /var/tmp/rpm-tmp.38929  
(%build)  
--- END ERROR MESSAGES ---
 [2002-09-16 06:45 UTC] derick@php.net
Can you try totally refresh sources and then do this:
rm configure
./buildconf
./configure --your options

Derick
 [2002-09-16 07:02 UTC] bugtracker at pech dot cz
Build failed again. 
 
--- BEGIN ERROR MESSAGES --- 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:111: 
undefined reference to `mm_free' 
./.libs/libphp4.a(mod_mm.o): In function `ps_sd_new': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:125: 
undefined reference to `mm_malloc' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:127: 
undefined reference to `mm_error' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:127: 
undefined reference to `mm_available' 
./.libs/libphp4.a(mod_mm.o): In function `ps_sd_destroy': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:174: 
undefined reference to `mm_free' 
./.libs/libphp4.a(mod_mm.o): In function 
`ps_mm_initialize': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:213: 
undefined reference to `mm_create' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:220: 
undefined reference to `mm_calloc' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:222: 
undefined reference to `mm_destroy' 
./.libs/libphp4.a(mod_mm.o): In function `ps_mm_destroy': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:245: 
undefined reference to `mm_free' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:246: 
undefined reference to `mm_destroy' 
./.libs/libphp4.a(mod_mm.o): In function `ps_read_mm': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:324: 
undefined reference to `mm_lock' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:335: 
undefined reference to `mm_unlock' 
./.libs/libphp4.a(mod_mm.o): In function `ps_write_mm': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:345: 
undefined reference to `mm_lock' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:356: 
undefined reference to `mm_free' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:358: 
undefined reference to `mm_malloc' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:373: 
undefined reference to `mm_unlock' 
./.libs/libphp4.a(mod_mm.o): In function `ps_delete_mm': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:383: 
undefined reference to `mm_lock' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:389: 
undefined reference to `mm_unlock' 
./.libs/libphp4.a(mod_mm.o): In function `ps_gc_mm': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:408: 
undefined reference to `mm_lock' 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:421: 
undefined reference to `mm_unlock' 
./.libs/libphp4.a(mod_mm.o): In function `ps_sd_destroy': 
/usr/src/redhat/BUILD/php-4.2.3/ext/session/mod_mm.c:175: 
undefined reference to `mm_free' 
collect2: ld returned 1 exit status 
make[1]: *** [php] Error 1 
make[1]: Leaving directory 
`/usr/src/redhat/BUILD/php-4.2.3' 
make: *** [all-recursive] Error 1 
--- END ERROR MESSAGES ---
 [2002-09-16 07:12 UTC] sniper@php.net
You're doing something really wrong. Try installing the MM library..

 [2002-09-16 07:15 UTC] bugtracker at pech dot cz
I thought, I've it installed. Command `rpm -qa | grep mm-` 
returns: 
 
mm-devel-1.1.3-8 
mm-1.1.3-8
 [2002-09-16 08:01 UTC] sniper@php.net
--with-mm=shared does not work. Use '--with-mm' 

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC