Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56092 - dev-php/php-4.3.7-r1 fails to compile with USE="snmp" and net-analyzer/ucd-snmp installed
Summary: dev-php/php-4.3.7-r1 fails to compile with USE="snmp" and net-analyzer/ucd-sn...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 15:04 UTC by Wolfram Schlich (RETIRED)
Modified: 2004-12-06 00:41 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 Wolfram Schlich (RETIRED) gentoo-dev 2004-07-04 15:04:56 UTC
Installed: net-analyzer/ucd-snmp-4.2.6-r1
Trying to compile dev-php/php-4.3.7-r1 with USE="snmp":
--8<--
checking for SNMP support... yes
checking OpenSSL dir for SNMP... no
checking for default_store.h... yes
checking for OpenSSL support in SNMP libraries... yes
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... (cached) yes
checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes
checking for kstat_read in -lkstat... no
checking for snmp_parse_oid in -lsnmp... no
checking for init_snmp in -lsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more information.

!!! ERROR: dev-php/php-4.3.7-r1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
--8<--
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-04 15:31:50 UTC
did you have net-snmp installed and then install ucd-snmp over it?
also, merge gcc again, i've seen it cause problems with it's 'fixed' headers.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-11 02:24:49 UTC
i have the same problem, remerging ucd-snmp didn't help, didn't remerge gcc yet
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2004-07-23 11:56:25 UTC
how about php-4.3.8 ?
please let us know which version of snmp do you use/tried
Comment 4 Balazs Miklos 2004-08-16 06:58:38 UTC
I also have the same problem, with php-4.3.8.
The relevant lines of config.log are:

configure:76869: checking for init_snmp in -lnetsnmp
configure:76888: gcc -o conftest -mcpu=pentium2 -O3 -pipe  -L/usr/lib -ldb-4.1  -ltiff -L/usr/lib -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386 -L/opt/blackdown-jdk-1.4.1/jre/lib/i386 conftest.c -lnetsnmp  -lhistory -lreadline -lncurses -lpspell -lpdf -lz -ltiff -lpng -ljpeg -lpanel -lncurses -lmysqlclient -lmhash -lmcrypt -lltdl -lldap -llber -lcrypt -lpam -lexslt -lxml2 -lxslt -lz -ldb-4.1 -lndbm -lgdbm -lcrack -lbz2 -lz -lresolv -lm  -lxmlparse -lxmltok -lxml2 -lz -lm -lnetsnmp -lcrypto -lm 1>&5
/usr/lib/libnetsnmp.so: undefined reference to `des_cbc_encrypt'
/usr/lib/libnetsnmp.so: undefined reference to `des_key_sched'
/usr/lib/libnetsnmp.so: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 76877 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char init_snmp();

int main() {
init_snmp()
; return 0; }

root@ns php-4.3.8 # emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.20)
=================================================================
System uname: 2.4.20 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium2 -O3 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm arts avi berkdb crypt cups cyrus encode foomaticdb gdbm gif gpm imap imlib java jpeg ldap libg++ libwww mad mikmod mmx motif mysql ncurses nls opengl pam pdflib perl png python quicktime readline sdl slang snmp spell tcpd tetex x86 xml xml2 xv zlib"
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-21 16:25:32 UTC
balazs: add 'ssl' to your USE flags and try again.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-06 00:41:55 UTC
no response from user.