Re: Solaris 10 - Compilation Problem

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 `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'

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.