Re: Solaris 10 - Compilation Problem
"Dan Richardson" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, Thanks for the reply. Starting from scratch (with the same LD_LIBRARY_PATH) gives me the original error again: /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 `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' testhost01 [/home/dan/net-snmp-5.4]# echo $LD_LIBRARY_PATH /usr/lib:/lib:/usr/sfw/lib:/usr/local/lib Yes, I am very confused! Thanks, Dan On 12/13/06, Thomas Anders <[email protected]> wrote: > > Dan Richardson wrote: > > Correctly setting my LD_LIBRARY_PATH to make sure libc is picked up > > seems to help. > > > > I now have: > > > > echo $LD_LIBRARY_PATH > > /usr/lib:/lib:/usr/sfw/lib:/usr/local/lib > > > > And receive this different error: [...] > > gcc: mibgroup/.libs/kernel_sunos5.o: No such file or directory > > Sounds like there are leftovers from a previous build. I'd suggest to > start from scratch: unpack, ./configure ... && make. > > > +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