Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84722 - mod_php-5.0.3-r1 doesn't compile because "mm is not thread-safe"
Summary: mod_php-5.0.3-r1 doesn't compile because "mm is not thread-safe"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2005-03-10 02:04 UTC by Holly
Modified: 2005-08-25 00:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holly 2005-03-10 02:04:53 UTC
I recently updated to apache-2.0.53 and its new configuration-layout, so maybe this could have caused the error? the threads useflag is not set, but all the mpm's are.

/bin/sh /var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/meta_ccld  -Iext/session/ -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/ext/session/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/include -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/main -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3 -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/ext/mbstring/oniguruma -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/ext/mbstring/libmbfl -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell  -D_REENTRANT -I/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/TSRM -DTHREAD=1  -pipe -Os -mtune=c3-2 -fomit-frame-pointer -pthread -DZTS  -prefer-pic -c /var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/ext/session/mod_user.c -o ext/session/mod_user.lo
/var/tmp/portage/mod_php-5.0.3-r1/work/php-5.0.3/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....


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r0,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 VIA Nehemiah
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 22 2005, 08:05:20)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.5, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r5
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -Os -mtune=c3-2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -Os -mtune=c3-2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://194.117.143.71 http://194.117.143.70
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://194.117.143.69"
LANG="english"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa apache2 apm arts audiofile avi
bash-completion berkdb bigger-fonts bitmap-fonts bzlib calendar caps cdb cdda
cddb cdio cdparanoia cdr cle266 codecs cpdflib crypt cups curl dba dedicated
divx4linux djbfft dts dvb dvd dvdr dvdread edl encode ethereal evo faad fam
fastcgi fbcon ffmpeg fftw flac flash fortran freetype ftp gd gdbm gif gnome
gnutls gphoto2 gpm gps gstreamer gtk gtk2 hal httpd iconv icq imagemagick imap
imlib innodb ipv6 jack java joystick jpeg kde kdexdeltas ladcca lcms libcaca
libwww live lm_sensors lzo mad maildir mailwrapper makecheck mcal memlimit
mikmod mime ming mmx mng mozilla mp3 mpeg mpeg2 mpeg4 mplayer mpm-leader
mpm-peruser mpm-prefork mpm-threadpool mpm-worker mysql mythtv nas ncurses nls
nocd nptl offensive ogg oggvorbis opengl oscar oss pam pcre pda pdflib perl php
png pnp portaudio pwdb python qt quicktime readline real rrdtool rtc samba sdl
session sharedmem slang slp sndfile snmp soap sockets sox speex spell spl sqlite
sse ssl stream svg svga tcltk tcpd tetex tga theora tidy tiff transcode truetype
unicode usb userlocales utf8 v4l v4l2 vcd vcdimager vhosts videos vim vlm vorbis
wmf wxwindows xanim xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv
xvid xvmc zlib video_cards_cle266"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-10 02:17:10 UTC
please include the output of 'apache2 -l'
Comment 2 Holly 2005-03-10 06:57:39 UTC
prometheus ~ # apache2 -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c
Comment 3 Nicolas Laplante 2005-03-11 17:28:14 UTC
I have the same problem here.

Output of 'apache2 -l':

Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c
Comment 4 Jürgen Hötzel 2005-03-20 06:22:46 UTC
The PHP guys are just nice and prevent you from shooting yourself in the foot:

http://docs.php.net/en/faq.installation.html#faq.installation.apache2

Maybe the php ebuild should prevent this compilation error by checking the MPM? 

J
Comment 5 Jürgen Hötzel 2005-03-20 06:22:46 UTC
The PHP guys are just nice and prevent you from shooting yourself in the foot:

http://docs.php.net/en/faq.installation.html#faq.installation.apache2

Maybe the php ebuild should prevent this compilation error by checking the MPM? 

Jürgen
Comment 6 Chris Verges 2005-04-25 17:21:43 UTC
I see the same error with 5.0.3-r2.  I've added the following to my /etc/portage/package.keywords file:

    >=dev-php/mod_php-5.0.0 -sasl -threads prefork ~x86

Here is the error:

/bin/sh /var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/meta_ccld  -Iext/session/ -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/ext/session/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/include -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/main -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3 -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/ext/mbstring/oniguruma -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/ext/mbstring/libmbfl -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell  -D_REENTRANT -I/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/TSRM -DTHREAD=1  -O2 -pipe -fomit-frame-pointer -pthread -DZTS  -prefer-pic -c /var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/ext/session/mod_user.c -o ext/session/mod_user.lo
/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/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.3-r2 failed.
!!! Function php5-sapi_src_compile, Line 437, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 7 Eric Lesage 2005-05-31 20:04:16 UTC
Consider my comment 24 to bug 77556.

(You may want to try without the sharedmem useflag.)
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2005-08-25 00:48:14 UTC
Hi,

This is now fixed in the dev-lang/php package in the Gentoo PHP Overlay.  The
overlay is available for general use, or you can wait until we add the packages
to Portage.

http://svn.gnqs.org/projects/gentoo-php-overlay/

Best regards,
Stu