I get a linker error when I try to build for PPC, with the following
configuration
./configure --host=ppc --with-cc=gcc-ppc --with-endianness=big
--disable-manuals --disable-applications --disable-scripts
--disable-debugging --with-enterprise-oid=469 --with-transports=UDP
--with-persistent-directory=/var/net-snmp --with-copy-persistent-files=no
--with-default-snmp-version=1 --with-sys-contact=Unknown
--with-sys-location=Unknown --with-logfile=
If I add --enable-mini-agent it works fine, but I don't want to do that
because my pass directive no longer works.
Error output:
./.libs/libnetsnmpmibs.a(tcp.o)(.text+0x2bc): In function `tcp_load':
mibII/tcp.c:587: undefined reference to `linux_read_tcp_stat'
./.libs/libnetsnmpmibs.a(icmp.o)(.text+0x310): In function `icmp_load':
mibII/icmp.c:634: undefined reference to `linux_read_icmp_stat'
./.libs/libnetsnmpmibs.a(ip.o)(.text+0x36c): In function `ip_load':
mibII/ip.c:713: undefined reference to `linux_read_ip_stat'
./.libs/libnetsnmpmibs.a(udp.o)(.text+0x1f8): In function `udp_load':
mibII/udp.c:407: undefined reference to `linux_read_udp_stat'
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
I also found a bug in agent/mibgroup/mibII/at.c
line 705 needs to be #ifdef'd correctly
#ifdef ARP_SCAN_FOUR_ARGUMENTS
*ifIndex = ...
#endif
Thanks
Brian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders