php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14269 doesn't compile, reporting: mod_mm.c:35: #error mm is not thread-safe
Submitted: 2001-11-28 12:05 UTC Modified: 2001-11-28 13:38 UTC
From: d dot a dot roozemond at student dot tue dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0CVS-2001-11-28 OS: SuSE linux 7.2 kernel 2.4.4
Private report: No CVE-ID: None
 [2001-11-28 12:05 UTC] d dot a dot roozemond at student dot tue dot nl
downloaded latest cvs, using apache2, latest cvs, (that one compiled without any problems). configure is no problem, but doing make fails:

gcc -I. -I/src_dl/php4/ext/session -I/src_dl/php4/main -I/src_dl/php4 -I/usr/local/httpd2/include -I/src_dl/php4/Zend -I/usr/include/freetype2/freetype/include/freetype2/freetype -I/usr/include/imap -I/src_dl/php4/ext/mysql/libmysql -I/src_dl/php4/ext/xml/expat -D_REENTRANT -I/src_dl/php4/TSRM -DTHREAD=1 -g -O2 -pthread -Wall -DZTS -c mod_mm.c  -fPIC -DPIC -o mod_mm.lo
mod_mm.c:35: #error mm is not thread-safe
make[3]: *** [mod_mm.lo] Error 1
make[3]: Leaving directory `/src_dl/php4/ext/session'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src_dl/php4/ext/session'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src_dl/php4/ext'
make: *** [all-recursive] Error 1

my configure line:

./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib --with-config-file-path=/etc --with-exec-dir=%{libdir}/php/bin --with-mysql  --with-gd=/usr/lib --with-tiff-dir=/usr  --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-imap --with-zlib --with-bz2 --with-xml --with-ttf --with-t1lib-dir=/usr/share/t1lib --with-ftp --with-ndbm --with-gdbm --with-mm --with-gd=yes --with-qtdom=/usr/lib/qt-2.2.1/ --enable-versioning --enable-yp --enable-bcmath --enable-trans-sid --enable-inline-optimization --enable-track-vars --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-shmop  --enable-calendar --enable-exif --enable-ftp --enable-memory-limit --enable-wddx --enable-filepro --enable-dbase --enable-ctype --enable-debug --enable-force-cgi-redirect --enable-discard-path --enable-sigchild --enable-gd-imgstrttf --with-apxs2=/usr/local/httpd2/bin/apxs --with-freetype-dir=/usr/include/freetype2/freetype --with-imap-ssl

i can't figure out what the problem is :(

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-28 12:07 UTC] d dot a dot roozemond at student dot tue dot nl
well, actually, the problem is quite easy: it won't compile

i can't figure out why the problem occurs and how to fix it ;)

 [2001-11-28 12:47 UTC] derick@php.net
Not a bug, the MM module can't be used in a threading webserver, including Apache 2.
I'm closing this.

Derick
 [2001-11-28 13:38 UTC] d dot a dot roozemond at student dot tue dot nl
Sorry, didn't realise that.
Thanx anyway.
 [2003-02-06 15:02 UTC] jsu2 at emory dot edu
Okay, I was able to figured out how to get PHP to use java classes.  I was able
to get rpm to build all the packages.  Now, I'm trying to enable servlets.
The only difference is I've added --with-servlet to the list of arguments to
pass to the configure script.  I get the following compile error, that wasn't
present when it was just --with-java.

make[3]: Entering directory `/usr/src/redhat/BUILD/php-4.1.2/ext/session'
/bin/sh /usr/src/redhat/BUILD/php-4.1.2/libtool --silent --mode=compile /usr/src/redhat/BUILD/php-4.1.2/meta_ccld  -I.
-I/usr/src/redhat/BUILD/php-4.1.2/ext/session -I/usr/src/redhat/BUILD/php-4.1.2/main -I/usr/src/redhat/BUILD/php-4.1.2
-I/usr/src/redhat/BUILD/php-4.1.2/Zend -I/usr/include/libxml2 -I/usr/include/freetype2/freetype -I/usr/include/imap -I/usr/include/mysql
-I/usr/local/include -I/usr/include/pspell -I/usr/include/ucd-snmp  -D_REENTRANT -I/usr/src/redhat/BUILD/php-4.1.2/TSRM -O2 -march=i386
-mcpu=i686 -fPIC -pthread -DZTS -prefer-pic  -c mod_mm.c
mod_mm.c:37:3: #error mm is not thread-safe
make[3]: *** [mod_mm.lo] Error 1
 [2004-09-08 18:29 UTC] danny_milo at yahoo dot com
well, given that when a user gets this error message, he doesnt know what to do to make it go away, it would be better to either
- #warning and #if 0 the module so that it will just be skipped, or
- add a comment what configure option / chants / prayers to use to make the #error go away if one happens to have apache2

since this error does happen quite often and easily on gentoo (with php 5), for example.

just my 5 cents :)

Thanks
 [2011-04-02 00:26 UTC] jose dot nobile at gmail dot com
mm library is not worth it to be as php extension

I'm trying to compile last stable php (5.3.6) with last stable mm library 1.4.2, 
and ...

php-5.3.6/ext/session/mod_mm.c:37:3: error: #error mm is not thread-safe

A library for memory handling, but it don't know what is thread safety, mutex, bla 
bla bla ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC