Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400889 - dev-php/suhosin-0.9.33 with dev-lang/php[threads] - work/php5.3/post_handler.c:170:42: error: 'tsrm_ls' undeclared (first use in this function)
Summary: dev-php/suhosin-0.9.33 with dev-lang/php[threads] - work/php5.3/post_handler....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://github.com/stefanesser/suhosi...
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2012-0807
  Show dependency tree
 
Reported: 2012-01-26 10:47 UTC by Conrad Kostecki
Modified: 2012-02-12 19:14 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,23.04 KB, text/plain)
2012-01-26 11:40 UTC, Conrad Kostecki
Details
Patch from suhosin git (suhosin-0.9.33-threads.patch,3.82 KB, patch)
2012-01-29 18:28 UTC, Klemen Mihevc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2012-01-26 10:47:00 UTC
Hi!
I am unable to compile the new suhosin.

libtool: compile:  x86_64-pc-linux-gnu-gcc -I. -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/include -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/main -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -I/usr/lib64/php5.3/include/php -I/usr/lib64/php5.3/include/php/main -I/usr/lib64/php5.3/include/php/TSRM -I/usr/lib64/php5.3/include/php/Zend -I/usr/lib64/php5.3/include/php/ext -I/usr/lib64/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse -c /var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/compat_snprintf.c  -fPIC -DPIC -o .libs/compat_snprintf.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -I. -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/include -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/main -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -I/usr/lib64/php5.3/include/php -I/usr/lib64/php5.3/include/php/main -I/usr/lib64/php5.3/include/php/TSRM -I/usr/lib64/php5.3/include/php/Zend -I/usr/lib64/php5.3/include/php/ext -I/usr/lib64/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse -c /var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/aes.c  -fPIC -DPIC -o .libs/aes.o
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/execute.c: In function 'ih_preg_replace':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/execute.c:632:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/lib64/php5.3/include/php/Zend/zend_API.h:224) [-Wdeprecated-declarations]
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/execute.c: In function 'suhosin_gen_entropy':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/execute.c:1347:2: warning: passing argument 1 of 'suhosin_SHA256Final' from incompatible pointer type [enabled by default]
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/sha256.h:36:6: note: expected 'unsigned char *' but argument is of type 'php_uint32 *'
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/execute.c:1340:13: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/session.c: In function 'suhosin_decrypt_string':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/session.c:547:9: warning: passing argument 1 of 'suhosin_get_ipv4' from incompatible pointer type [enabled by default]
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/session.c:372:6: note: expected 'char *' but argument is of type 'char (*)[4]'
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/session.c: In function 'suhosin_hook_session':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/session.c:864:16: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c: In function 'suhosin_hook_post_handlers':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:151:2: warning: passing argument 4 of '_zend_hash_init' from incompatible pointer type [enabled by default]
/usr/lib64/php5.3/include/php/Zend/zend_hash.h:99:45: note: expected 'dtor_func_t' but argument is of type 'void (*)(struct sapi_post_entry *)'
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:154:115: warning: assignment from incompatible pointer type [enabled by default]
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c: In function 'suhosin_unhook_post_handlers':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:170:42: error: 'tsrm_ls' undeclared (first use in this function)
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:170:42: note: each undeclared identifier is reported only once for each function it appears in
make: *** [post_handler.lo] Fehler 1
emake failed
 * ERROR: dev-php/suhosin-0.9.33 failed (compile phase):
 *   Unable to make code
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3232:  Called php-ext-source-r2_src_compile
 *   environment, line 2979:  Called die
 * The specific snippet of code:
 *           emake || die "Unable to make code";
 * 
 * If you need support, post the output of 'emerge --info =dev-php/suhosin-0.9.33',
 * the complete build log and the output of 'emerge -pqv =dev-php/suhosin-0.9.33'.
 * The complete build log is located at '/var/tmp/portage/dev-php/suhosin-0.9.33/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php/suhosin-0.9.33/temp/environment'.
 * S: '/var/tmp/portage/dev-php/suhosin-0.9.33/work/suhosin-0.9.33'


Reproducible: Always




