Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105489 - libjpeg.so from Java causes dev-lang/php-4.4.x emerge to fail with USE=gd
Summary: libjpeg.so from Java causes dev-lang/php-4.4.x emerge to fail with USE=gd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-10 07:27 UTC by Chris Ripp
Modified: 2006-06-20 13:32 UTC (History)
2 users (show)

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


Attachments
log of broken emerge (config.log,543.47 KB, text/plain)
2005-11-12 03:59 UTC, Jakub Moc (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ripp 2005-09-10 07:27:08 UTC
trying to upgrade into the new php layout, php-5 compiled and installed fine,
php4 however isn't cooperating:

/usr/lib/libc-client.a(osdep.o)(.text+0x97b1): In function `ssl_onceonlyinit':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x3f): In function `gdImageJpegCtx':
: undefined reference to `jpeg_std_error'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0xb3): In function `gdImageJpegCtx':
: undefined reference to `jpeg_CreateCompress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0xec): In function `gdImageJpegCtx':
: undefined reference to `jpeg_set_defaults'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x112): In function `gdImageJpegCtx':
: undefined reference to `jpeg_set_quality'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x1ad): In function `gdImageJpegCtx':
: undefined reference to `jpeg_start_compress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x227): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_marker'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x2c0): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x2ff): In function `gdImageJpegCtx':
: undefined reference to `jpeg_finish_compress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x307): In function `gdImageJpegCtx':
: undefined reference to `jpeg_destroy_compress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x3a5): In function `gdImageJpegCtx':
: undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x413): In function `gdImageJpegCtx':
: undefined reference to `jpeg_simple_progression'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x468): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_std_error'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x4b6): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_CreateDecompress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x4e1): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_save_markers'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x4f1): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_header'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x582): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_start_decompress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x659): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_finish_decompress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x687): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x6c8): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_destroy_decompress'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x70a): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_scanlines'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0x7b0): In function `gdImageCreateFromJpegCtx':
: undefined reference to `jpeg_read_scanlines'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0xa8e): In function `jpeg_gdIOCtx_src':
: undefined reference to `jpeg_resync_to_restart'
ext/gd/libgd/.libs/gd_jpeg.o(.text+0xdc6): In function `fatal_jpeg_error':
: undefined reference to `jpeg_destroy'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

!!! ERROR: dev-lang/php-4.4.0 failed.
!!! Function php4_4-sapi_src_compile, Line 510, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

Tried re-emerging jpeg, gd, and c-client (see the very first line...not sure if
its related or not) without success.

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




Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12.3 i686)
=================================================================
System uname: 2.6.12.3 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/
http://gentoo.mirrors.pair.com/ http://ftp-mirror.internap.com/pub/gentoo/
http://mirrors.tds.net/gentoo http://gentoo.netnitco.net"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X509 acpi apache2 authdaemond bcmath berkdb bind-mysql bzip2 bzlib
calendar cgi chroot cjk cli client courier crypt ctype curl curlwrappers dba
dbase dedicated dio dlz doc eds emacs emacs-w3 exif expat extensions fam fastcgi
fftw firebird flash flatfile force-cgi-redirect fortran ftp gd gdbm gif
gstreamer guile hardenedphp icq imagemagick imap imlib inline innodb ipv6 jabber
java jbig jpeg junit ldap libg++ libwww lm_sensors logrotate lzw lzw-tiff
maildir mbox mcal md5sum memlimit mhash mime ming mmap mmx mng mono mpi msn
mysql ncurses nls no-htdocs no-old-linux nptl odbc ogg oscar pam passfile pcntl
pcre pdflib pear perl php png posix postfix procmail python quotas readline
recode rrdtool rss ruby sasl serial session sftp sftplogging silc simplexml
slang snmp soap sockets spamassassin spell spl sqlite sse ssl svg sysfs sysvipc
tcpd threads tidy tiff tokenizer truetype truetype-fonts unicode vorbis wddx
xchatnogtk xchattext xml xml2 xmlrpc xpm xsl xslt yahoo zip zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Luca Longinotti (RETIRED) gentoo-dev 2005-09-10 07:31:06 UTC
Please post the exact USE flags with wich you're compiling dev-lang/php-4.4.0
(emerge -pv =dev-lang/php-4.4.0).
Also please do the same for the following programs:
media-libs/jpeg
media-libs/gd
Thanks, CHTEKK.
Comment 2 Chris Ripp 2005-09-10 07:55:28 UTC
# emerge -pv  media-libs/jpeg media-libs/gd =dev-lang/php-4.4.0

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/jpeg-6b-r6  0 kB
[ebuild   R   ] media-libs/gd-2.0.32  -X -fontconfig +jpeg +png +truetype 0 kB
[ebuild  NS   ] dev-lang/php-4.4.0  -adabas -apache -apache2 +bcmath +berkdb
-birdstep +bzip2 +calendar -cdb +cgi +cli +crypt +ctype +curl +curlwrappers -db2
+dba +dbase -dbm -dbmaker -dbx -debug -discard-path +doc -empress -empress-bcs
-esoob +exif -fastbuild -fdftk -filepro +firebird +flatfile +force-cgi-redirect
-frontbase +ftp +gd -gd-external +gdbm -gmp +hardenedphp -hyperwave-api -iconv
+imap -informix -inifile -interbase -iodbc +ipv6 +java -java-external +jpeg
-kerberos +ldap -libedit +mcal -mcve +memlimit +mhash +ming -msql -mssql +mysql
+ncurses +nls -oci8 +odbc -oracle7 -overload -ovrimos +pcntl +pcre +pear -pfpro
+png +posix -postgres +readline -recode -sapdb +sasl +session -sharedext
-sharedmem +snmp +sockets -solid +spell +sqlite +ssl -sybase -sybase-ct +sysvipc
+threads +tiff +tokenizer +truetype +wddx +xml +xml2 +xmlrpc -xpm +xsl -yaz +zip
+zlib 0 kB
[ebuild  N    ] dev-php4/pecl-zip-1.0  0 kB
[ebuild  N    ] dev-php4/pecl-sqlite-1.0.3  362 kB
Comment 3 Chris Ripp 2005-09-11 07:31:27 UTC
I should add that dev-php/php-4.4.0 (NOT dev-lang/php) builds just fine. *shrug*
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2005-09-11 08:03:53 UTC
I narrowed the problem down, it's Hardened-PHP.
If you disable it, your PHP will build correctly.
Today I have no time to look further into it, I'll do that during the week.
Best regards, CHTEKK.
Comment 5 Luca Longinotti (RETIRED) gentoo-dev 2005-09-16 11:58:56 UTC
Ok, I changed things around a bit and it seems this now works, with and without
Hardened-PHP enabled, without a problem. :)
Please test the last version of the PHP Overlay [1], the new updated Ebuilds
aren't yet in Portage and will not be for some day, they're still undergoing
testing and I want/need to add some more stuff to them. :)
Best regards, CHTEKK.

[1] http://svn.gnqs.org/projects/gentoo-php-overlay/
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-09-17 09:24:21 UTC
Please, test and report back. Thanks.
Comment 7 Chris Ripp 2005-09-18 08:16:56 UTC
No suck luck, maybe things haven't sync'ed thru yet, (I synced twice, once prior
and once after this happened....)


 * Determining SAPI(s) to build
 *   Enabled  SAPI: cli
 *   Enabled  SAPI: cgi
 *   Disabled SAPI: apache
 *   Disabled SAPI: apache2
>>> Unpacking source...
>>> Unpacking php-4.4.0.tar.bz2 to /var/tmp/portage/php-4.4.0-r1/work
>>> Unpacking hardening-patch-4.4.0-0.4.3.patch.gz to
/var/tmp/portage/php-4.4.0-r1/work
>>> Unpacking php-pcrelib-new-secpatch.tar.bz2 to /var/tmp/portage/php-4.4.0-r1/work
 * Applying php4.4.0-pcre-security.patch ...

 * Failed Patch: php4.4.0-pcre-security.patch !
 *  ( /usr/portage/dev-lang/php/files/4.4.0/php4.4.0-pcre-security.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/php-4.4.0-r1/temp/php4.4.0-pcre-security.patch-31122.out


!!! ERROR: dev-lang/php-4.4.0-r1 failed.
!!! Function epatch, Line 361, Exitcode 0
!!! Failed Patch: php4.4.0-pcre-security.patch!
!!! If you need support, post the topmost build error, NOT this status message.


Output of /var/tmp/portage/php-4.4.0-r1/temp/php4.4.0-pcre-security.patch-31122.out


# cat /var/tmp/portage/php-4.4.0-r1/temp/php4.4.0-pcre-security.patch-31122.out
***** php4.4.0-pcre-security.patch *****

========================================

PATCH COMMAND:  patch -p0 -g0 --no-backup-if-mismatch <
/usr/portage/dev-lang/php/files/4.4.0/php4.4.0-pcre-security.patch

========================================
patching file configure.in
patching file ext/pcre/config.m4
Hunk #1 FAILED at 1.
Hunk #3 succeeded at 50 with fuzz 1.
1 out of 3 hunks FAILED -- saving rejects to file ext/pcre/config.m4.rej
========================================

PATCH COMMAND:  patch -p1 -g0 --no-backup-if-mismatch <
/usr/portage/dev-lang/php/files/4.4.0/php4.4.0-pcre-security.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure.in       2005-09-17 17:44:30.000000000 +0200
|+++ configure.in       2005-09-17 17:45:01.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ext/pcre/config.m4 2005/05/31 12:22:27     1.29.2.7
|+++ ext/pcre/config.m4 2005/08/09 17:41:56     1.29.2.7.2.1
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
========================================

PATCH COMMAND:  patch -p2 -g0 --no-backup-if-mismatch <
/usr/portage/dev-lang/php/files/4.4.0/php4.4.0-pcre-security.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure.in       2005-09-17 17:44:30.000000000 +0200
|+++ configure.in       2005-09-17 17:45:01.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ext/pcre/config.m4 2005/05/31 12:22:27     1.29.2.7
|+++ ext/pcre/config.m4 2005/08/09 17:41:56     1.29.2.7.2.1
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
========================================

PATCH COMMAND:  patch -p3 -g0 --no-backup-if-mismatch <
/usr/portage/dev-lang/php/files/4.4.0/php4.4.0-pcre-security.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure.in       2005-09-17 17:44:30.000000000 +0200
|+++ configure.in       2005-09-17 17:45:01.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 14 of patch
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ext/pcre/config.m4 2005/05/31 12:22:27     1.29.2.7
|+++ ext/pcre/config.m4 2005/08/09 17:41:56     1.29.2.7.2.1
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
========================================

PATCH COMMAND:  patch -p4 -g0 --no-backup-if-mismatch <
/usr/portage/dev-lang/php/files/4.4.0/php4.4.0-pcre-security.patch

========================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure.in       2005-09-17 17:44:30.000000000 +0200
|+++ configure.in       2005-09-17 17:45:01.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 14 of patch
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ext/pcre/config.m4 2005/05/31 12:22:27     1.29.2.7
|+++ ext/pcre/config.m4 2005/08/09 17:41:56     1.29.2.7.2.1
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
Comment 8 Luca Longinotti (RETIRED) gentoo-dev 2005-09-18 09:50:44 UTC
Ups sorry, the import of the new patches into CVS didn't go smoothly and it
changed some header-lines of the patches, thus rendering them unusable.
We just fixed this in CVS, thanks for reporting this. Please emerge sync in an
hour or so and it should be fixed.
Best regards, CHTEKK.
Comment 9 Chris Ripp 2005-09-18 13:24:01 UTC
That seems to have done the trick, thanks!
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-09-29 12:29:53 UTC
Still fails here with USE=gd; compiles fine with gd-external...

ext/gd/libgd/.libs/gd_jpeg.o: In function `fatal_jpeg_error':
gd_jpeg.c:(.text+0x47): undefined reference to `jpeg_destroy'
ext/gd/libgd/.libs/gd_jpeg.o: In function `gdImageJpegCtx':
gd_jpeg.c:(.text+0x1df): undefined reference to `jpeg_std_error'
gd_jpeg.c:(.text+0x273): undefined reference to `jpeg_CreateCompress'
gd_jpeg.c:(.text+0x2a9): undefined reference to `jpeg_set_defaults'
gd_jpeg.c:(.text+0x2cf): undefined reference to `jpeg_set_quality'
gd_jpeg.c:(.text+0x2e5): undefined reference to `jpeg_simple_progression'
gd_jpeg.c:(.text+0x368): undefined reference to `jpeg_start_compress'
gd_jpeg.c:(.text+0x416): undefined reference to `jpeg_write_marker'
gd_jpeg.c:(.text+0x4b9): undefined reference to `jpeg_write_scanlines'
gd_jpeg.c:(.text+0x4f5): undefined reference to `jpeg_finish_compress'
gd_jpeg.c:(.text+0x4fd): undefined reference to `jpeg_destroy_compress'
gd_jpeg.c:(.text+0x5f9): undefined reference to `jpeg_write_scanlines'
ext/gd/libgd/.libs/gd_jpeg.o: In function `jpeg_gdIOCtx_src':
gd_jpeg.c:(.text+0x819): undefined reference to `jpeg_resync_to_restart'
ext/gd/libgd/.libs/gd_jpeg.o: In function `gdImageCreateFromJpegCtx':
gd_jpeg.c:(.text+0x901): undefined reference to `jpeg_std_error'
gd_jpeg.c:(.text+0x9c4): undefined reference to `jpeg_CreateDecompress'
gd_jpeg.c:(.text+0x9ec): undefined reference to `jpeg_save_markers'
gd_jpeg.c:(.text+0x9fc): undefined reference to `jpeg_read_header'
gd_jpeg.c:(.text+0xac0): undefined reference to `jpeg_destroy_decompress'
gd_jpeg.c:(.text+0xae9): undefined reference to `jpeg_start_decompress'
gd_jpeg.c:(.text+0xc0b): undefined reference to `jpeg_read_scanlines'
gd_jpeg.c:(.text+0xd24): undefined reference to `jpeg_finish_decompress'
gd_jpeg.c:(.text+0xd4f): undefined reference to `jpeg_destroy_decompress'
gd_jpeg.c:(.text+0xdbc): undefined reference to `jpeg_read_scanlines'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-11-10 03:31:47 UTC
Still fails with dev-lang/php-4.4.1-r2, reopened.
Comment 12 Luca Longinotti (RETIRED) gentoo-dev 2005-11-11 16:06:35 UTC
Really strange, the problem indicates that if fails to include or link properly
the JPEG header files, but I've tried with all the media-libs/jpeg versions and
it works for me, with 6b-r6 it sure does (just tried it).
More info is needed for this: config.log, any particular environment setting,
emerge info, versions used of media-libs/jpeg, of media-libs/gd (when you use it
and it works) etc., thanks!
Best regards, CHTEKK.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 03:45:53 UTC
Portage 2.0.51.22-r3 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.5-r3,
2.6.12-gentoo-r10-amd64 i686)
=================================================================
System uname: 2.6.12-gentoo-r10-amd64 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control
/var/www/localhost/htdocs"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo
ftp://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://82.208.41.113/gentoo-portage"
USE="3dnow acpi apache2 apm bash-completion berkdb bzip2 crypt curl dlloader
expat fbcon firebird fortran freetds gd gdbm geoip gif gmp hardened idn imap
imlib innodb java jpeg junit lcms libg++ libwww maildir mcal mhash ming mmx mng
mssql mysql ncurses nls nptl nptlonly odbc offensive pam pcre pdflib perl php
pic png pnp postgres python readline recode sasl slang snmp socks5 spell sqlite
sse ssl tcpd tiff truetype udev unicode userlocales wmf x86 xml xml2 zlib
linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL

