#19433 [Bgs]: build failed when trying --with-mm

From: Date: Mon, 16 Sep 2002 12:15:43 +0000
Subject: #19433 [Bgs]: build failed when trying --with-mm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19447@lists.php.net to get a copy of this message
ID: 19433 User updated by: bugtracker@pech.cz Reported By: bugtracker@pech.cz Status: Bogus Bug Type: Compile Failure Operating System: Linux (RH 7.3) PHP Version: 4.2.3 New Comment: I thought, I've it installed. Command rpm -qa | grep mm- returns: mm-devel-1.1.3-8 mm-1.1.3-8 Previous Comments: ------------------------------------------------------------------------ [2002-09-16 07:12:04] sniper@php.net You're doing something really wrong. Try installing the MM library.. ------------------------------------------------------------------------ [2002-09-16 07:02:42] bugtracker@pech.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 06:45:28] derick@php.net Can you try totally refresh sources and then do this: rm configure ./buildconf ./configure --your options Derick ------------------------------------------------------------------------ [2002-09-16 06:41:31] bugtracker@pech.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:29:19] bugtracker@pech.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 --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19433&edit=1

« previous php.bugs (#19447) next »