[quagga-users 12397] Regarding quagga0.99.18 Cross Compilation

Ganesh Reddy K ganeshreddyk at gmail.com
Thu Aug 4 14:14:28 IST 2011


I am trying Cross Compilation of quagga0.99.18 for linux-ppc.  Without vtysh
binary, it is success with few modifications locally.

cd quagga-0.99.18/

sudo ./configure CC="powerpc-linux-gnu-gcc" --build=x86 --host=powerpc-linux
--includedir=/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
--libdir=/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/
CFLAGS=-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
LDFLAGS=-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
--enable-snmp --without-crypto -*-enable-vtysh* --enable-isisd
-enable-irdp=yes --with-libpam.


If vtysh is enabled during Configure script, it is expecting
libreadline.so.  Though  libreadline.so and libncurses libraries are
available at the LIBDIR path,   it is breaking @inking libreadline and
showing below error.

*Is anybody has done quagga with vtysh enabled crosscompiled for linux-PPC.
Please guide to me to progress further.*

Thanks in Advance,
Ganesh

=================================
nux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I. -I.. -I..
-I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_spf.o -MD -MP -MF .deps/isis_spf.Tpo -c -o isis_spf.o isis_spf.c
mv -f .deps/isis_spf.Tpo .deps/isis_spf.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_route.o -MD -MP -MF .deps/isis_route.Tpo -c -o isis_route.o
isis_route.c
mv -f .deps/isis_route.Tpo .deps/isis_route.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_routemap.o -MD -MP -MF .deps/isis_routemap.Tpo -c -o
isis_routemap.o isis_routemap.c
mv -f .deps/isis_routemap.Tpo .deps/isis_routemap.Po
rm -f libisis.a
ar cru libisis.a isis_adjacency.o isis_lsp.o dict.o isis_circuit.o
isis_pdu.o isis_tlv.o isisd.o isis_misc.o isis_zebra.o isis_dr.o
isis_flags.o isis_dynhn.o iso_checksum.o isis_csm.o isis_events.o isis_spf.o
isis_route.o isis_routemap.o
ranlib libisis.a
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_main.o -MD -MP -MF .deps/isis_main.Tpo -c -o isis_main.o
isis_main.c
mv -f .deps/isis_main.Tpo .deps/isis_main.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_bpf.o -MD -MP -MF .deps/isis_bpf.Tpo -c -o isis_bpf.o isis_bpf.c
mv -f .deps/isis_bpf.Tpo .deps/isis_bpf.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_dlpi.o -MD -MP -MF .deps/isis_dlpi.Tpo -c -o isis_dlpi.o
isis_dlpi.c
mv -f .deps/isis_dlpi.Tpo .deps/isis_dlpi.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I.. -I../lib    -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT isis_pfpacket.o -MD -MP -MF .deps/isis_pfpacket.Tpo -c -o
isis_pfpacket.o isis_pfpacket.c
mv -f .deps/isis_pfpacket.Tpo .deps/isis_pfpacket.Po
/bin/sh ../libtool --tag=CC   --mode=link powerpc-linux-gnu-gcc -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-pie
-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
-o isisd isis_main.o isis_adjacency.o isis_lsp.o dict.o isis_circuit.o
isis_pdu.o isis_tlv.o isisd.o isis_misc.o isis_zebra.o isis_dr.o
isis_flags.o isis_dynhn.o iso_checksum.o isis_csm.o isis_events.o isis_spf.o
isis_route.o isis_routemap.o isis_bpf.o isis_dlpi.o isis_pfpacket.o ../lib/
libzebra.la  -lcrypt   -lnetsnmp -lrt
libtool: link: powerpc-linux-gnu-gcc -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-pie -o .libs/isisd isis_main.o isis_adjacency.o isis_lsp.o dict.o
isis_circuit.o isis_pdu.o isis_tlv.o isisd.o isis_misc.o isis_zebra.o
isis_dr.o isis_flags.o isis_dynhn.o iso_checksum.o isis_csm.o isis_events.o
isis_spf.o isis_route.o isis_routemap.o isis_bpf.o isis_dlpi.o
isis_pfpacket.o
-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
../lib/.libs/libzebra.so -lcrypt
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libnetsnmp.so
-lrt -Wl,-rpath
-Wl,/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
make[3]: Leaving directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18/isisd'
make[2]: Leaving directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18/isisd'
Making all in watchquagga
make[2]: Entering directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18/watchquagga'
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSTATEDIR=\"/usr/local/var/\" -I.
-I.. -I.. -I../lib   -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT watchquagga.o -MD -MP -MF .deps/watchquagga.Tpo -c -o watchquagga.o
watchquagga.c
mv -f .deps/watchquagga.Tpo .deps/watchquagga.Po
/bin/sh ../libtool --tag=CC   --mode=link powerpc-linux-gnu-gcc -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-pie
-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
-o watchquagga watchquagga.o ../lib/libzebra.la  -lcrypt   -lnetsnmp -lrt
libtool: link: powerpc-linux-gnu-gcc -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-pie -o .libs/watchquagga watchquagga.o
-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
../lib/.libs/libzebra.so -lcrypt
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libnetsnmp.so
-lrt -Wl,-rpath
-Wl,/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
make[2]: Leaving directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18/watchquagga'
Making all in vtysh
make[2]: Entering directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18/vtysh'
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I../lib   -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT vtysh_main.o -MD -MP -MF .deps/vtysh_main.Tpo -c -o vtysh_main.o
vtysh_main.c
mv -f .deps/vtysh_main.Tpo .deps/vtysh_main.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I../lib   -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT vtysh.o -MD -MP -MF .deps/vtysh.Tpo -c -o vtysh.o vtysh.c
mv -f .deps/vtysh.Tpo .deps/vtysh.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I../lib   -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT vtysh_user.o -MD -MP -MF .deps/vtysh_user.Tpo -c -o vtysh_user.o
vtysh_user.c
mv -f .deps/vtysh_user.Tpo .deps/vtysh_user.Po
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I../lib   -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT vtysh_config.o -MD -MP -MF .deps/vtysh_config.Tpo -c -o vtysh_config.o
vtysh_config.c
mv -f .deps/vtysh_config.Tpo .deps/vtysh_config.Po
./extract.pl ../bgpd/*.c ../isisd/*.c ../ospfd/*.c ../ospf6d/*.c ../ripd/*.c
../ripngd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c
../lib/plist.c ../lib/distribute.c ../lib/if_rmap.c ../lib/vty.c
../zebra/debug.c ../zebra/interface.c ../zebra/irdp_interface.c
../zebra/rtadv.c ../zebra/zebra_vty.c ../zebra/zserv.c ../zebra/router-id.c
../zebra/zebra_routemap.c > vtysh_cmd.c
powerpc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -I.
-I.. -I.. -I../lib   -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-MT vtysh_cmd.o -MD -MP -MF .deps/vtysh_cmd.Tpo -c -o vtysh_cmd.o
vtysh_cmd.c
mv -f .deps/vtysh_cmd.Tpo .deps/vtysh_cmd.Po
/bin/sh ../libtool --tag=CC   --mode=link powerpc-linux-gnu-gcc -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-pie
-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
-o vtysh vtysh_main.o vtysh.o vtysh_user.o vtysh_config.o vtysh_cmd.o
../lib/libzebra.la   -lreadline -lcrypt   -lnetsnmp -lrt
libtool: link: powerpc-linux-gnu-gcc -fPIE
-I/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/usr/include
-pie -o .libs/vtysh vtysh_main.o vtysh.o vtysh_user.o vtysh_config.o
vtysh_cmd.o
-L/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
../lib/.libs/libzebra.so -lreadline -lcrypt
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libnetsnmp.so
-lrt -Wl,-rpath
-Wl,/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `PC'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `tgetflag'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `tgetent'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `UP'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `tputs'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `tgoto'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `tgetnum'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `BC'
/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libreadline.so:
undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[2]: *** [vtysh] Error 1
make[2]: Leaving directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18/vtysh'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/b36461/parvusprjct/netsnmp/ganesh/quagga-0.99.18'
make: *** [all] Error 2

=================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20110804/f45970bd/attachment.html>


More information about the Quagga-users mailing list