Re: Solaris 10 - Compilation Problem

This is a discussion on Re: Solaris 10 - Compilation Problem within the SNMP Users forums, part of the Networking and Network Related category; --===============1733623855== Content-Type: multipart/alternative; boundary="----=_Part_117615_29821801.1166016490613" ------=_Part_117615_29821801.1166016490613 Content-Type: text/plain; charset=ISO-8859-1; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-13-2006
Dan Richardson
 
Posts: n/a
Default Re: Solaris 10 - Compilation Problem

--===============1733623855==
Content-Type: multipart/alternative;
boundary="----=_Part_117615_29821801.1166016490613"

------=_Part_117615_29821801.1166016490613
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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 <thomas.anders@blue-cable.de> 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)
>


------=_Part_117615_29821801.1166016490613
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,<br><br>Thanks for the reply. Starting from scratch (with the same LD_LIBRARY_PATH) gives me the original error again:<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 -lc -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 -lc -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 &quot;snmplib agent apps man local mibs&quot; != &quot;&quot;; then \<br> it=&quot;snmplib agent apps man local mibs&quot; ; \<br> for i in $it ; do \<br> echo &quot;making all in `pwd`/$i&quot;; \
<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>testhost01&nbsp;[/home/dan/net-snmp-5.4]# echo $LD_LIBRARY_PATH<br>/usr/lib:/lib:/usr/sfw/lib:/usr/local/lib<br><br>Yes, I am very confused!<br><br>Thanks,<br><br>Dan<br><br><div><s pan class="gmail_quote">On 12/13/06,
<b class="gmail_sendername">Thomas Anders</b> &lt;<a href="mailto:thomas.anders@blue-cable.de">thomas.anders@blue-cable.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Dan Richardson wrote:<br>&gt; Correctly setting my LD_LIBRARY_PATH to make sure libc is picked up<br>&gt; seems to help.<br>&gt;<br>&gt; I now have:<br>&gt;<br>&gt; echo $LD_LIBRARY_PATH<br>&gt; /usr/lib:/lib:/usr/sfw/lib:/usr/local/lib
<br>&gt;<br>&gt; And receive this different error: [...]<br>&gt; gcc: mibgroup/.libs/kernel_sunos5.o: No such file or directory<br><br>Sounds like there are leftovers from a previous build. I'd suggest to<br>start from scratch: unpack, ./configure ... &amp;&amp; make.
<br><br><br>+Thomas<br><br>--<br>Thomas Anders (thomas.anders at <a href="http://blue-cable.de">blue-cable.de</a>)<br></blockquote></div><br>

------=_Part_117615_29821801.1166016490613--


--===============1733623855==
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
--===============1733623855==
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

--===============1733623855==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0