[Xorp-users] Xorp compilation with SNMP

Frederic Gilloteau Frederic.Gilloteau at alcatel.fr
Mon Sep 17 03:20:32 PDT 2007


Hello,

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

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

Could you please help me ?

Thanks in advance

Fred

--

Making install in snmpdscripts
mkdir -p --
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/snmpdsc
ripts
 /usr/bin/install -c getbgppeertable
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/snmpdsc
ripts/getbgppeertable
 /usr/bin/install -c getbgpversion
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/snmpdsc
ripts/getbgpversion
 /usr/bin/install -c startsnmp
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/snmpdsc
ripts/startsnmp
 /usr/bin/install -c stopsnmp
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/snmpdsc
ripts/stopsnmp
Making install in tests
 /bin/sh ./libtool --mode=install /usr/bin/install -c  libnetsnmpxorp.la
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/./libne
tsnmpxorp.la
/usr/bin/install -c .libs/libnetsnmpxorp.so
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/./libne
tsnmpxorp.so
/usr/bin/install -c .libs/libnetsnmpxorp.lai
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/./libne
tsnmpxorp.la
libtool: install: warning: remember to run `libtool --finish
/usr/local/xorp/mibs/.'
 /bin/sh ./libtool --mode=install /usr/bin/install -c  bgp4_mib_1657.la
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/./bgp4_
mib_1657.la

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

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

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

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

 /bin/sh ./libtool --mode=install /usr/bin/install -c  xorp_if_mib_module.la
/home/fgilloteau/DEV/TIERS/xorp/TMP/xorp-1.4-0.1-root/usr/local/xorp/./xorp_
if_mib_module.la
libtool: install: warning: relinking `xorp_if_mib_module.la'
cd /home/fgilloteau/DEV/TIERS/xorp/BUILD/xorp-1.4/mibs; /bin/sh ./libtool
--mode=relink g++ -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DNETSNMP_NO_INLINE
-g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith -Wcast-align
-Woverloaded-virtual -ftemplate-depth-22 -pipe -o xorp_if_mib_module.la
-rpath /usr/local/xorp/mibs/. -module -avoid-version xorp_if_mib_module.lo
xorp_if_mib_xrl_target.lo ./libnetsnmpxorp.la
../xrl/targets/libxorpifmibbase.la -lcrypto
g++ -shared   xorp_if_mib_module.lo xorp_if_mib_xrl_target.lo
-Wl,--whole-archive ../xrl/targets/.libs/libxorpifmibbase.al
-Wl,--no-whole-archive  -L/usr/local/xorp/mibs/. -lnetsnmpxorp
../xrl/targets/.libs/libxorpifmibbase.al -lcrypto  -Wl,-soname
-Wl,xorp_if_mib_module.so -o .libs/xorp_if_mib_module.so

/usr/bin/ld: cannot find -lnetsnmpxorp
collect2: ld returned 1 exit status
libtool: install: error: relink `xorp_if_mib_module.la' with the above
command before installing it
libtool: install: warning: remember to run `libtool --finish
/usr/local/xorp/mibs/.'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20070917/318ec2ab/attachment.html 


More information about the Xorp-users mailing list