php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33665 Cannot compile with SNMP support
Submitted: 2005-07-12 16:57 UTC Modified: 2005-07-12 17:03 UTC
From: subscription at nazarenko dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.4 OS: Linux SuSE 8.2
Private report: No CVE-ID: None
 [2005-07-12 16:57 UTC] subscription at nazarenko dot net
Description:
------------
Trying to  ./configure --with-snmp --enable-cli --disable-cgi -prefix=/usr

I have installed net-snmp 5.1.3 + devel rpm's.

Am I missing any libraries?



Actual result:
--------------
config.log has:

configure:76426: checking for SNMP support
configure:76472: checking OpenSSL dir for SNMP
configure:76500: checking for net-snmp-config
configure:77666: checking for snmp_parse_oid in -lnetsnmp
configure:77685: gcc -o conftest -g -O2   conftest.c -lnetsnmp  -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lnetsnmp -lcrypto -lm 1>&5
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__memcpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `regexec@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__memset_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strcpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__fprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strcat_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strncat_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strncpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__snprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__vsnprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `DES_key_sched'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__printf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__sprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 77674 "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 snmp_parse_oid();

int main() {
snmp_parse_oid()
; return 0; }
configure:77802: checking for init_snmp in -lnetsnmp
configure:77821: gcc -o conftest -g -O2   conftest.c -lnetsnmp  -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lnetsnmp -lcrypto -lm 1>&5
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__memcpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `regexec@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__memset_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strcpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__fprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strcat_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strncat_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__strncpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__snprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__vsnprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `DES_key_sched'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__printf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `__sprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 77810 "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; }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-12 17:03 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 02:01:29 2024 UTC