[Xorp-hackers] compiling error in Fedora 2

Pavlin Radoslavov pavlin@icir.org
Wed, 25 Aug 2004 14:09:58 -0700


> Add the net-snmp source code directory into your search path so that
> you can run net-snmp-config.
> 
> Also the where-is-your-net-snmp/include is not in the -I...
> list during compilation.

It appears that the net-snmp pre-compiled distribution on Fedora
doesn't contain net-snmp-config nor any .h header files.
Hence, for the time being you have the following three options:

(1) Install net-snmp from source rather than from RPM.
(2) Run "./configure --without-snmp" to disable the SNMP compilation.
(3) Do nothing :)
    The "mibs" directory is the last in the list of directories to
    compile, hence even if the compilation in that directory fails,
    the rest of the system is not affected.


Regards,
Pavlin

> 
> thanks,
> Daniel
> 
> Liang Qin wrote:
> 
> > Hi XORP users,
> >
> > I got an error when I compile XORP 1.0 in Fedora core 2 (kernel 
> > 2.6.5-1.358)
> >
> > I attach part of message here.
> >
> > Thanks!
> >
> > Liang Qin
> >
> >
> >------------------------------------------------------------------------
> >
> >/bin/sh: line 1: net-snmp-config: command not found
> >bgp4_mib_1657.cc:18:38: net-snmp/net-snmp-config.h: No such file or directory
> >bgp4_mib_1657.cc:19:40: net-snmp/net-snmp-includes.h: No such file or directory
> >bgp4_mib_1657.cc:20:52: net-snmp/agent/net-snmp-agent-includes.h: No such file or directory
> >In file included from bgp4_mib_1657.cc:28:
> >bgp4_mib_1657_bgpversion.hh:27: error: 'Netsnmp_Node_Handler' is used as a
> >   type, but is not defined as a type.
> >In file included from bgp4_mib_1657.cc:29:
> >bgp4_mib_1657_bgplocalas.hh:27: error: 'Netsnmp_Node_Handler' is used as a
> >   type, but is not defined as a type.
> >In file included from bgp4_mib_1657.cc:30:
> >bgp4_mib_1657_bgpidentifier.hh:25: error: 'Netsnmp_Node_Handler' is used as a
> >   type, but is not defined as a type.
> >In file included from bgp4_mib_1657.cc:31:
> >bgp4_mib_1657_bgppeertable.hh:22: error: 'Netsnmp_Node_Handler' is used as a
> >   type, but is not defined as a type.
> >bgp4_mib_1657_bgppeertable.hh:24: error: 'Netsnmp_First_Data_Point' is used as
> >   a type, but is not defined as a type.
> >bgp4_mib_1657_bgppeertable.hh:25: error: 'Netsnmp_Next_Data_Point' is used as a
> >   type, but is not defined as a type.
> >In file included from bgp4_mib_1657.cc:32:
> >bgp4_mib_1657_bgp4pathattrtable.hh:26:38: net-snmp/net-snmp-config.h: No such file or directory
> >In file included from bgp4_mib_1657_bgp4pathattrtable.hh:31,
> >                 from bgp4_mib_1657.cc:32:
> >patched_container.h:12:2: #error "Please include <net-snmp/net-snmp-config.h> before this file"
> >patched_container.h:15:28: net-snmp/types.h: No such file or directory
> >patched_container.h:16:38: net-snmp/library/factory.h: No such file or directory
> >In file included from bgp4_mib_1657_bgp4pathattrtable.hh:31,
> >                 from bgp4_mib_1657.cc:32:
> >patched_container.h:76: error: syntax error before `*' token
> >patched_container.h:149: error: syntax error before `*' token
> >patched_container.h:193: error: type specifier omitted for parameter `
> >   netsnmp_factory'
> >patched_container.h:193: error: syntax error before `*' token
> >patched_container.h:382: error: syntax error before `*' token
> >patched_container.h:391: error: type specifier omitted for parameter `
> >   netsnmp_container_set'
> >patched_container.h:391: error: syntax error before `*' token
> >In file included from bgp4_mib_1657.cc:32:
> >bgp4_mib_1657_bgp4pathattrtable.hh:34:40: net-snmp/agent/table_array.h: No such file or directory
> >In file included from bgp4_mib_1657.cc:32:
> >bgp4_mib_1657_bgp4pathattrtable.hh:51: error: syntax error before `[' token
> >bgp4_mib_1657.cc: In function `void init_bgp4_mib_1657()':
> >bgp4_mib_1657.cc:42: error: `DEBUGMSGTL' undeclared (first use this function)
> >bgp4_mib_1657.cc:42: error: (Each undeclared identifier is reported only once
> >   for each function it appears in.)
> >bgp4_mib_1657.cc: In function `void deinit_bgp4_mib_1657()':
> >bgp4_mib_1657.cc:67: error: `DEBUGMSGTL' undeclared (first use this function)
> >bgp4_mib_1657.cc: In constructor `BgpMib::BgpMib()':
> >bgp4_mib_1657.cc:83: warning: left-hand operand of comma expression has no
> >   effect
> >bgp4_mib_1657.cc:83: error: `DEBUGMSGTL' undeclared (first use this function)
> >bgp4_mib_1657.cc: In destructor `virtual BgpMib::~BgpMib()':
> >bgp4_mib_1657.cc:88: warning: left-hand operand of comma expression has no
> >   effect
> >bgp4_mib_1657.cc:88: error: `DEBUGMSGTL' undeclared (first use this function)
> >gmake[3]: *** [bgp4_mib_1657.o] Error 1
> >gmake[3]: Leaving directory `/home/lqin/xorp-1.0/mibs'
> >gmake[2]: *** [all-recursive] Error 1
> >gmake[2]: Leaving directory `/home/lqin/xorp-1.0/mibs'
> >gmake[1]: *** [all-recursive] Error 1
> >gmake[1]: Leaving directory `/home/lqin/xorp-1.0'
> >gmake: *** [all] Error 2
> >You have new mail in /var/spool/mail/root
> >[root@localhost xorp-1.0]#
> >
> 
> 
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers@icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers