php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14910 --with-snmp compile failure
Submitted: 2002-01-07 09:35 UTC Modified: 2002-08-08 01:00 UTC
Votes:21
Avg. Score:4.9 ± 0.3
Reproduced:21 of 21 (100.0%)
Same Version:10 (47.6%)
Same OS:10 (47.6%)
From: jsignalness at btinet dot net Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.1.1 OS: Red Hat Linux 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jsignalness at btinet dot net
New email:
PHP Version: OS:

 

 [2002-01-07 09:35 UTC] jsignalness at btinet dot net
I am running UCD-SNMP 4.2.2.  UCD-SNMP libraries are installed in the default locations (/usr/local/...).  The snmp daemon, etc, appear to work perfectly.

Configure of php suceeds.  I think compilation suceeds as well.  Linking appears to fail after compilation.  Nobody was able to help me on the mailing lists.  I have also seen several other people posting this same error to the lists.  They have also received no useful answers.

The configure options I used:

./configure \
--with-apxs=/opt/apache/bin/apxs \ 
--with-oci8 \
--with-ldap \
--with-gd=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr/X11R6 \
--enable-sigchild \
--with-imap \
--enable-xslt \
--with-xslt-sablot \
--enable-wddx \
--with-snmp \
--enable-ucd-snmp-hack \
--with-openssl

A snippet of the error it produced upon "make":

Making all in .
make[1]: Entering directory `/opt/tmp/php-4.1.1'
/bin/sh /opt/tmp/php-4.1.1/libtool --silent --mode=link gcc  -I. -I/opt/tmp/php-4.1.1/ -I/opt/tmp/php-4.1.1/main -I/opt/
tmp/php-4.1.1 -I/opt/apache/include -I/opt/tmp/php-4.1.1/Zend -I/usr/include/freetype2/freetype -I/usr/local/include -I/
opt/tmp/php-4.1.1/ext/mysql/libmysql -I/opt/oracle/rdbms/public -I/opt/oracle/rdbms/demo -I/opt/tmp/ucd-snmp-4.2.2/inclu
de -I/opt/tmp/php-4.1.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/opt/tmp/php-4.1.1
/TSRM -g -O2 -prefer-pic   -o libphp4.la -rpath /opt/tmp/php-4.1.1/libs -avoid-version -L/usr/X11R6/lib -L/usr/local/lib
 -L/opt/oracle/lib -L/opt/tmp/ucd-snmp-4.2.2/lib  -R /usr/X11R6/lib -R /usr/local/lib -R /opt/oracle/lib -R /opt/tmp/ucd
-snmp-4.2.2/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/zlib/libzlib.la ex
t/gd/libgd.la ext/imap/libimap.la ext/ldap/libldap.la ext/mysql/libmysql.la ext/oci8/liboci8.la ext/openssl/libopenssl.l
a ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/snmp/libsnmp.la ext/standard/libstandard.la ex
t/wddx/libwddx.la ext/xml/libxml.la ext/xslt/libxslt.la TSRM/libtsrm.la -lpam -lc-client -ldl -lsablot -lexpat -lsnmp -l
m -ldl -lldap -llber -lcrypt -lpam -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm
-ldl -lnsl -lresolv -lcrypt -lclntsh
/usr/local/lib/libsnmp.a(snmp_client.o): In function `snmp_pdu_create':
/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:110: multiple definition of `snmp_pdu_create'
Zend/.libs/libZend.al(snmp_client.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:110: first defined here
/usr/local/lib/libsnmp.a(snmp_client.o): In function `snmp_add_null_var':
/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:140: multiple definition of `snmp_add_null_var'
Zend/.libs/libZend.al(snmp_client.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_client.c:140: first defined here

. . . OUTPUT OMITTED . . .

/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `alarm_handler':
/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:164: multiple definition of `alarm_handler'
Zend/.libs/libZend.al(snmp_alarm.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:164: first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `get_next_alarm_delay_time':
/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:170: multiple definition of `get_next_alarm_delay_time'
Zend/.libs/libZend.al(snmp_alarm.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:170: first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `snmp_alarm_register':
/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:204: multiple definition of `snmp_alarm_register'
Zend/.libs/libZend.al(snmp_alarm.o):/opt/tmp/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:204: first defined here
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/opt/tmp/php-4.1.1'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-09 11:52 UTC] jsignalness at btinet dot net
The same error occurs when using UCD-SNMP 4.2.3.  Wiping out any snmp library and header files on the system and rebuilding snmp had no effect.
 [2002-01-10 04:27 UTC] rk at rewtbox dot de
In the Zend/Makefile.in, changing this: 
libZend_la_LDFLAGS = @EXTRA_LIBS@ 
to this: 
libZend_la_LDFLAGS = 

did _not_ fix the compile problems at my side ... there are the same errors as before 

at some other system this fixed the compile errors but restarting apache coredumped ...

(net-snmp 4.2.3, php4.1.1)
 [2002-01-21 16:25 UTC] bert at ncinter dot net
I also am receiving the same exact error.
Has anyone any idea what I can do to fix the problem?

Will downgrading the PHP version have any affect?
 [2002-01-23 10:03 UTC] bert at ncinter dot net
Ok, this appears to be a problem with Version 4.1.1
I was having this issued on a RedHat 6.2 Box with PHP 4.1.1
I then installed PHP 4.0.6 and it worked perfect and I have full SNMP access.

So it appears to be a BUG in PHP Version 4.1.1 for sure.
 [2002-01-23 11:40 UTC] jsignalness at btinet dot net
This bug occurs in PHP 4.1.0 as well as PHP 4.1.1.
 [2002-01-30 20:10 UTC] norny at yahoo dot com
I'm just tossing in a comment to say I'm also able to reproduce this bug report with 4.1.1 on Slack 8.
 [2002-02-20 03:35 UTC] toni dot viemero at iki dot fi
Unreproducible with Debian GNU/Linux woody and standard Debian (dev-)packages of net-snmp, gd etc.

net-snmp 4.2.3 and php 4.1.1
 [2002-02-28 22:17 UTC] Peter at planb dot net dot au
I am getting an identical error when compiling PHP 4.1.2 with UCD-SNMP 4.2.3 on FreeBSD.  When I compile PHP for CGI/command line duties (no --with-apxs... all other options the same) with UCD snmp it compiles without errors.
 [2002-03-01 05:27 UTC] yohgaki@php.net
I'm using ucd-snmp 4.2.1 and it compiles fine, at least.
 [2002-03-10 05:59 UTC] pranav at vigorsoft dot com
Hi 
I am installing php-4.1.2 with ucd-snmp-4.2.3 on RedHatLinux 7.2 and i am getting same type of errors. it configures correctly but in make it gives same type of errors.Is there any solution for this. Please reply back to me on my mail address if possible.
 [2002-03-11 14:25 UTC] wstreete at yahoo dot com
I am using UCD-SNMP 4.2.3 on a Red Hat 7.2 base isntallation. Can't get PHP 4.1.2 (or 4.1.1) to finish compile when using the --with-apxs option. Works fine without the --with-apxs option though.
 [2002-03-15 18:01 UTC] sherd at RemoveROYPlas dot com
i am using RH 7.1

php-4.1.2 and ucd-snmp-4.2.3

compiles ok with:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --enable-ftp --enable-sysvsem --enable-sysvshm --enable-sockets --with-gettext --with-mm=/usr/local/mm-1.1.3 --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/local/src/zlib --with-snmp --with-openssl

brief error from make...

<snip>
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:204: multiple definition of `snmp
_alarm_register'                                                                
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm
.c:204: first defined here                                                      
collect2: ld returned 1 exit status                                             
make[1]: *** [libphp4.la] Error 1                                               
make[1]: Leaving directory `/usr/local/php-4.1.2'                               
make: *** [all-recursive] Error 1                                               
</snip>
 [2002-04-02 19:53 UTC] duane at gibnet dot net
I have come across this problem aswell with PHP 4.1.2 using UCD-SNMP 4.2.2 and UCD-SNMP 4.2.3 when compiling with apxs (compiling php as standalone binary did not result in any compile errors)

After reverting back to UCD-SNMP 4.2.1, PHP compiled correctly.

----------------
configure arguments used:
./configure --with-mysql --with-apxs=/usr/local/apache/sbin/apxs --with-snmp --with-snmp=/usr/local --enable-ftp --enable-ucd-snmp-hack
 [2002-07-07 21:21 UTC] sniper@php.net
Does this happen with this snapshot:

http://snaps.php.net/php4-latest.tar.gz
 [2002-08-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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 Dec 21 16:01:28 2024 UTC