From: SourceForge.net <no...@so...> - 2010-12-08 16:08:09
|
Bugs item #3074843, was opened at 2010-09-24 14:55 Message generated for change (Comment added) made by holgersk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3074843&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: None >Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Holger (holgersk) Assigned to: Niels Baggesen (nba) Summary: net-snmp-5.6.rc3 fails to build with debug disabled Initial Comment: Hi, net-snmp-5.6.rc3 will not build using the following steps: ./configure --disable-debugging <used default for all configure questions> make OS: CentOS release 5.5 (Final) libtool: compile: gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -c agent/nsDebug.c -fPIC -DPIC -o agent/.libs/nsDebug.o agent/nsDebug.c: In function ‘get_first_debug_entry’: agent/nsDebug.c:282: error: ‘debug_num_tokens’ undeclared (first use in this function) agent/nsDebug.c:282: error: (Each undeclared identifier is reported only once agent/nsDebug.c:282: error: for each function it appears in.) agent/nsDebug.c:284: error: ‘dbg_tokens’ undeclared (first use in this function) agent/nsDebug.c: In function ‘get_next_debug_entry’: agent/nsDebug.c:304: error: ‘debug_num_tokens’ undeclared (first use in this function) agent/nsDebug.c:306: error: ‘dbg_tokens’ undeclared (first use in this function) agent/nsDebug.c: In function ‘handle_nsDebugTable’: agent/nsDebug.c:329: error: ‘netsnmp_token_descr’ undeclared (first use in this function) agent/nsDebug.c:329: error: ‘debug_entry’ undeclared (first use in this function) agent/nsDebug.c:337: error: expected expression before ‘)’ token agent/nsDebug.c:360: error: expected expression before ‘)’ token agent/nsDebug.c:417: error: expected expression before ‘)’ token agent/nsDebug.c:442: error: expected expression before ‘)’ token make[2]: *** [agent/nsDebug.lo] Error 1 make[2]: Leaving directory `/home/klaash/projects/snmpcmds/net-snmp-5.6.rc3/agent/mibgroup' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/home/klaash/projects/snmpcmds/net-snmp-5.6.rc3/agent' make: *** [subdirs] Error 1 ---------------------------------------------------------------------- >Comment By: Holger (holgersk) Date: 2010-12-08 16:08 Message: Yes, this patch fixes it. Tested it on the 5.6 release code. Thanks, Holger ---------------------------------------------------------------------- Comment By: Niels Baggesen (nba) Date: 2010-12-08 13:04 Message: It seems this simple patch fixes it. Could you please try it? --- agent/mibgroup/agent_mibs.h (revision 19730) +++ agent/mibgroup/agent_mibs.h (working copy) @@ -1,6 +1,8 @@ config_require(agent/nsTransactionTable) config_require(agent/nsModuleTable) +#ifndef NETSNMP_NO_DEBUGGING config_require(agent/nsDebug) +#endif config_require(agent/nsCache) config_require(agent/nsLogging) config_require(agent/nsVacmAccessTable) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3074843&group_id=12694 |