Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 74761 - snmp module relocation error
snmp module relocation error
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
: 78215 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2002-10-01 10:38 EDT by David Ritchey
Modified: 2007-04-18 12:46 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-07-03 07:44:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Backport of SNMP module from php 4.3.0 (adds netsnmp support) (30.85 KB, patch)
2003-02-04 12:11 EST, Fred Wittekind
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:204 normal SHIPPED_LIVE : Updated PHP packages are now available 2003-07-02 00:00:00 EDT

  None (edit)
Description David Ritchey 2002-10-01 10:38:34 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 

Description of problem:
When trying to call any snmp function in a PHP script, no output is produced 
and the following entry appears in the httpd error_log:

/usr/sbin/httpd: relocation error: /usr/lib/php4/snmp.so: undefined symbol: 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Use any snmp function in a php script
Comment 1 David Ritchey 2002-12-10 17:28:36 EST
This problem still exists in 4.2.2-9
Comment 2 David Ritchey 2002-12-31 11:26:38 EST
I appears this issue with the snmp module is fixed in 4.3.0, I hope we move to 
that soon.
Comment 3 Need Real Name 2003-01-30 14:56:45 EST
Sorry getting forced off of redhat cause no fix in 3 months, oh well
Comment 4 Fred Wittekind 2003-02-04 12:11:19 EST
Created attachment 89840 [details]
Backport of SNMP module from php 4.3.0 (adds netsnmp support)
Comment 5 Need Real Name 2003-02-04 13:48:46 EST
any chance of getting a binary?
Comment 6 Joe Orton 2003-02-12 11:10:33 EST
*** Bug 78215 has been marked as a duplicate of this bug. ***
Comment 7 Joe Orton 2003-02-12 11:20:34 EST
Thanks for the patch; it needed config.m4 fixes for the 4.2 tree, and I've
rediffed against 4.3 tip for integration.  This will be in 4.2.2-16.
Comment 8 Joe Orton 2003-02-13 04:42:59 EST
php-4.2.2-16 available for testing, does this fix SNMP issues?

Comment 9 Need Real Name 2003-02-13 09:47:51 EST
Where do I get libcrypto.so.4, libssl.so.4, etc
Comment 10 Joe Orton 2003-02-13 10:03:59 EST
You'll have to "rpmbuild --rebuild" on the .src.rpm if you want to test them on
a system not running the Phoebe beta.
Comment 11 Need Real Name 2003-02-13 10:08:19 EST
Is there going to be a fix for the current release.
Comment 12 David Ritchey 2003-02-13 12:52:59 EST
The following results while trying to rebuild with the command 'rpmbuild --
rebuild php-4.2.2-16.src.rpm' on Red Hat 8.0 will all available updates:

Making all in snmp
make[2]: Entering directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/snmp'
make[3]: Entering directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/snmp'
/bin/sh /usr/src/redhat/BUILD/php-4.2.2/build-cgi/libtool --silent --
mode=compile gcc -I. -I/usr/src/redhat/BUILD/php-4.2.2/ext/snmp -
I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/main -I/usr/src/redhat/BUILD/php-
4.2.2 -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/Zend -
I/usr/local/openssl/include -I/usr/include/libxml2 -
I/usr/include/freetype2/freetype -I/usr/include/imap -I/usr/include/mysql -
I/usr/local/include -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-
4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2/Zend -I/usr/src/redhat/BUILD/php-
4.2.2/TSRM  -DUCD_COMPATIBLE -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/TSRM -
O2 -march=i386 -mcpu=i686 -fPIC -prefer-pic  -c /usr/src/redhat/BUILD/php-
4.2.2/ext/snmp/snmp.c && touch snmp.slo
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/usr/src/redhat/BUILD/php-4.2.2/ext/snmp/snmp.c: In function 
/usr/src/redhat/BUILD/php-4.2.2/ext/snmp/snmp.c:675: warning: initialization 
discards qualifiers from pointer target type
/usr/src/redhat/BUILD/php-4.2.2/ext/snmp/snmp.c: In function 
/usr/src/redhat/BUILD/php-4.2.2/ext/snmp/snmp.c:704: warning: initialization 
discards qualifiers from pointer target type
/bin/sh /usr/src/redhat/BUILD/php-4.2.2/build-cgi/libtool --silent --mode=link 
gcc -I. -I/usr/src/redhat/BUILD/php-4.2.2/ext/snmp -I/usr/src/redhat/BUILD/php-
4.2.2/build-cgi/main -I/usr/src/redhat/BUILD/php-4.2.2 -
I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/Zend -I/usr/local/openssl/include -
I/usr/include/libxml2 -I/usr/include/freetype2/freetype -I/usr/include/imap -
I/usr/include/mysql -I/usr/local/include -I/usr/include/pspell -
I/usr/src/redhat/BUILD/php-4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2/Zend -
I/usr/src/redhat/BUILD/php-4.2.2/TSRM  -DUCD_COMPATIBLE -
I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/TSRM -O2 -march=i386 -mcpu=i686 -
fPIC  -L/usr/kerberos/lib -o snmp.la -avoid-version -module -
rpath /usr/src/redhat/BUILD/php-4.2.2/build-cgi/modules  snmp.lo  -lm -lelf -
lcrypto -lnetsnmp
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[3]: *** [snmp.la] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/snmp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/snmp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.30602 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.30602 (%build)

libelf-0.8.2-2 is installed

lrwxrwxrwx    1 root     root           15 Sep 30 02:43 /usr/lib/libelf.so.0 -> 
-rwxr-xr-x    1 root     root        95162 Aug 26 10:11 /usr/lib/libelf.so.0.8.2

Comment 13 David Ritchey 2003-02-13 13:14:18 EST
Installing the following Rawhide RPMS on an 8.0 box satisfies the dependencies 
of the binaries Joe provided:


With these and the php-4.2.2-16 RPMS installed, snmp functions appear to be 
Comment 14 Need Real Name 2003-02-13 14:33:25 EST
appears to be working for me too!
Comment 15 Joe Orton 2003-02-25 08:49:27 EST
The patch to make php-snmp use net-snmp is having nasty side-effects, causing
segfaults on server startup in some builds (the addition of the "init_snmp()"
looks like the trigger).  I've had to revert it for the time being, leaving just
minimal fixes to the snmp module, until this can be investigated further.
Comment 16 Joe Orton 2003-07-03 07:44:14 EDT
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.