undefined reference when compiled net-snmp-5.4.1 with flag--without-kmem-usage on FreeBSD 6.2

This is a discussion on undefined reference when compiled net-snmp-5.4.1 with flag--without-kmem-usage on FreeBSD 6.2 within the SNMP Users forums, part of the Networking and Network Related category; Hi, I configured net-snmp 5.4.1 on FreeBSD 6.2 with the following command " "./configure --disable-...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2008
Xinran Wang
 
Posts: n/a
Default undefined reference when compiled net-snmp-5.4.1 with flag--without-kmem-usage on FreeBSD 6.2

Hi,

I configured net-snmp 5.4.1 on FreeBSD 6.2 with the following command "

"./configure --disable-embedded-perl --disable-privacy
--without-kmem-usage --prefix=/usr/local "

And got compilation error "

gcc -g -O2 -Ufreebsd6 -Dfreebsd6=freebsd6 -o .libs/snmpd .libs/snmpd.o
-L/home/xinrwang/net-snmp-5.4.1/agent/.libs
-L/home/xinrwang/net-snmp-5.4.1/agent/helpers/.libs
-L/home/xinrwang/net-snmp-5.4.1/snmplib/.libs
-L/home/xinrwang/net-snmp-5.4.1/snmplib
-L/home/xinrwang/net-snmp-5.4.1/agent/helpers ./.libs/libnetsnmpagent.so
helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so
/home/xinrwang/net-snmp-5.4.1/agent/helpers/.libs/libnetsnmphelpers.so
/home/xinrwang/net-snmp-5.4.1/agent/.libs/libnetsnmpagent.so -lkvm
/home/xinrwang/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so
.../snmplib/.libs/libnetsnmp.so -lcrypto -Wl,--rpath -Wl,/usr/local/lib
../.libs/libnetsnmpmibs.so: undefined reference to `kd'
../.libs/libnetsnmpmibs.so: undefined reference to `auto_nlist'

"

How to fix this ?

Thanks,
-Xinran


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

Reply With Quote
  #2 (permalink)  
Old 06-25-2008
Thomas Anders
 
Posts: n/a
Default Re: undefined reference when compiled net-snmp-5.4.1 withflag --without-kmem-usage on FreeBSD 6.2

Xinran Wang wrote:
> I configured net-snmp 5.4.1 on FreeBSD 6.2 with the following command "
>
> "./configure --disable-embedded-perl --disable-privacy
> --without-kmem-usage --prefix=/usr/local "
> ...
> ./.libs/libnetsnmpmibs.so: undefined reference to `kd'
> ./.libs/libnetsnmpmibs.so: undefined reference to `auto_nlist'


Do you still get the same error if you start from scratch by unpacking the tarball to a new directory and run the above configure command followed by make?


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

Reply With Quote
  #3 (permalink)  
Old 06-25-2008
Xinran Wang
 
Posts: n/a
Default Re: undefined reference when compiled net-snmp-5.4.1 withflag --without-kmem-usage on FreeBSD 6.2

Yes. It is still there. I also try the newest net-snmp-5.4.1.2 and have
the same error.

Thanks,
-Xinran

Thomas Anders wrote:
> Xinran Wang wrote:
>
>> I configured net-snmp 5.4.1 on FreeBSD 6.2 with the following command "
>>
>> "./configure --disable-embedded-perl --disable-privacy
>> --without-kmem-usage --prefix=/usr/local "
>> ...
>> ./.libs/libnetsnmpmibs.so: undefined reference to `kd'
>> ./.libs/libnetsnmpmibs.so: undefined reference to `auto_nlist'
>>

>
> Do you still get the same error if you start from scratch by unpacking the tarball to a new directory and run the above configure command followed by make?
>
>
> +Thomas
>
>



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

Reply With Quote
  #4 (permalink)  
Old 06-25-2008
Dave Shield
 
Posts: n/a
Default Re: undefined reference when compiled net-snmp-5.4.1 with flag--without-kmem-usage on FreeBSD 6.2

2008/6/25 Xinran Wang <xinrwang@cisco.com>:
> Yes. It is still there. I also try the newest net-snmp-5.4.1.2 and have
> the same error.


It's probably worth checking the 5.4.2.pre2 tarball as well.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

Reply With Quote
  #5 (permalink)  
Old 07-01-2008
Dave Shield
 
Posts: n/a
Default Re: undefined reference when compiled net-snmp-5.4.1 with flag--without-kmem-usage on FreeBSD 6.2

2008/6/25 Xinran Wang <xinrwang@cisco.com>:
> I configured net-snmp 5.4.1 on FreeBSD 6.2 with the following command "
>
> "./configure --disable-embedded-perl --disable-privacy
> --without-kmem-usage --prefix=/usr/local "
>
> And got compilation error ....
> How to fix this ?



I've done some investigation, and it appears that the MIB module
'host/hr_swrun' relies on certain kernel-processing code, which
is omitted when '--without-kmem-usage' is specified.

The simplest solution in the short-term would probably
be to run:

../configure --disable-embedded-perl --disable-privacy
--without-kmem-usage --prefix=/usr/local
--with-out-mib-modules=host/hr_swrun


Untangling the hr_swrun code properly is going to take
a bit longer.


Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

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 03:49 AM.


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