Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144146 - dev-php5/eaccelerator-0.9.5_rc1 doesn't compile under php-5.1.4-r6
Summary: dev-php5/eaccelerator-0.9.5_rc1 doesn't compile under php-5.1.4-r6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155325
  Show dependency tree
 
Reported: 2006-08-16 12:37 UTC by Anton
Modified: 2007-03-18 03:49 UTC (History)
1 user (show)

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 Anton 2006-08-16 12:37:56 UTC
/bin/sh /var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/libtool --mode=compile gcc  -I. -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1 -DPHP_ATOM_INC -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/include -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/main -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1 -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  -march=i686 -O2 -pipe   -c /var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c -o mm.lo
 gcc -I. -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1 -DPHP_ATOM_INC -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/include -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/main -I/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1 -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 -march=i686 -O2 -pipe -c /var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c  -fPIC -DPIC -o .libs/mm.o
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:638:4: #error "Semaohore type is not selected. Define one of the following: MM_SEM_SPINLOCK, MM_SEM_PTHREAD, MM_SEM_POSIX, MM_SEM_IPC, MM_SEM_FCNTL, MM_SEM_FLOCK, MM_SEM_BEOS, MM_SEM_OS2, MM_SEM_WIN32"
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:985:4: #error "Shared memeory type is not selected. Define one of the following: MM_SHM_IPC, MM_SHM_MMAP_ANON, MM_SHM_MMAP_ZERO, MM_SHM_MMAP_FILE, MM_SHM_MALLOC, MM_SHM_BEOS, MM_SHM_OS2, MM_SHM_WIN32"
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c: In function `mm_init':
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:1035: error: `mm_mutex' undeclared (first use in this function)
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:1035: error: (Each undeclared identifier is reported only once
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:1035: error: for each function it appears in.)
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c: In function `_mm_create':
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:1219: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c: In function `mm_sem_type':
/var/tmp/portage/eaccelerator-0.9.5_rc1/work/eaccelerator-0.9.5-rc1/mm.c:1276: error: `MM_SEM_TYPE' undeclared (first use in this function)
make: *** [mm.lo] Error 1

!!! ERROR: dev-php5/eaccelerator-0.9.5_rc1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  eaccelerator-0.9.5_rc1.ebuild, line 56:   Called php-ext-source-r1_src_compile
  php-ext-source-r1.eclass, line 69:   Called die

!!! Unable to make code
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-16 13:00:32 UTC
Please, don't restrict bugs without any reason. Just leave those checkboxes alone. Also, always post emerge --info when reporting bugs.
Comment 2 Anton 2006-08-17 10:20:31 UTC
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9-PHANTOm i686)
=================================================================
System uname: 2.6.16-gentoo-r9-PHANTOm i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype curl dba dlloader dri eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 gtkhtml guile idn imlib ipv6 isdnlog jpeg kernel_linux lcms libg++ libwww mad memlimit mikmod mng motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png posix pppd python qt qt3 qt4 quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl sql sqlite sqlite3 ssl staticsocket tcltk tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vim vorbis x86 xml xml2 xmms xorg xsl xv zlib input_devices_keyboard input_devices_mouse input_devices_evdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Anton 2006-08-18 01:04:42 UTC
zendoptimizer also fails to load under this php
Comment 4 Anton 2006-08-18 10:16:15 UTC
must enable sharedext use flag to make work (changed at -r4 and affects -r6)
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2006-11-23 01:16:30 UTC
I have exactly the same error as in the opening post but with eaccelerator-0.9.5.

dev-lang/php-5.1.6-r6  USE="apache2 cli concurrentmodphp gd mysql nls pcntl pcre pdo reflection sharedext sockets ssl unicode xml xmlreader xmlwriter zlib (-adabas) -apache -bcmath -berkdb (-birdstep) -bzip2 -calendar -cdb -cgi -cjk -crypt -ctype -curl -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc (-empress) (-empress-bcs) (-esoob) -exif -fastbuild (-fdftk) (-filepro) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp -gd-external -gdbm -gmp -hardenedphp -hash -hyperwave-api -iconv -imap (-informix) -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql -mysqli -ncurses -oci8 (-oci8-instant-client) -odbc -pdo-external -pic -posix -postgres -qdbm -readline -recode -sapdb -sasl -session -sharedmem -simplexml -snmp -soap (-solid) -spell -spl -sqlite (-sybase) (-sybase-ct) -sysvipc -threads -tidy -tokenizer -truetype -vm-goto -vm-switch -wddx -xmlrpc -xpm -xsl -yaz -zip"
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 05:09:04 UTC
(In reply to comment #5)
> I have exactly the same error as in the opening post but with
> eaccelerator-0.9.5.

Using concurrentmodphp with sharedext is a very bad idea, it won't work... I also doubt that eaccelerator will work with USE=concurrentmodphp
Comment 7 Luca Longinotti (RETIRED) gentoo-dev 2007-03-18 03:49:11 UTC
concurrentmodphp was fixed up and works with eaccelerator now. It won't work, and is not supported, with sharedext, so all issues here presented are solved: closing.
Best regards, CHTEKK.