Build fails with: gcc -Iext/sockets/ -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/sockets/ -DPHP_ATOM_INC -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/include -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/main -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3 -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/Zend -I/usr/include/libxml2 -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/xml/expat -I/var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/TSRM -march=pentium3 -O2 -fstack-protector -finline-functions -falign-loops=5 -falign-jumps=5 -falign-functions=64 -pipe -c /var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/sockets/sockets.c -o ext/sockets/sockets.o && echo > ext/sockets/sockets.lo In file included from /usr/include/net-snmp/utilities.h:39, from /usr/include/net-snmp/net-snmp-includes.h:64, from /var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c:80: /usr/include/net-snmp/library/data_list.h:29: syntax error before "netsnmp_data_list" /usr/include/net-snmp/library/data_list.h:41: syntax error before "void" /var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c: In function `netsnmp_session_gen_auth_key': /var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c:803: warning: initialization discards qualifiers from pointer target type /var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c: In function `netsnmp_session_gen_sec_key': /var/tmp/portage/php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c:832: warning: initialization discards qualifiers from pointer target type make: *** [ext/snmp/snmp.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-php/php-4.3.3-r1 failed. !!! Function php_src_compile, Line 403, Exitcode 2 !!! compile problem Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21_rc6-gss) ================================================================= System uname: 2.4.21_rc6-gss i686 Pentium III (Coppermine) ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -fstack-protector -finline-functions -falign-loops=5 -falign-jumps=5 -falign-functions=64 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -fstack-protector -finline-functions -falign-loops=5 -falign-jumps=5 -falign-functions=64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu/" MAKEOPTS="-j2" 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 oss apm arts avi crypt cups encode foomaticdb gif imlib jpeg libg++ mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline java gpm tcpd pam libwww ssl perl python -X -gtk -gnome -qt -kde mysql innodb snmp"
Problem persists on php-4.3.3-r2 A quick turnaround is to: USE="-snmp" emerge php -u however it doesn't solve the problem. :/
do you have ucd-snmp and net-snmp installed (or had both installed at some point previously) ? Could you please attach /var/tmp/portage/php-4.3.3-r2/work/php-4.3.3/config.log
I have exactely the same problem with an upgrade to dev-php/php-4.3.3-r2 (from 4.3.2-r2) I have only net-analyzer/net-snmp-5.0.9-r1, and I never had ucd-snmp Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7)================================================================= System uname: 2.4.20-gentoo-r7 i686 Intel(R) Xeon(TM) CPU 2.40GHz distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS=" http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ " MAKEOPTS="-j2" 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 oss avi crypt cups encode foomaticdb gif jpeg kde gnome libg++ mad mikmod mmx motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline tetex svga tcltk java ruby mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt opengl ldap bindist bonobo curl doc dvd emacs ethereal evo gb gd gtkhtml imap innodb libgda maildir mbox mcal mdb mozaccess mozcalendar mozilla mozinterfaceinfo odbc ofx php plotutils samba sasl snmp sox sqlite threads tiff type1 v4l vim-with-x wmf wxwindows Xaw3d xml xvid zeo -3dnow -apm -arts"
Created attachment 18622 [details] /var/tmp/portage/php-4.3.3-r2/work/php-4.3.3/config.log
I had the same problem. I had UCD-snmp and net-snmp installed I removed ucd-snmp and reemerged net-snmp ... It solved the problem with php-4.3.3-r2
I have the same problem. I had ucd-snmp and net-snmp installed, removed ucd-snmp and reemerged net-snmp but mod_php still fails to compile.
*** Bug 30237 has been marked as a duplicate of this bug. ***
After upgrading gcc to the latest stable version (3.2.3-r2) I was able to compile mod_php without problems.
Would the others here please try to upgrade/rebuild GCC and see if that helps?
*** Bug 30428 has been marked as a duplicate of this bug. ***
Re-merging GCC fixed this bug for me. Is this another problem with fixed includes, like bug 26255? If so, removing the outdated snmp header from /usr/lib/gcc-lib/$CHOST/$GCC_VER/include/ will probably fix it, but it's clear we need to check for outdated headers when merging new versions of packages..
It seems to work now.
once this bug (and bug 30701) is properly resolved, PHP will be going back to depending on virtual/snmp instead of net-snmp directly.
this is still waiting for bug 30701 to be resolved. there is no real solution until then (other than deleting old snmp headers in /usr/lib/gcc-lib/$CHOST/$GCC_VER/include/)
net-snmp 5.1.0 is out maybe it could help us
*** Bug 29168 has been marked as a duplicate of this bug. ***
net-snmp installs this include /usr/include/net-snmp/net-snmp-includes.h while mod_php/php uses /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/net-snmp/net-snmp-config.h which comes from gcc
Martin: mod_php using /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/net-snmp/net-snmp-config.h is why we are waiting for bug 30701 to be resolved. because other than deleting that file, GCC will _always_ pull that file in when the source file says '#include <net-snmp/net-snmp-config.h>'
*** Bug 34949 has been marked as a duplicate of this bug. ***
Bug 30701 seems to be resolved, can we move this one along?
bug 30701 is NOT resolved, the needed stuff from it is not in the tree afaik.
ok, the other bug is fixed now, i'm waiting a week or two for one of the gcc ebuilds to get to stable (hopefully), and then i'll move this along. in the meantime if you are using one of those ebuilds already, you should be able to make the virtual/snmp change in the php-2.eclass yourself and have it work.
*** Bug 37716 has been marked as a duplicate of this bug. ***
is this still an issue ?
fixed in cvs now. i know it's too late for 2004.0, i don't really want it in there.