[Xorp-users] Xorp compilation with SNMP

Atanu Ghosh atanu at ICSI.Berkeley.EDU
Mon Sep 17 07:58:03 PDT 2007


Hi,

XORP uses the Net-SNMP package (http://www.net-snmp.org/), try
building this first.

	 Atanu.

>>>>> "Frederic" == Frederic Gilloteau <Frederic.Gilloteau at alcatel.fr> writes:

    Frederic>    Hello,

    Frederic>    I got some errors trying to compile xorp with the snmp
    Frederic> module:

    Frederic>    (./configure --with-snmp --enable-shared)

    Frederic>    Could you please help me ?

    Frederic>    Thanks in advance

    Frederic>    Fred

    Frederic>    --

    Frederic>    Making install in snmpdscripts mkdir -p --
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/s
    Frederic> nmpdscripts /usr/bin/install -c getbgppeertable
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/s
    Frederic> nmpdscripts/getbgppeertable

    Frederic>     /usr/bin/install -c getbgpversion
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/s
    Frederic> nmpdscripts/getbgpversion

    Frederic>     /usr/bin/install -c startsnmp
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/s
    Frederic> nmpdscripts/startsnmp

    Frederic>     /usr/bin/install -c stopsnmp
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/s
    Frederic> nmpdscripts/stopsnmp

    Frederic>    Making install in tests /bin/sh ./libtool
    Frederic> --mode=install /usr/bin/install -c libnetsnmpxorp.la
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/.
    Frederic> /libnetsnmpxorp.la

    Frederic>    /usr/bin/install -c .libs/libnetsnmpxorp.so
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/.
    Frederic> /libnetsnmpxorp.so

    Frederic>    /usr/bin/install -c .libs/libnetsnmpxorp.lai
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/.
    Frederic> /libnetsnmpxorp.la

    Frederic>    libtool: install: warning: remember to run `libtool
    Frederic> --finish /usr/local/xorp/mibs/.'  /bin/sh ./libtool
    Frederic> --mode=install /usr/bin/install -c bgp4_mib_1657.la
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/.
    Frederic> /bgp4_mib_1657.la

    Frederic>    libtool: install: warning: relinking `bgp4_mib_1657.la'
    Frederic> cd /home/fgilloteau/DEV/TIERS/xorp/BUILD/xorp-1.4/mibs;
    Frederic> /bin/sh ./libtool --mode=relink g++ -pipe
    Frederic> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
    Frederic> -mtune=pentium4 -fasynchronous-unwind-tables
    Frederic> -DNETSNMP_NO_INLINE -g -W -Wall -Wwrite-strings
    Frederic> -Wcast-qual -Werror -Wpointer-arith -Wcast-align
    Frederic> -Woverloaded-virtual -ftemplate-depth-22 -pipe -o
    Frederic> bgp4_mib_1657.la -rpath /usr/local/xorp/mibs/. -module
    Frederic> -avoid-version bgp4_mib_1657.lo
    Frederic> bgp4_mib_1657_bgpversion.lo bgp4_mib_1657_bgplocalas.lo
    Frederic> bgp4_mib_1657_bgpidentifier.lo
    Frederic> bgp4_mib_1657_bgppeertable.lo
    Frederic> bgp4_mib_1657_bgp4pathattrtable.lo bgp4_mib_xrl_target.lo
    Frederic> ./libnetsnmpxorp.la ../xrl/targets/libbgp4mibbase.la
    Frederic> ../xrl/interfaces/libbgpxif.la -lcrypto

    Frederic>    g++ -shared bgp4_mib_1657.lo
    Frederic> bgp4_mib_1657_bgpversion.lo bgp4_mib_1657_bgplocalas.lo
    Frederic> bgp4_mib_1657_bgpidentifier.lo
    Frederic> bgp4_mib_1657_bgppeertable.lo
    Frederic> bgp4_mib_1657_bgp4pathattrtable.lo bgp4_mib_xrl_target.lo
    Frederic> -Wl,--whole-archive ../xrl/targets/.libs/libbgp4mibbase.al
    Frederic> ../xrl/interfaces/.libs/libbgpxif.al
    Frederic> -Wl,--no-whole-archive
    Frederic> -L/usr/local/xorp/mibs/. -lnetsnmpxorp
    Frederic> ../xrl/targets/.libs/libbgp4mibbase.al
    Frederic> ../xrl/interfaces/.libs/libbgpxif.al -lcrypto -Wl,-soname
    Frederic> -Wl,bgp4_mib_1657.so -o .libs/bgp4_mib_1657.so

    Frederic>    /usr/bin/ld: cannot find -lnetsnmpxorp collect2: ld
    Frederic> returned 1 exit status libtool: install: error: relink
    Frederic> `bgp4_mib_1657.la' with the above command before
    Frederic> installing it libtool: install: warning: remember to run
    Frederic> `libtool --finish /usr/local/xorp/mibs/.'

    Frederic>     /bin/sh ./libtool --mode=install /usr/bin/install -c
    Frederic> ospf_mib_1850.la
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/.
    Frederic> /ospf_mib_1850.la

    Frederic>    libtool: install: warning: relinking `ospf_mib_1850.la'
    Frederic> cd /home/fgilloteau/DEV/TIERS/xorp/BUILD/xorp-1.4/mibs;
    Frederic> /bin/sh ./libtool --mode=relink g++ -pipe
    Frederic> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
    Frederic> -mtune=pentium4 -fasynchronous-unwind-tables
    Frederic> -DNETSNMP_NO_INLINE -g -W -Wall -Wwrite-strings
    Frederic> -Wcast-qual -Werror -Wpointer-arith -Wcast-align
    Frederic> -Woverloaded-virtual -ftemplate-depth-22 -pipe -o
    Frederic> ospf_mib_1850.la -rpath /usr/local/xorp/mibs/. -module
    Frederic> -avoid-version ospf_mib_1850.lo ./libnetsnmpxorp.la
    Frederic> -lcrypto

    Frederic>    g++ -shared ospf_mib_1850.lo
    Frederic> -L/usr/local/xorp/mibs/. -lnetsnmpxorp -lcrypto
    Frederic> -Wl,-soname -Wl,ospf_mib_1850.so -o .libs/ospf_mib_1850.so

    Frederic>    /usr/bin/ld: cannot find -lnetsnmpxorp collect2: ld
    Frederic> returned 1 exit status libtool: install: error: relink
    Frederic> `ospf_mib_1850.la' with the above command before
    Frederic> installing it libtool: install: warning: remember to run
    Frederic> `libtool --finish /usr/local/xorp/mibs/.'

    Frederic>     /bin/sh ./libtool --mode=install /usr/bin/install -c
    Frederic> xorp_if_mib_module.la
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/.
    Frederic> /xorp_if_mib_module.la

    Frederic>    libtool: install: warning: relinking
    Frederic> `xorp_if_mib_module.la' cd
    Frederic> /home/fgilloteau/DEV/TIERS/xorp/BUILD/xorp-1.4/mibs;
    Frederic> /bin/sh ./libtool --mode=relink g++ -pipe
    Frederic> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
    Frederic> -mtune=pentium4 -fasynchronous-unwind-tables
    Frederic> -DNETSNMP_NO_INLINE -g -W -Wall -Wwrite-strings
    Frederic> -Wcast-qual -Werror -Wpointer-arith -Wcast-align
    Frederic> -Woverloaded-virtual -ftemplate-depth-22 -pipe -o
    Frederic> xorp_if_mib_module.la -rpath
    Frederic> /usr/local/xorp/mibs/. -module -avoid-version
    Frederic> xorp_if_mib_module.lo xorp_if_mib_xrl_target.lo
    Frederic> ./libnetsnmpxorp.la ../xrl/targets/libxorpifmibbase.la
    Frederic> -lcrypto

    Frederic>    g++ -shared xorp_if_mib_module.lo
    Frederic> xorp_if_mib_xrl_target.lo -Wl,--whole-archive
    Frederic> ../xrl/targets/.libs/libxorpifmibbase.al
    Frederic> -Wl,--no-whole-archive
    Frederic> -L/usr/local/xorp/mibs/. -lnetsnmpxorp
    Frederic> ../xrl/targets/.libs/libxorpifmibbase.al -lcrypto
    Frederic> -Wl,-soname -Wl,xorp_if_mib_module.so -o
    Frederic> .libs/xorp_if_mib_module.so

    Frederic>    /usr/bin/ld: cannot find -lnetsnmpxorp collect2: ld
    Frederic> returned 1 exit status libtool: install: error: relink
    Frederic> `xorp_if_mib_module.la' with the above command before
    Frederic> installing it libtool: install: warning: remember to run
    Frederic> `libtool --finish /usr/local/xorp/mibs/.'
    Frederic> _______________________________________________ Xorp-users
    Frederic> mailing list Xorp-users at xorp.org
    Frederic> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list