Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131583 - eAccelerator-0.9.5_beta2 USE="session hardenedphp" conflict
Summary: eAccelerator-0.9.5_beta2 USE="session hardenedphp" conflict
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 133773 156364 (view as bug list)
Depends on:
Blocks: 155325
  Show dependency tree
 
Reported: 2006-04-28 09:10 UTC by Dean Baender
Modified: 2007-03-06 15:07 UTC (History)
3 users (show)

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


Attachments
eaccelerator-0.9.5_beta2.ebuild that checks for USE="hardenedphp session" (eaccelerator-0.9.5_beta2.ebuild,3.89 KB, text/plain)
2006-04-28 09:15 UTC, Dean Baender
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Baender 2006-04-28 09:10:29 UTC
If php is built with USE="hardenedphp" and eaccelerator is built with USE="session" compilation will fail with:

 gcc -I. -I/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2 -DPHP_ATOM_INC -I/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2/include -I/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2/main -I/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -DHAVE_CONFIG_H -O2 -march=athlon-xp -pipe -fforce-addr -ftracer -fomit-frame-pointer -mfpmath=sse -mno-tls-direct-seg-refs -c /var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2/session.c  -fPIC -DPIC -o .libs/session.o
/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2/session.c:388: error: `ps_validate_sid_eaccelerator' undeclared here (not in a function)
/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2/session.c:388: error: initializer element is not constant
/var/tmp/portage/eaccelerator-0.9.5_beta2/work/eaccelerator-0.9.5-beta2/session.c:388: error: (near initialization for `ps_mod_eaccelerator.s_validate_sid')
make: *** [session.lo] Error 1
make: *** Waiting for unfinished jobs....

I found this answer on the Hardened-PHP forum:
http://forum.hardened-php.net/viewtopic.php?pid=169
Comment 1 Dean Baender 2006-04-28 09:15:06 UTC
Created attachment 85667 [details]
eaccelerator-0.9.5_beta2.ebuild that checks for USE="hardenedphp session"

This ebuild checks if php is built with USE="hardenedphp", warns about the eaccelerator USE="session" conflict and disables eAccelerator sessions.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-19 06:30:37 UTC
*** Bug 133773 has been marked as a duplicate of this bug. ***
Comment 3 Lorand Kelemen 2006-09-06 10:23:13 UTC
Hi all!

As I see somehow this was left out of the newer ebuilds.... I checked:

eaccelerator-0.9.4.ebuild
eaccelerator-0.9.5_rc1.ebuild

Tried compiling and got the same error. Without it's own session module it compiled. Maybe that warning is useful or was there a reason to leave it out?

Some info:

/usr/egatrop/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/session.c:378: error: `ps_validate_sid_eaccelerator' undeclared here (not in a function)
/usr/egatrop/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/session.c:378: error: initializer element is not constant
/usr/egatrop/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/session.c:378: error: (near initialization for `ps_mod_eaccelerator.s_validate_sid')
make: *** [session.lo] Error 1
make: *** Waiting for unfinished jobs....

# php -v
PHP 4.4.3-pl1-gentoo with Hardening-Patch 0.4.13 (cli) (built: Sep  6 2006 16:53:31)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

# emerge --info
Portage 2.1-r2 (hardened/amd64, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-hardened-r1 x86_64)
=================================================================
System uname: 2.6.17-hardened-r1 x86_64 Intel(R) Xeon(TM) CPU 3.20GHz
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://gentoo.math.bme.hu http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inf.elte.hu http://mirror.uni-c.dk/pub/gentoo/"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/usr/egatrop/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 calendar caps chroot clamav cli crypt cscope curl dlloader expat extensions freetype gd geoip hardened hardenedphp hpn iconv idn iodbc justify maildir memlimit mhash mime ncurses nls nptl odbc openssh pam pam_chroot pam_console pam_timestamp pcre perl pic posix postgres python readline session sharedext sharedmem slang sockets sse sse2 ssl truetype udev unicode userlocales utf8 vhosts xml xorg xsl zip zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 10:31:46 UTC
(In reply to comment #3)
> As I see somehow this was left out of the newer ebuilds.... 

I guess that's why the bug is still open? ;)
Comment 5 Sebastian Bergmann (RETIRED) gentoo-dev 2006-09-29 06:46:30 UTC
Closing as this version is no longer in the tree.
Comment 6 Lorand Kelemen 2006-09-29 07:11:17 UTC
But these are:

eaccelerator-0.9.4.ebuild
eaccelerator-0.9.5_rc1.ebuild

And if nothing was corrected, then my statement holds true.

Reference:
http://bugs.gentoo.org/show_bug.cgi?id=131583#c3
Comment 7 Dean Baender 2006-10-03 15:23:28 UTC
Looks like the hardened-php project ( http://www.hardened-php.net/ )has deprecated the old hardenedphp patch in favor of the Shuhosin security extension.

Check the PHP-Overlay ( http://overlays.gentoo.org/proj/php/ ) for the new extension.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-11-26 16:11:08 UTC
*** Bug 156364 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-11-26 16:13:01 UTC
No idea why this got closed...
Comment 10 Luca Longinotti (RETIRED) gentoo-dev 2007-03-06 15:07:03 UTC
Closing this, as we don't support hardenedphp anymore on any of our actual PHP ebuilds, we only support the sucessor Suhosin, which doesn't change the session module, so it can't fail. Also session support is now configurable in eaccelerator (USE=session).
Best regards, CHTEKK.