This is a discussion on Solaris 10 - Compilation Problem within the SNMP Users forums, part of the Networking and Network Related category; --===============0574007226== Content-Type: multipart/alternative; boundary="----=_Part_104293_22782020.1165921685156" ------=_Part_104293_22782020.1165921685156 Content-Type: text/plain; charset=ISO-8859-1; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0574007226==
Content-Type: multipart/alternative; boundary="----=_Part_104293_22782020.1165921685156" ------=_Part_104293_22782020.1165921685156 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I am trying to compile Net-SNMP 5.4 on Solaris 10 (Sparc) but I'm having a little trouble. Everything seems to go OK until: /bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -o snmpd snmpd.lo libnetsnmpmibs.la libnetsnmpagent.lahelpers/libnetsnmphelpers.la .../snmplib/libnetsnmp.la -ldl -lkvm -lcrypto -lkstat -lelf -lm -lnsl -lsocket -lpicl -ladm gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -o .libs/snmpd .libs/snmpd.o ../.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lkvm -lcrypto -lkstat -lelf -lm -lnsl -lsocket -lpicl -ladm -Wl,--rpath -Wl,/usr/local/lib ../.libs/libnetsnmpmibs.so: undefined reference to `dlerror@SUNW_1.22' ../.libs/libnetsnmpmibs.so: undefined reference to `dlopen@SUNW_1.22' ../.libs/libnetsnmpmibs.so: undefined reference to `dlsym@SUNW_1.22' ../.libs/libnetsnmpmibs.so: undefined reference to `dlclose@SUNW_1.22' collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `snmpd' Current working directory /home/dan/net-snmp-5.4/agent *** Error code 1 The following command caused the error: if test "snmplib agent apps man local mibs" != ""; then \ it="snmplib agent apps man local mibs" ; \ for i in $it ; do \ echo "making all in `pwd`/$i"; \ ( cd $i ; make ) ; \ if test $? != 0 ; then \ exit 1 ; \ fi \ done \ fi make: Fatal error: Command failed for target `subdirs' My configure line: ../configure --with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio \ smux mibII/mta_sendmail" --with-cc=gcc gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) echo $PATH /usr/bin:/usr/sbin:/usr/ccs/bin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/usr/sbin:/usr/sfw/bin echo $LD_LIBRARY_PATH /usr/sfw/lib:/usr/local/lib:/lib:/usr/lib uname -a SunOS testhost01 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V210 I can't seem to find anything useful in the mail list archives, so any help anyone can offer would be gratefully received. Thanks, Dan ------=_Part_104293_22782020.1165921685156 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,<br><br>I am trying to compile Net-SNMP 5.4 on Solaris 10 (Sparc) but I'm having a little trouble.<br><br>Everything seems to go OK until:<br><br>/bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -o snmpd snmpd.lo <a href="http://libnetsnmpmibs.la">libnetsnmpmibs.la</a> <a href="http://libnetsnmpagent.la">libnetsnmpagent.la</a> helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lkvm -lcrypto -lkstat -lelf -lm -lnsl -lsocket -lpicl -ladm <br>gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -o .libs/snmpd .libs/snmpd.o ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lkvm -lcrypto -lkstat -lelf -lm -lnsl -lsocket -lpicl -ladm -Wl,--rpath -Wl,/usr/local/lib <br>./.libs/libnetsnmpmibs.so: undefined reference to `dlerror@SUNW_1.22'<br>./.libs/libnetsnmpmibs.so: undefined reference to `dlopen@SUNW_1.22'<br>./.libs/libnetsnmpmibs.so: undefined reference to `dlsym@SUNW_1.22'<br>./.libs/libnetsnmpmibs.so: undefined reference to `dlclose@SUNW_1.22' <br>collect2: ld returned 1 exit status<br>*** Error code 1<br>make: Fatal error: Command failed for target `snmpd'<br>Current working directory /home/dan/net-snmp-5.4/agent<br>*** Error code 1<br>The following command caused the error: <br>if test "snmplib agent apps man local mibs" != ""; then \<br> it="snmplib agent apps man local mibs" ; \<br> for i in $it ; do \<br> echo "making all in `pwd`/$i"; \ <br> ( cd $i ; make ) ; \<br> if test $? != 0 ; then \<br> exit 1 ; \<br> fi \<br> done \<br>fi<br>make: Fatal error: Command failed for target `subdirs' <br><br>My configure line:<br><br>./configure --with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio \ smux mibII/mta_sendmail" --with-cc=gcc<br><br>gcc -v<br><br>Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10 /3.4.3/specs<br>Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared <br>Thread model: posix<br>gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)<br><br>echo $PATH<br>/usr/bin:/usr/sbin:/usr/ccs/bin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/usr/sbin:/usr/sfw/bin<br> <br>echo $LD_LIBRARY_PATH<br>/usr/sfw/lib:/usr/local/lib:/lib:/usr/lib<br><br>uname -a<br>SunOS testhost01 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V210<br><br>I can't seem to find anything useful in the mail list archives, so any help anyone can offer would be gratefully received. <br><br>Thanks,<br><br>Dan<br> ------=_Part_104293_22782020.1165921685156-- --===============0574007226== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV --===============0574007226== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============0574007226==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|