Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30336 - dev-php/mod_php-4.3.3-r1 fails to compile with USE=snmp
Summary: dev-php/mod_php-4.3.3-r1 fails to compile with USE=snmp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on: 30701
Blocks:
  Show dependency tree
 
Reported: 2003-10-04 11:11 UTC by Jeremy Huddleston (RETIRED)
Modified: 2003-11-02 13:38 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 Jeremy Huddleston (RETIRED) gentoo-dev 2003-10-04 11:11:57 UTC
I can't get mod_php to compile for my system because it keeps failing when
compileing the snmp related code:

Reproducible: Always
Steps to Reproduce:
1. USE=snmp emerge -Uv mod_php
2.
3.




~ $ emerge -Upv mod_php
>>> --upgradeonly implies --update... adding --update to options.

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

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-4.3.3-r1  +apache2 +X +crypt +curl -firebird
+flash -freetds +gd +gd-external +gdbm +imap -informix +ipv6 +java +jpeg -ldap
+mcal -memlimit +mysql +nls +oci8 +odbc +pam +pdflib +png +postgres +qt +snmp
+spell +ssl +tiff +truetype +xml2 +berkdb
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2003-10-04 11:44:33 UTC
forgot some important info:
~ $ emerge info
Portage 2.0.49-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Celeron (Mendocino)
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -mcpu=pentium2 -O3 -pipe -fomit-frame-pointer -falign-functions=4
-falign-jumps=4 -falign-loops=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/afs/C /etc/afs/afsws /etc/env.d"
CXXFLAGS="-march=pentium2 -mcpu=pentium2 -O3 -pipe -fomit-frame-pointer -falign-functions=4
-falign-jumps=4 -falign-loops=4"
DISTDIR="/usr/local/download/portage/distfiles"
FEATURES="ccache autoaddcvs sandbox buildpkg userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/local/download/portage/packages-pentium2"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/download/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib nas bonobo
svga ggi tcltk java guile ruby mysql postgres X sdl gpm tcpd pam libwww ssl
perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla gphoto2
snmp cdr scanner 3ds acl acpi afs altivec amd apache2 ardour-ksi atlas autofs
bidi bindist clamav clisp cmucl cscope curl dga dnd doc dv dvb dvd emacs
emacs-w3 ethereal evo expat faad fax fbcon fbdev ffmpeg flash gb gcl gd gd-external
glut gmtfull gmthigh gmtsuppl gmttria gnomedb gps gstreamer gtk2 hbci icc
imagemagick imap innodb ipalias ipv6 jack javascript jbig jikes joystick
junit justify kerberos ladcca lcd lcms ldam leim libdsk libg libgda lids
lirc lmtp ltsp lua lucid mbox mcal md5sum milter mng mozaccess mozcalendar
mozctl mozinterfaceinfo mozp3p mozsvg mozxmlterm mpi mule music neXt nviz
oav objc oci8 odbc offensive ofx oldworld openal parse-clocks passfile pcap
pcmcia pda php pic plotutils pnp ppds prelude psyco qhull rplay S3TC samba
sasl skey slp socks5 sox sqlite src tiff transcode transparent-proxy trusted
type1 usb vim-with-x wmf wxwin wxwindows X509 Xaw3d xchattext xine xinerama
xml xosd xvid zeo"


--

/bin/sh /var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/sockets/ -I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/ext/sockets/
-DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/include
-I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/main -I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3
-I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/Zend -I/usr/include/libxml2
-I/usr/X11R6/include -I/usr/include/freetype -I/usr/include/imap -I/usr/include/mcal
-I/usr/include/mysql -I/usr/include/pspell -I/usr/qt/3/include -I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/ext/xml/expat
 -I/var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/TSRM  -march=pentium2
-mcpu=pentium2 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4
-falign-loops=4  -prefer-pic -c /var/tmp/portage/mod_php-4.3.3-r1/work/php-4.3.3/ext/sockets/sockets.c
-o 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/mod_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/mod_php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c: In function
`netsnmp_session_gen_auth_key':
/var/tmp/portage/mod_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/mod_php-4.3.3-r1/work/php-4.3.3/ext/snmp/snmp.c: In function
`netsnmp_session_gen_sec_key':
/var/tmp/portage/mod_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/mod_php-4.3.3-r1 failed.
!!! Function php_src_compile, Line 423, Exitcode 2
!!! compile problem
Comment 2 Robin Wood 2003-10-07 11:36:49 UTC
I get exactly the same problem. I've tried unmerging mod_php and re installing
it but that doesn't help, also a fix that someone else suggested, running
revdep-rebuild and re-emerging libwww didn't work. the revdep believes that
I have mod_php-4.3.1 installed even after I unmerged mod_php.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-07 11:40:21 UTC
I think we're close to the solution,
could you please take a look at  /usr/lib/gcc-lib/i686-pc-linux-gnu/*/include
and see if any header files from UCD-SNMP or Net-SNMP are present?
If so, re-merge gcc and try again.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2003-10-07 14:29:25 UTC
I emerged gcc 2 days ago (immediately before mod_php), and the problem persists...
Comment 5 Robin Wood 2003-10-08 10:55:34 UTC
I did have those files so I am trying it now. Maybe this should be for the
forums, but why does the revdep think I have version 4.3.1 installed?
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-08 13:20:26 UTC
Jeremy: does your system have those header files I asked about?

Robin:
revdep builds your current version again, not nessicary the new version.
there is a flag to make it build new versions instead of just the old ones
again, do revdep-rebuild --help to find it.
Comment 7 Robin Wood 2003-10-08 13:35:34 UTC
That fix worked for me, I now have mod_php!

Thanks All
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2003-10-08 15:29:47 UTC
Yep.  Those headers exist:

$ ls /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/net-snmp/
net-snmp-config.h

~ $ qpkg -I -v -f
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/net-snmp/net-snmp-config.h
sys-devel/gcc-3.2.3-r2 *
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-08 15:34:24 UTC
jeremy: please try
mv
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/net-snmp/net-snmp-config.h
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/net-snmp/net-snmp-config.h.old
then try to emerge mod_php/php again.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-25 21:11:26 UTC
no response from user, closing.
Comment 11 Dewet Diener 2003-11-02 13:38:21 UTC
Hit the same problem; after re-merging gcc I could compile it fine (see #22614).