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-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |