php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47041 32-bit libnetsnmp.so not found in /usr/sfw/lib/
Submitted: 2009-01-08 19:08 UTC Modified: 2009-02-03 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nullpass at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.8 OS: Solaris 10 SPARC
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nullpass at gmail dot com
New email:
PHP Version: OS:

 

 [2009-01-08 19:08 UTC] 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'



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-26 12:44 UTC] jani@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-28 18:14 UTC] nullpass at gmail dot com
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.
 [2009-02-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 08 21:01:30 2024 UTC