Have tried to disable the 'threads' USE-flag and edited the ebuild to say '--without-tsrm-pthreads' at the 'myconf='-statement@line 90. Reproducible: Always Steps to Reproduce: 1.USE="-mysqli -threads" emerge -Dv mod_php 2. 3. Actual Results: /bin/sh /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/libtool --silent -- preserve-dup-deps --mode=compile /var/tmp/portage/mod_php-5.0.2/work/php- 5.0.2/meta_ccld -Iext/shmop/ -I/var/tmp/portage/mod_php-5.0.2/work/php- 5.0.2/ext/shmop/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-5.0.2/work/php- 5.0.2/include -I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/main - I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2 -I/var/tmp/portage/mod_php- 5.0.2/work/php-5.0.2/Zend -I/usr/include/libxml2 -I/usr/include/imap - I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/oniguruma - I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/libmbfl - I/var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/mbstring/libmbfl/mbfl - I/usr/include/mysql -D_REENTRANT -I/var/tmp/portage/mod_php-5.0.2/work/php- 5.0.2/TSRM -DTHREAD=1 -O3 -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -mno- sse3 -mno-3dnow -funroll-loops -pipe -pthread -DZTS -prefer-pic - c /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/shmop/shmop.c -o ext/shmop/shmop.lo /var/tmp/portage/mod_php-5.0.2/work/php-5.0.2/ext/session/mod_mm.c:37:3: #error mm is not thread-safe make: *** [ext/session/mod_mm.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/mod_php-5.0.2 failed. !!! Function php5-sapi_src_compile, Line 432, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: mod_php to compile :) # emerge info Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r6 i686) ================================================================= System uname: 2.6.8-gentoo-r6 i686 Intel(R) Xeon(TM) CPU 3.06GHz Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -mno- 3dnow -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env .d" CXXFLAGS="-O3 -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -mno- 3dnow -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks sandbox" GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://sparcux.lmera.ericsson.se/gentoo-portage" USE="X X509 acpi afs apache2 avi bcmath berkdb bitmap-fonts bzlib cdr cpdflib crypt cups curl curlwrappers dba dio encode esd exif f77 foomaticdb ftp gd gd- external gdbm gif gmp gnome gnutls gtk gtk2 imagemagick imap imlib ipv6 ithreads java javascript jpeg kde kerberos krb4 ldap libg++ libwww lm_sensors lzw-tiff mad mailwrapper md5sum mikmod mime mmap mmx mng motif mozilla mpeg mysql mysqli nas ncurses nis nls nocardbus oggvorbis pam pcre pdflib perl php plotutils png pnp python qt readline samba sasl sdl session shared sharedmem slang snmp sockets sse ssl szip tcltk tcpd threads tiff truetype unicode usb vhosts vim-with-x wmf x86 xml2 zlib"
*** Bug 69919 has been marked as a duplicate of this bug. ***
Same here. What does "mod_mm" do? What would I need to disable to have this module not be compiled? I'm trying to compile php with the following use flags: 14:14:08 askwar@alturo:/Portage/tree/app-misc/mc $ sudo emerge -vat dev-php/mod_php These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] dev-php/mod_php-5.0.2 -adabas +apache2 +bcmath +berkdb -birdstep +bzlib +calendar -cdb -cpdflib +crypt -ctype +curl +curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -debug -dio -empress -empress-bcs -esoob +exif +fam -fdftk -filepro -flatfile -frontbase +ftp +gd -gd-external +gdbm +gmp -hyperwave-api +iconv -imap -informix -ingres +inifile -interbase -iodbc +jpeg +ldap -libedit -mcve -memlimit +mhash +mime +ming -mnogosearch -msession -msql -mssql +mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos +pcntl +pcre -pfpro +png +posix +postgres -qdbm +readline -recode -sapdb +sasl +session +shared +sharedmem -simplexml -snmp +soap +sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct +sysvipc +tidy +tiff -tokenizer +truetype -wddx +xml2 +xmlrpc -xpm +xsl +zlib 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] n 14:18:22 askwar@alturo:/Portage/tree/app-misc/mc $ emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3.PHP2.4kb.cleaned.no-preempt.05 i686) ================================================================= System uname: 2.6.9-gentoo-r3.PHP2.4kb.cleaned.no-preempt.05 i686 Intel(R) Celeron(R) CPU 2.00GHz Gentoo Base System version 1.6.6 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-fomit-frame-pointer -pipe -O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.158.29/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl apache2 apm arts async avi bzlib crypt cscope cups curl curlwrappers diet djbfft encode exif fam flash foomaticdb ftp fwdzone gd gdbm gif hal hardened iconv imagemagick imap imlib immqt-bc ithreads javascript jpeg ldap libedit libg++ libwww lzo lzw lzw-tiff mad maildir mailwrapper mbox mmap mmx mng mpeg mysql ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl offensive oggvorbis opengl oss pam parse-clocks pcntl pcre pdflib perl pic pie png posix postgres pwdb python qt quicktime readline recode sasl sdl shared slang sockets spell sse ssl sysvipc tcpd tiff truetype unicode vhosts x86 xfs xml2 xmms xv zlib linguas_de"
When I compile with USE=-session, the emerge works fine. However, I don't like that solution. I'd really like to have session support.
dragonheart: please file PHP bugs to php-bugs and NOT directly to me. PHP doesn't support the threaded apache2 MPMs (it crashes very often). you must have Apache2 without USE=threads.
Sorry, I disagree. That's not an invalid bug. If Gentoo says that PHP doesn't work with Apache with threads, it should not even try to compile with threads. Just like there are *numerous* checks already in PHP, there should be one more check which bombs if Apache is compiled with Threads and inform the user about this.
The PHP folk say that not me. http://www.google.ca/search?q=cache:LiQIinhCjMEJ:news.php.net/php.internals/10491+site:php.net+php+apache2+mpm&hl=en
Fine :) It would still be better if the ebuild had that sort of extension.
Robin, this bug is not INVALID, please change to more appropriate CANTFIX or WONTFIX as the bug really exist if you compile apache with threads and the ebuild/configure-script/or whatever for mod_php doesn't detect it and die(). The bug is furthermore far from resolved, so please change status to CLOSED. Anyone else with the same problem can consider ***************** 'USE="-threads" emerge apache php mod_php' ***************** as a very temporary and non-threaded solution (works for me). If not - you have to make all ebuilds that depend on USE="session" masked (if apache is threaded) like squirrelmail among many, or portage is to be considered as broken and mod_php as a blocker from my point of view.
some more details about this "bug": http://bugs.php.net/bug.php?id=14269 Compile apache2 without threads, then you'll be able to use sessions in php.
I realize that... But shouldn't the ebuilds for apache and/or (mod_)php have: *)protection from compiling apache with USE="threads" IF you have USE="session" OR *) protection from compiling (mod_)php with USE="session" IF you have USE="threads" thanks /Charlie
The statement "Compile apache2 without threads, then you'll be able to use sessions in php." is not correct as mod_mm.lo is only one of the two session save handlers that are distributed with PHP and it is not even the default one (which is mod_files). A better solution would be to not build the mm session save handler when PHP is built for an Apache 2 with a threading MPM.
Well, works for me :) /C
If you're willing to try out the Apache Refresh packages, I hope that mod_php-5.0.4 solves this for you. Please give it a go, and let me know what happens. Best regards, Stu