Summary: | emerging mod_php-5.0.2 fails when compiling mod_mm.lo | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Charlie Gehlin <charlie> |
Component: | [OLD] Server | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | major | CC: | askwar, dragonheart |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Charlie Gehlin
2004-11-02 10:59:06 UTC
*** 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 |