Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28263 - dev-php/php-4.3.3-r1 with USE=snmp and net-analyzer/net-snmp-5.0.8 doesn't compile
Summary: dev-php/php-4.3.3-r1 with USE=snmp and net-analyzer/net-snmp-5.0.8 doesn't co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 29168 30237 30428 34949 37716 (view as bug list)
Depends on: 30701
Blocks:
  Show dependency tree
 
Reported: 2003-09-09 06:02 UTC by Andy Dustman
Modified: 2004-02-11 01:11 UTC (History)
13 users (show)

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


Attachments
/var/tmp/portage/php-4.3.3-r2/work/php-4.3.3/config.log (config.log,131.00 KB, text/plain)
2003-10-02 13:32 UTC, Jacques Supcik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Dustman 2003-09-09 06:02:40 UTC
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"
Comment 1 Ricardo Cordeiro 2003-10-01 16:52:04 UTC
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. :/
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-01 17:38:49 UTC
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
Comment 3 Jacques Supcik 2003-10-02 13:26:24 UTC
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"
Comment 4 Jacques Supcik 2003-10-02 13:32:04 UTC
Created attachment 18622 [details]
/var/tmp/portage/php-4.3.3-r2/work/php-4.3.3/config.log
Comment 5 Arnaud Burlet 2003-10-02 14:54:20 UTC
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
Comment 6 Throstur Svanbergsson 2003-10-02 17:00:19 UTC
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.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-03 09:50:30 UTC
*** Bug 30237 has been marked as a duplicate of this bug. ***
Comment 8 Duke 2003-10-04 16:04:27 UTC
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.
Comment 9 Throstur Svanbergsson 2003-10-05 15:29:23 UTC
After upgrading gcc to the latest stable version (3.2.3-r2) I was able to
compile mod_php without problems.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-05 17:19:00 UTC
Would the others here please try to upgrade/rebuild GCC and see if that helps?
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-06 10:09:52 UTC
*** Bug 30428 has been marked as a duplicate of this bug. ***
Comment 12 Will Woods (RETIRED) gentoo-dev 2003-10-07 08:07:45 UTC
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..
Comment 13 Andy Dustman 2003-10-15 10:04:25 UTC
It seems to work now.
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-02 22:33:09 UTC
once this bug (and bug 30701) is properly resolved, PHP will be going back
to depending on virtual/snmp instead of net-snmp directly.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-19 16:25:56 UTC
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/)
Comment 16 Martin Holzer (RETIRED) gentoo-dev 2003-11-24 06:37:17 UTC
net-snmp 5.1.0 is out

maybe it could help us
Comment 17 Martin Holzer (RETIRED) gentoo-dev 2003-11-24 06:38:21 UTC
*** Bug 29168 has been marked as a duplicate of this bug. ***
Comment 18 Martin Holzer (RETIRED) gentoo-dev 2003-11-24 06:47:15 UTC
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


Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-24 09:24:18 UTC
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>'
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-02 21:21:20 UTC
*** Bug 34949 has been marked as a duplicate of this bug. ***
Comment 21 Josh Grebe (RETIRED) gentoo-dev 2003-12-28 16:58:41 UTC
Bug 30701 seems to be resolved, can we move this one along?
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-03 19:45:12 UTC
bug 30701 is NOT resolved, the needed stuff from it is not in the tree afaik.
Comment 23 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 16:40:34 UTC
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.
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-10 16:22:48 UTC
*** Bug 37716 has been marked as a duplicate of this bug. ***
Comment 25 Martin Holzer (RETIRED) gentoo-dev 2004-02-11 00:18:04 UTC
is this still an issue ?
Comment 26 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-11 01:11:42 UTC
fixed in cvs now.
i know it's too late for 2004.0, i don't really want it in there.