ID:               47041
 Comment by:       nullpass at gmail dot com
 Reported By:      nullpass at gmail dot com
 Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: Solaris 10 SPARC
 PHP Version:      5.2.8
 New Comment:

It's not possible that I mis-configured Sun's distribution of net-snmp,
the product is installed via a package during OS installation.

The file /usr/sfw/bin/net-snmp-config does exist, it is a shell script
that: "this shell script is designed to merely dump the configuration
information about how the net-snmp package was compiled."

I guess PHP is calling that script and net-snmp is telling PHP to link
against the 64bit libraries. I will hand-hack the net-snmp-config script
to return 32bit results thereby saving the PHP developers from actually
doing work on this case.


Previous Comments:
------------------------------------------------------------------------

[2009-01-26 12:44:43] j...@php.net

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..

------------------------------------------------------------------------

[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

Reply via email to