Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80701

Summary: mod_php-5.0.3 compilation fails on session
Product: Gentoo Linux Reporter: Grzegorz Dubicki <gdubicki>
Component: [OLD] ServerAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Grzegorz Dubicki 2005-02-04 04:23:04 UTC
mod_php-5.0.3 compilaton fails with "session" USE flag set, while compiles cleanly without it.

Reproducible: Always
Steps to Reproduce:
0. // ACCEPT_KEYWORDS/package.keywords for dev-php/mod_php set to ~x86
1. USE="session" emerge -v mod_php

Actual Results:  
_php-5.0.3/work/php-5.0.3/meta_ccld -DSUPPORT_UTF8 -DLINK_SIZE=2
-DPOSIX_MALLOC_THRESHOLD=10
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/pcre/pcrelib -Iext/pcre/
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/pcre/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/include
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/main
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/Zend  -D_REENTRANT
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/TSRM  -mcpu=k6-2 -Os -pipe
-fomit-frame-pointer -mmmx -m3dnow -s -pthread -DZTS  -prefer-pic -c
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/pcre/pcrelib/pcre.c -o
ext/pcre/pcrelib/pcre.lo
/bin/sh /var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/libtool --silent
--preserve-dup-deps --mode=compile
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/meta_ccld -DSUPPORT_UTF8
-DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/pcre/pcrelib -Iext/pcre/
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/pcre/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/include
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/main
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/Zend  -D_REENTRANT
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/TSRM  -mcpu=k6-2 -Os -pipe
-fomit-frame-pointer -mmmx -m3dnow -s -pthread -DZTS  -prefer-pic -c
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/pcre/php_pcre.c -o
ext/pcre/php_pcre.lo
/bin/sh /var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/libtool --silent
--preserve-dup-deps --mode=compile
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/meta_ccld  -Iext/session/
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/session/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/include
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/main
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/Zend  -D_REENTRANT
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/TSRM  -mcpu=k6-2 -Os -pipe
-fomit-frame-pointer -mmmx -m3dnow -s -pthread -DZTS  -prefer-pic -c
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/session/session.c -o
ext/session/session.lo
/bin/sh /var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/libtool --silent
--preserve-dup-deps --mode=compile
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/meta_ccld  -Iext/session/
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/session/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/include
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/main
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/Zend  -D_REENTRANT
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/TSRM  -mcpu=k6-2 -Os -pipe
-fomit-frame-pointer -mmmx -m3dnow -s -pthread -DZTS  -prefer-pic -c
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/session/mod_files.c -o
ext/session/mod_files.lo
/bin/sh /var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/libtool --silent
--preserve-dup-deps --mode=compile
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/meta_ccld  -Iext/session/
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/session/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/include
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/main
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/Zend  -D_REENTRANT
-I/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/TSRM  -mcpu=k6-2 -Os -pipe
-fomit-frame-pointer -mmmx -m3dnow -s -pthread -DZTS  -prefer-pic -c
/var/tmp/portage/mod_php-5.0.3/work/php-5.0.3/ext/session/mod_mm.c -o
ext/session/mod_mm.lo
/var/tmp/portage/mod_php-5.0.3/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....


Expected Results:  
php_mod should compile cleanly.

touga htdocs # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.3,
glibc-2.3.4.20041102-r0, 2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 AMD Duron(tm) processor
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#1, Jul 18 2004, 03:14:02)]
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.3-r1
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.4.3-r4, 1.5.2-r7
virtual/os-headers:  2.6.8.1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=k6-2 -Os -pipe -fomit-frame-pointer -mmmx -m3dnow -s"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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="-mcpu=k6-2 -Os -pipe -fomit-frame-pointer -mmmx -m3dnow -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/
http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://195.56.77.10/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/packages/All"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow acl apache2 apm avi bitmap-fonts cups dio esd f77 font-server
foomatic foomaticdb fortran gif gtk2 junit krb4 libwww mad memlimit mmx motif
mpeg nptl nptlonly ntpl opengl pic ppds python quota readline ruby samba sdl
session shared sharedmem slang sqlite svga threads truetype-fonts type1-fonts
usb userlocales"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-04 13:45:17 UTC
Did you even read the error that it gave you?
"#error mm is not thread-safe"

If you want session, you must compile apache without threads.