Hello,
I tried the configure line:
./configure --with-mib-modules="ucd-snmp/lmSensors ucd-snmp/diskio \ smux
mibII/mta_sendmail" --with-cc=gcc --with-libs=-lc
But unfortunately still receive the same error:
/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 -lc -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 -lc -lnsl -lsocket -lpicl -ladm -Wl,--rpath
-Wl,/usr/local/lib
./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
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'
I'm using gcc 3.4.3 which ships with Solaris 10, I have also tried gcc from
Sun Freeware but get a similar error.
Thanks a lot,
Dan
On 12/12/06, Thomas Anders <[EMAIL PROTECTED]> wrote:
Dan Richardson wrote:
> 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 [EMAIL PROTECTED]'
> ./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
> ./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
> ./.libs/libnetsnmpmibs.so: undefined reference to [EMAIL PROTECTED]'
Those symbols should live in libc. Try adding --with-libs=-lc to your
configure line.
Where's this version of gcc originating from?
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------------------------
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users