media-libs/jpeg-6b-r5

# emerge -pv media-libs/gd
[ebuild   R   ] media-libs/gd-2.0.32  -X -fontconfig +jpeg +png +truetype 0 kB

Working use flags:

# emerge -pv dev-lang/php

Calculating dependencies ...done!
[ebuild   R   ] dev-lang/php-4.4.1-r2  -adabas -apache +apache2 +bcmath +berkdb
-birdstep +bzip2 +calendar -cdb +cgi -cjk +cli +crypt +ctype +curl +curlwrappers
-db2 +dba +dbase -dbmaker +dbx -debug -discard-path -doc -empress -empress-bcs
-esoob -exif +fastbuild -fdftk -filepro +firebird +flatfile +force-cgi-redirect
-frontbase +ftp -gd +gd-external +gdbm +gmp -hardenedphp -hyperwave-api +iconv
+imap -informix +inifile -interbase -iodbc -ipv6 -java-external +java-internal
-kerberos -ldap -libedit +mcal -mcve +memlimit +mhash +ming -mnogosearch -msql
+mssql +mysql +ncurses +nls -oci8 (-oci8-instant-client) +odbc -oracle7
+overload -ovrimos +pcntl +pcre +pear -pfpro +pic +posix +postgres +readline
-recode -sapdb -sasl +session -sharedext -sharedmem +snmp +sockets -solid -spell
+sqlite +ssl -sybase -sybase-ct +sysvipc -threads -tiff +tokenizer +truetype
+wddx +xml +xml2 +xmlrpc -xpm +xsl -yaz +zip +zlib 0 kB

