Compiling net-snmp 5.2.1 under AIX 5.3 ML1

This is a discussion on Compiling net-snmp 5.2.1 under AIX 5.3 ML1 within the SNMP Coders forums, part of the Networking and Network Related category; net-snmp coding gurus: Here's the environment: - gcc version 2.9-aix51-020209 (from Linux utilities RPM for AIX ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-31-2005
Philip Greer
 
Posts: n/a
Default Compiling net-snmp 5.2.1 under AIX 5.3 ML1

net-snmp coding gurus:

Here's the environment:
- gcc version 2.9-aix51-020209 (from Linux utilities RPM for AIX 5.3)
- GNU ld version 2.9-aix51-020209 (with BFD 2.9-aix51-020209) (from =
Linux utilities binutils RPM for aix 5.3)
- GNU ranlib 2.9-aix51-020209 (from Linux utilities binutils RPM for AIX =
5.3)
- net-snmp version 5.2.1 source tree downloaded from sourceforge
- Configure script as follows:

#configure
../configure --with-defaults --with-mib-modules=3Dif-mib =
--with-mib=3Dif-mib --disable-shared --with-sys-contact=3D"blah" =
--with-sys-location=3D"blah" -with-default-snmp-version=3D"3" =
--with-gnu-ld

#get rid of double quotes in the main config file
perl -p -i -e 's/""/"/g' include/net-snmp/net-snmp-config.h


Compile barfs with:

gcc -g -O2 -Daix5 -o snmpd snmpd.o ./.libs/libnetsnmpmibs.a =
../.libs/libnetsnmpa
gent.a helpers/.libs/libnetsnmphelpers.a ../snmplib/.libs/libnetsnmp.a =
-ldl -lm
-lperfstat
../.libs/libnetsnmpmibs.a(interface_common.o): In function =
`netsnmp_access_interf
ace_init':
if-mib/data_access/interface_common.c:80: undefined reference to =
`netsnmp_arch_i
nterface_init'
../.libs/libnetsnmpmibs.a(interface_common.o): In function =
`netsnmp_access_interf
ace_container_load':
if-mib/data_access/interface_common.c:154: undefined reference to =
`netsnmp_arch_
interface_container_load'
../.libs/libnetsnmpmibs.a(interface_common.o): In function =
`netsnmp_access_interf
ace_index_find':
if-mib/data_access/interface_common.c:195: undefined reference to =
`netsnmp_arch_
interface_index_find'
../.libs/libnetsnmpmibs.a(interface_common.o): In function =
`netsnmp_access_interf
ace_entry_set_admin_status':
if-mib/data_access/interface_common.c:360: undefined reference to =
`netsnmp_arch_
set_admin_status'
collect2: ld returned 1 exit status
gmake[1]: *** [snmpd] Error 1
gmake[1]: Leaving directory `/usr/local/src/net-snmp-5.2.1/agent'
gmake: *** [subdirs] Error 1


This is troubling because those net-snmp symbols (functions) ARE defined =
in the net-snmp library:

strings libnetsnmpmibs.a | egrep =
'netsnmp_arch_interface_init|netsnmp_arch_interfac e_container_load|netsnm=
p_arch_interface_index_find|netsnmp_arch_set_admin _status'

..netsnmp_arch_interface_init
..netsnmp_arch_interface_container_load
..netsnmp_arch_interface_index_find
..netsnmp_arch_set_admin_status


But - note that they are preceded with a '.' in front of the function =
name. Significant?

Help me out here. I need the interface MIB in order to have Counter64 as =
32 bit counters don't cut it for gathering stats on Gb interfaces.

I've tried net-snmp version 5.2 - I get a similar chunk blowing.

../.libs/libnetsnmpmibs.a(ifTable.o): In function `ifTable_commit':
if-mib/ifTable/ifTable.c:1871: undefined reference to =
`netsnmp_access_interface_entry_set_admin_status'
../.libs/libnetsnmpmibs.a(ifTable_data_access.o): In function =
`ifTable_cache_load':
if-mib/ifTable/ifTable_data_access.c:289: undefined reference to =
`netsnmp_access_interface_container_load'
if-mib/ifTable/ifTable_data_access.c:313: undefined reference to =
`netsnmp_access_interface_container_free'
collect2: ld returned 1 exit status
gmake[1]: *** [snmpd] Error 1
gmake[1]: Leaving directory `/usr/local/src/net-snmp-5.2/agent'
gmake: *** [subdirs] Error 1



Older versions (5.1.x) don't even have the if-mib available.

Binaries of 5.2 and 5.2.1 don't have if-mib compiled in.


Thanks,
Philip Greer
Paragon Solutions Group



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
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 10:19 AM.


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