Portage 2.1.10.44 (default/linux/amd64/10.0/server, gcc-4.6.2, glibc-2.14.1-r2, 3.2.1-gentoo x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Thu, 26 Jan 2012 09:45:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo hephaestus
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="adns amd64 apache2 bash-completion bzip2 cracklib crypt ctype cxx ftp gd gpm iconv icu idn ipv6 javascript jpeg lzma maildir mmx multilib mysql mysqli ncurses nls nntp nptl offensive pam png readline session simplexml slang spell sqlite3 sse2 ssl svg symlink tcpd threads tokenizer truetype unicode vim-syntax xml zeroconf zlib" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="alias auth_basic authn_file authz_host authz_user autoindex cache cgi cgid deflate dir disk_cache file_cache filter include info log_config logio mem_cache mime mime_magic negotiation rewrite status unique_id vhost_alias" APACHE2_MPMS="worker" COLLECTD_PLUGINS="apache apcups contextswitch conntrack cpu cpufreq df disk dns entropy exec filecount hddtemp interface iptables irq load logfile memory netlink nfs ntpd ping processes protocols rrdtool serial swap syslog tcpconns thermal uptime users wireless" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de" PHP_TARGETS="php5-3" USERLAND="GNU" VIDEO_CARDS="vmware"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Agostino Sarubbo gentoo-dev 2012-01-26 11:07:19 UTC
Full build log please as attachment

Have you tried with -O2?
Comment 2 Conrad Kostecki gentoo-dev 2012-01-26 11:39:48 UTC
Yes, it fails also with -O2.
Attaching build.log
Comment 3 Conrad Kostecki gentoo-dev 2012-01-26 11:40:04 UTC
Created attachment 299949 [details]
build.log
Comment 4 Klemen Mihevc 2012-01-26 17:56:56 UTC
same error on x86...


mih ~ # emerge --info
Portage 2.1.10.44 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo-r2 i686)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.1
Timestamp of tree: Thu, 26 Jan 2012 16:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo LocalPortage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-a                                                                   ctive/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-feat                                                                   ures-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://gentoo.lagis.at/"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
LINGUAS="en sl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="-6 --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exc                                                                   lude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl acpi animgif apache2 apm apng authfile bash-completion berkdb bluetooth bzip2 caps ccache cgi cli client cracklib crypt cups curl c                                                                   xx dbus dedicated dhcp dovecot-sasl dri eap-tls encode exif expat extras fontconfig fortran ftp gd gdbm geoip gif gmp gpg gpm gzip hardened                                                                    iconv icu idn imap intl ipv6 ithreads jpeg lcms ldap lua lzma lzo maildir mhash mmx mng modules mpi mudflap mysql mysqli ncurses netboot nls                                                                    nptl nptlonly ntp ocaml ocamlopt odbc openmp pam pbxt pch pcntl pcre pdo perl phar php pic png pop3d posix pppd python quota raw readline r                                                                   pc ruby samba sasl server session slang smtp snmp soap sockets socks5 spell sse sse2 ssl suexec suhosin svg swig sysfs tcl tcpd threads tiff                                                                    truetype udev unicode urandom usb vhosts x86 xinetd xml xmlreader xmlrpc xmlwriter xsl xtradb zip zlib" ALSA_CARDS="ali5451 als4000 atiixp                                                                    atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audi                                                                   o via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lflo                                                                   at linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_an                                                                   on authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav                                                                    dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_m                                                                   agic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest authn_dbd ident proxy proxy_ajp proxy_b                                                                   alancer proxy_connect proxy_ftp proxy_http proxy_scgi" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbo                                                                   n braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog apache bind logfile mysql network ntpd tcpcon                                                                   ns uptime" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oce                                                                   anserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linu                                                                   x" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sl" PHP_TARGETS="php5-3" RUBY_TARGETS="ru                                                                   by18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmwar                                                                   e dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawn                                                                   at logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, POR                                                                   TAGE_RSYNC_EXTRA_OPTS
Comment 5 Attila Tóth 2012-01-27 00:58:36 UTC
Same here on Athlon-MP:
/bin/sh /var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/libtool --mode=compile i686-pc-linux-gnu-gcc  -I. -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/include -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/main -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -march=i686 -mtune=athlon-mp -pipe   -c /var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/rfc1867.c -o rfc1867.lo
libtool: compile:  i686-pc-linux-gnu-gcc -I. -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/include -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/main -I/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3 -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -march=i686 -mtune=athlon-mp -pipe -c /var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/rfc1867.c  -fPIC -DPIC -o .libs/rfc1867.o
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c: In function ‘suhosin_hook_post_handlers’:
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:151:2: warning: passing argument 4 of ‘_zend_hash_init’ from incompatible pointer type
/usr/lib/php5.3/include/php/Zend/zend_hash.h:99:14: note: expected ‘dtor_func_t’ but argument is of type ‘void (*)(struct sapi_post_entry *)’
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:154:43: warning: assignment from incompatible pointer type
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c: In function ‘suhosin_unhook_post_handlers’:
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:170:2: error: ‘tsrm_ls’ undeclared (first use in this function)
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:170:2: note: each undeclared identifier is reported only once for each function it appears in
make: *** [post_handler.lo] Error 1
make: *** Waiting for unfinished jobs....
emake failed

emerge --info =dev-php/suhosin-0.9.33
Portage 2.1.10.41 (hardened/linux/x86, gcc-4.5.3, glibc-2.14.1-r2, 3.1.8-hardened i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.8-hardened-i686-AMD_Athlon-TM-_MP_2600+-with-gentoo-2.0.3
Timestamp of tree: Thu, 26 Jan 2012 14:30:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3::<unknown repository>, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage hardened-dev anarchy x-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon-mp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -mtune=athlon-mp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.inf.elte.hu/ http://gentoo.inode.at/"
LANG="hu_HU.utf8"
LC_ALL="hu_HU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="hu en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/hardened-development /var/lib/layman/anarchy /home/atoth/public_html/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 3dnow 3dnowext 7zip GNU R X X509 Xaw3d a52 aac aalib acl acpi aiglx aio aisleriot alaw alsa amr aotuv apache2 apng applet archive ares asf atmo audio audiofile bash-completion bazaar bcmath bdf berkdb bind binfilter bitmap-fonts bittorrent blas bluetooth bonobo boost branding browserplugin bugzilla bzip2 cairo calendar canvas caps cdaudio cdda cddax cddb cdio cdparanoia cdr cdrom celt cgi chardet charmap checkpath cheese clamdtop cli clutter color colord consolekit contentcache context contrib coverage cracklib cramfs crashreporter crypt css ctype cue cups curl curlwrappers cvs cxx dba dbm dbus dcmtk ddate deskbar detex devhelp device-mapper dga dhcp dia dicom dirac disassembler discard-path divx divx4linux djbfft djvu dlloader dmi dnsrbl doc-pdf dot dri dselect dtmf dts dv dvd dvdnav dvdr dvdread dvi dvi2tty dvipdfm eap-sim ecap eds elf embed emerald enca enchant encode enscript epiphany epoll evo exif expat extensions extra extrafilters extras faac faad fallback fam fame fat fax ffmpeg fftw fileinfo finger firefox firefox-bookmarks flac flash flatfile flickr floppy fltk follow-xff fontconfig fontforge foomaticdb force-cgi-redirect fortran fpm fpx ftdi ftp g722 g729 gadu gajim galago gallium gbm gconf gd gdb gdbm gdl gdu gedit geoip gftp gif gimp gimpprint ginac git glade glchess gles glibc gme gmedia gmp gnet gnome gnome-keyring gnumeric gopher gpac gpg gphoto2 gpm graphics graphicsmagick graphviz groupwise gs gsf gsl gsm gstreamer gtalk gtk gtk2 gtk3 gtkhtml guile h224 h281 h323 hardened hash hdf5 hpcups hpijs html http hub icap-client iconv icu id3 id3tag idle idn iksemel ilbc imagemagick imap imlib inherit-graph inifile inkjar inode intl introspection ipc iplayer iplsrc iptc irc irda ivr jabber jadetex java java-internal java6 javascript jemalloc jingle jpeg jpeg2k jpgraph jrtplib json kate kdrive kpathsea ladspa lame lapack latex latex3 lcms ldb libass libburn libcaca libffi libgda libkms libnl libnotify libplot libsamplerate libssh2 libv4l2 lightning llvm lm_sensors lock logging logitech-mouse loop-aes lua lxde lyx lzma lzo lzw m17n-lib mad map matroska mbox mcal md5sum mdev meanwhile memlimit mercurial mhash midi mikmod milter ming mjpeg mktemp mmap mmx mmxext mng mode-owner modules motif mozbranding mozcalendar mp2 mp3 mp4 mpeg mpeg1 mpeg2 mplayer mudflap multinetwork musepack mysql mysqli nautilus ncurses nemesi netlink network networking new-login nifti nls nntp nokia nopop3d nptl nptlonly nsplugin nss ntfs nut nuv oav ocr odbc odk ofx ogg oggvorbis ogm oidentd oil onaccess opencore-amr openct opendbx openexr opengl openmp openssl openvg optimisememory otr overload packagekit pam pam_chroot pam_ssh pam_timestamp pango passwd passwdqc paste64 pasteafter pax_kernel pccts pcmcia pcntl pcre pcsc-lite pda pdf pdfannotextractor pdfimport pdo pear perl phar php pic pidgin playlist plotutils png pnm policykit posix postscript ppds pppd prefixaq prevent-removal projectm pstricks publishers pvr python python2 qhull qt3support quicktime quota quotas rar rc5 rcs readline realmedia reflection reiserfs remoteosd replytolist rle rss rtc rtf samba sasl sbc scanner scenarios schroedinger science scp screen scripting sdl sdl-sound sdlgfx secure-delete seed sendmail sendto sensord serprog session sftplogging shared-dricore shared-glapi shm short-touchpad-timeout showlistmodes showtabbar sid sidebar sieve silc sip sipim skins slang smbsharemodes smime smp sms smtp sndfile soap socialweb sockets sound soundex soundtouch sourceview sox sparse speex spell spoof sqlite3 srt srtp sse ssh ssl ssp sspall startup-notification stats stun subtitles subversion sudoku suhosin svg svnserve swat sysfs syslog system-sqlite systray sysvipc t1lib taglib tagwriting tcl tcltk tcpd templates terminal tetex tex4ht tga themes theora threads threadsafe thunar thunderbird tidy tiff tilepath tk tlen tokenizer toolbar tools topicisnuhost totem tracker transcode trayicon truetype truetype-fonts twolame type1-fonts type3 udev ulaw underscores unicode unlock-notify usb userlocales usermod utils v4l v4l2 vala valgrind vcd vcdinfo vcdx video vidix virus-scan vista visualization vlc vlm volpack vorbis vtk vxml wav wavplay webkit webm webp wifi wildcards wimax win32codecs winscp wma wmf wmp wps wxwidgets wxwindows x264 x86 xattr xcap xcb xchatdccserver xetex xforms xine xmedcon xml xml2 xmlreader xmlrpc xmlwriter xmp xnest xorg xpm xps xsl xulrunner xv xvfb xvid xvmc yahoo zip zlib zvbi" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest version filter ident charset_lite asis dbd authn_dbd proxy proxy_ajp proxy_balancer proxy_connect proxy_http imagemap cgid substitute" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse acecad evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu en" PHP_TARGETS="php5-3 php5-4" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2 gt68xx ma1509 mustek mustek_usb mustek_usb2 plustek snapscan umax" USERLAND="GNU" VIDEO_CARDS="radeon v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Ole Markus With (RETIRED) gentoo-dev 2012-01-27 20:37:35 UTC
Seems like suhosin struggles with USE="threads". The upstream bug can be found at $URL
Comment 7 Klemen Mihevc 2012-01-29 18:28:30 UTC
Created attachment 300303 [details, diff]
Patch from suhosin git

Patch that someone attached to suhosin git that works for me...
Comment 8 cyberbat 2012-01-30 06:08:45 UTC
(In reply to comment #7)
> Created attachment 300303 [details, diff] [details, diff]
> Patch from suhosin git
> 
> Patch that someone attached to suhosin git that works for me...

This patch fails for me on compilation state with:

/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c: In function                                               'suhosin_hook_post_handlers':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:151:2: warnin                                              g: passing argument 4 of '_zend_hash_init' from incompatible pointer type
/usr/lib64/php5.3/include/php/Zend/zend_hash.h:99:45: note: expected 'dtor_func_                                              t' but argument is of type 'void (*)(struct sapi_post_entry *)'
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:154:115: warn                                              ing: assignment from incompatible pointer type
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c: In function                                               'suhosin_unhook_post_handlers':
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:170:42: error                                              : 'tsrm_ls' undeclared (first use in this function)
/var/tmp/portage/dev-php/suhosin-0.9.33/work/php5.3/post_handler.c:170:42: note:                                               each undeclared identifier is reported only once for each function it appears i                                              n
make: *** [post_handler.lo] Error 1
make: *** Waiting for unfinished jobs....

Doing
ebuild /usr/portage/dev-php/suhosin/suhosin-0.9.33.ebuild fetch
ebuild /usr/portage/dev-php/suhosin/suhosin-0.9.33.ebuild unpack
patched successfully
ebuild /usr/portage/dev-php/suhosin/suhosin-0.9.33.ebuild compile [FAIL]


emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.1.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.1.10-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.3
Timestamp of tree: Sat, 28 Jan 2012 07:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-gsom
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 Q3AEULA PUEL LOKI-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64-sse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.bloodhost.ru/ ftp://xeon.gentoo.ru/mirrors/Gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gsom"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acl acpi akonadi alsa amd64 amr audiofile bash-completion bluetooth branding bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus dedicated djvu dri dts dv dvd dvdr emboss encode exif ffmpeg firefox flac fontconfig fortran gd gdu geoip gif gimp gmp gnutls gphoto2 gpm graphviz gsm gstreamer gtk handbook iconv icu id3tag idn ieee1394 imagemagick imap imlib inotify iphone ipod ipv6 jabber jbig jingle jpeg jpeg2k kde kipi kontact ladspa lame lcms libnotify libsamplerate libwww lm_sensors lzma lzo mad matroska mikmod mjpeg mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly ntfs nuv ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma pm-utils png policykit ppds pppd qt3support qt4 quicktime rar raw readline reiserfs rss rtmp sasl scanner sdl semantic-desktop session sharedext smp sndfile socks5 speex spell sql sqlite sse sse2 sse3 ssl startup-notification svg symlink sysfs syslog taglib theora threads thumbnail tiff truetype tta udev unicode usb userlocales video vim-syntax vorbis wavpack webkit wma wmf x264 xcb xcomposite xface xml xmp xmpp xorg xpm xscreensaver xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cgid cern_meta dbd deflate dir dumpio env expires ext_filter filter headers imagemap include info log_config log_forensic logio mime mime_magic negotiation proxy rewrite setenvif speling status substitute unique_id userdir version vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Klemen Mihevc 2012-01-30 12:38:37 UTC
how did you apply patch? because your error is same as on suhosin without it...

i made copy of ebuild in local portage and applyed patch there and it compiled fine... this was on x86.
Comment 10 cyberbat 2012-01-30 14:02:01 UTC
(In reply to comment #9)
> how did you apply patch? because your error is same as on suhosin without it...

I'm really sorry. I was trying to compile using ebuild compile and it was reloading sources.

After compiling using overlays:
compile and install: ok
phpinfo(): ok
phpMyAdmin: ok

amd64. emerge --info in #8
Comment 11 Conrad Kostecki gentoo-dev 2012-01-31 14:03:57 UTC
I can confirm.
With this patch, my suhosin comiles fine.
Comment 12 Attila Tóth 2012-02-02 00:32:03 UTC
Works for me. Please include it in the tree.
Comment 13 Jaak Ristioja 2012-02-09 19:02:45 UTC
Why is this taking so long?! Aren't older versions of Suhosin still vulnerable to CVE-2012-0807 (bug 399427). Is there something we can do to speed up the fixing process?
Comment 14 Ole Markus With (RETIRED) gentoo-dev 2012-02-09 22:18:06 UTC
(In reply to comment #13)
> Why is this taking so long?! Aren't older versions of Suhosin still vulnerable
> to CVE-2012-0807 (bug 399427). Is there something we can do to speed up the
> fixing process?

It is annoying for us as well, but as the maintainer does not even bother replying on the upstream bug …

I do not want to apply a patch that he has approved given how easy it would be for something like me to unintentionally break the security features of Suhosin.
Comment 15 Ole Markus With (RETIRED) gentoo-dev 2012-02-12 19:14:25 UTC
I guess 0.9.34 is around the corner, but I figured I'll patch this one anyway.
Since this is a build fix, I did not do a revbump.