Broken use flags:

# emerge -pv dev-lang/php

[ebuild   R   ] dev-lang/php-4.4.1-r2  -adabas -apache +apache2 +bcmath +berkdb
-birdstep +bzip2 +calendar -cdb +cgi -cjk +cli +crypt +ctype +curl +curlwrappers
-db2 +dba +dbase -dbmaker +dbx -debug -discard-path -doc -empress -empress-bcs
-esoob -exif +fastbuild -fdftk -filepro +firebird +flatfile +force-cgi-redirect
-frontbase +ftp +gd -gd-external +gdbm +gmp -hardenedphp -hyperwave-api +iconv
+imap -informix +inifile -interbase -iodbc -ipv6 -java-external +java-internal
-kerberos -ldap -libedit +mcal -mcve +memlimit +mhash +ming -mnogosearch -msql
+mssql +mysql +ncurses +nls -oci8 (-oci8-instant-client) +odbc -oracle7
+overload -ovrimos +pcntl +pcre +pear -pfpro +pic +posix +postgres +readline
-recode -sapdb -sasl +session -sharedext -sharedmem +snmp +sockets -solid -spell
+sqlite +ssl -sybase -sybase-ct +sysvipc -threads -tiff +tokenizer +truetype
+wddx +xml +xml2 +xmlrpc -xpm +xsl -yaz +zip +zlib 0 kB

