ID: 14269 Comment by: danny_milo at yahoo dot com Reported By: d dot a dot roozemond at student dot tue dot nl Status: Closed Bug Type: Feature/Change Request Operating System: SuSE linux 7.2 kernel 2.4.4 PHP Version: 4.0CVS-2001-11-28 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2003-02-06 15:02:43] 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 ------------------------------------------------------------------------ [2001-11-28 13:38:28] d dot a dot roozemond at student dot tue dot nl Sorry, didn't realise that. Thanx anyway. ------------------------------------------------------------------------ [2001-11-28 12:47:10] [EMAIL PROTECTED] 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 12:07:47] 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:05:53] 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 :( ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14269&edit=1