#47041 [Opn->Fbk]: 32-bit libnetsnmp.so not found in /usr/sfw/lib/
ID: 47041
Updated by: jani@php.net
Reported By: nullpass at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 10 SPARC
PHP Version: 5.2.8
New Comment:
Does this exist:
# /usr/sfw/bin/net-snmp-config
if it does, is it for the 64 bit installation or 32 bit? You've
propable just misconfigured the netsnmp installation if it's for the
64bit one..
Previous Comments:
------------------------------------------------------------------------
[2009-01-08 19:08:30] nullpass at gmail dot com
Description:
------------
I am unable to convince PHP to use the 32-bit version of
libnetsnmp.so.
Compiling PHP with
--with-snmp=/usr/sfw
to use Sun's distro of net-snmp
crle is:
crle -c /var/ld/ld.config -l /usr/lib:/lib:/usr/local/lib:/usr/sfw/lib
PHP needs to use the 32-bit library in
/usr/sfw/lib/libnetsnmp.so (ELF 32-bit MSB dynamic lib SPARC32PLUS
Version 1, V8+ Required, dynamically linked, not stripped)
but instead it is going for the 64-bit library in:
/usr/sfw/lib/sparcv9/libnetsnmp.so (ELF 64-bit MSB dynamic lib SPARCV9
Version 1, dynamically linked, not stripped)
This results in the error:
ld: fatal: file /usr/sfw/lib/sparcv9/libnetsnmp.so: wrong ELF class:
ELFCLASS64
ld: fatal: File processing errors. No output written to
.libs/libphp5.so
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libphp5.la'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47041&edit=1
Thread (3 messages)