I'll break my flags again and attach the full log... :=)
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 03:59:35 UTC
Created attachment 72731 [details]
log of broken emerge

Here we go...
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 04:00:51 UTC
Reopen again... sigh :/
Comment 16 Sebastian Bergmann (RETIRED) gentoo-dev 2006-01-20 01:24:25 UTC
dev-php/php, dev-php/mod_php, and dev-php/php-cgi have been replaced by dev-lang/php.

Please upgrade (following the guide at http://svn.gnqs.org/projects/gentoo-php-overlay/file/docs/php-upgrading.html?format=raw) to the new-style PHP package and open a new bug if the problem persists.

Thank you.
Comment 17 Sebastian Bergmann (RETIRED) gentoo-dev 2006-01-20 01:39:27 UTC
Oops.
Comment 18 Sebastian Bergmann (RETIRED) gentoo-dev 2006-01-22 22:30:09 UTC
I cannot reproduce this with dev-lang/php-4.4.1-r3:

[ebuild   R   ] dev-lang/php-4.4.1-r3  -adabas -apache -apache2 -bcmath -berkdb -birdstep +bzip2 -calendar -cdb +cgi -cjk +cli -crypt -ctype -curl -db2 -dba -dbase -dbmaker -dbx -debug -discard-path -doc -empress -empress-bcs -esoob -exif +expat -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external -gdbm -gmp -hardenedphp -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc +ipv6 -java-external -java-internal -kerberos -ldap -libedit -mcal -mcve -memlimit -mhash -ming -mnogosearch -msql -mssql -mysql -ncurses -nls -oci8 -oci8-instant-client -odbc -oracle7 -overload -ovrimos -pcntl +pcre +pear -pfpro -pic -posix -postgres +readline -recode -sapdb +session -sharedext -sharedmem -snmp -sockets -solid -spell -sqlite -ssl -sybase -sybase-ct -sysvipc -threads -tiff -tokenizer -truetype -wddx +xml -xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB


Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
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=pentium-m -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages sandbox sfperms sign strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode expat foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-01-23 00:32:31 UTC
(In reply to comment #18)
> I cannot reproduce this with dev-lang/php-4.4.1-r3:

Yeah, I cannot reproduce it anywhere else except the hardened box, so I'd personally close the bug long time ago as a hardened quirk, but the original bug includes no hardened stuff whatsoever...

Anyway, closing for now, will try again w/ 4.4.2 when it hits portage.
Comment 20 Honza 2006-02-03 15:10:11 UTC
Just note that I have the same problem with dev-lang/php-4.4.1-r3, found bug 27525 and trying to solve it by renaming libjpeg.so from java. I'll report if it worked after it finish ...

 emerge info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.2, glibc-2.3.4.20040808-r1, 2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.6.13
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X Xaw3d aalib afs alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps cdr crypt cups curl dga divx4linux doc dts dvd emboss encode erandom esd ethereal exif expat ffmpeg flac foomaticdb fortran fpx gcj gd gdbm ggi gif glut gmp gpm graphviz gstreamer gtk gtk2 imagemagick imlib innodb ipv6 java jbig jpeg lcms lesstif libcaca libg++ libwww live lua lzo mad mailwrapper matroska mbox mcal memlimit mhash mikmod ming mmx mng motif mozilla mp3 mpeg multislot mysql ncurses network nls ogg oggvorbis opengl oss pam pcre pdflib perl pic png python qt quicktime readline real recode ruby samba sdl slang snmp spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vhosts videos vorbis wmf xgetdefault xml xml2 xmms xosd xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

emerge -p -v =dev-lang/php-4*

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-lang/php-4.4.1-r3  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb +cgi -cjk +cli +crypt -ctype +curl -db2 +dba -dbase -dbmaker -dbx -debug -discard-path +doc -empress -empress-bcs -esoob +exif +expat -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase +ftp +gd -gd-external +gdbm +gmp -hardenedphp -hyperwave-api +iconv +imap -informix -inifile -interbase -iodbc +ipv6 -java-external +java-internal -kerberos -ldap -libedit +mcal -mcve +memlimit +mhash +ming -mnogosearch -msql -mssql +mysql +ncurses +nls -oci8 -oci8-instant-client -odbc -oracle7 -overload -ovrimos +pcntl +pcre -pfpro +pic +posix -postgres +readline -recode -sapdb -session -sharedext +sharedmem +snmp +sockets -solid +spell +sqlite +ssl -sybase -sybase-ct +sysvipc -threads +tiff -tokenizer +truetype -wddx +xml +xmlrpc -xpm +xsl -yaz +zip +zlib 0 kB 
[ebuild  N    ] dev-php4/pecl-zip-1.0  4 kB 
[ebuild  N    ] dev-php4/pecl-sqlite-1.0.3  362 kB 
Comment 21 Honza 2006-02-03 15:24:26 UTC
Yes, it worked - so there are some place where bad libjpeg.so is used left ...
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-02-03 15:54:06 UTC
Bingo! /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libjpeg.so breaks it! Only now I also noticed that it's the only box which actually has Java installed. :S

Comment 23 Jakub Moc (RETIRED) gentoo-dev 2006-03-04 06:30:11 UTC
ping @java - what's up with this broken libjpeg.so? :/
Comment 24 Luca Longinotti (RETIRED) gentoo-dev 2006-05-24 06:43:32 UTC
After some more digging we found out it seems to be a problem in PHP's makefiles related to how it links the libraries in, so we'll see to fix it on our part.
Best regards, CHTEKK.
Comment 25 Luca Longinotti (RETIRED) gentoo-dev 2006-06-20 13:32:04 UTC
Fixed in dev-lang/php-4.4.2-r5.
Best regards, CHTEKK.