LINUX.ORG.RU

quagga ошибка компиляции

 , , ,


1

1
root@srv:/usr/src/quagga-0.99.23.1# make
make  all-recursive
make[1]: Entering directory `/usr/src/quagga-0.99.23.1'
Making all in lib
make[2]: Entering directory `/usr/src/quagga-0.99.23.1/lib'
true
make  all-am
make[3]: Entering directory `/usr/src/quagga-0.99.23.1/lib'
make[3]: Цель `all-am' не требует выполнения команд.
make[3]: Leaving directory `/usr/src/quagga-0.99.23.1/lib'
make[2]: Leaving directory `/usr/src/quagga-0.99.23.1/lib'
Making all in zebra
make[2]: Entering directory `/usr/src/quagga-0.99.23.1/zebra'
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I.. -I.. -I.. -I../lib -I../lib   -fPIE -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT ipforward_sysctl.o -MD -MP -MF .deps/ipforward_sysctl.Tpo -c -o ipforward_sysctl.o ipforward_sysctl.c
ipforward_sysctl.c:42:3: error: ‘IPCTL_FORWARDING’ undeclared here (not in a function)
make[2]: *** [ipforward_sysctl.o] Ошибка 1
make[2]: Leaving directory `/usr/src/quagga-0.99.23.1/zebra'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/src/quagga-0.99.23.1'
make: *** [all] Ошибка 2
root@srv:/usr/src/quagga-0.99.23.1# make
make  all-recursive
make[1]: Entering directory `/usr/src/quagga-0.99.23.1'
Making all in lib
make[2]: Entering directory `/usr/src/quagga-0.99.23.1/lib'
true
make  all-am
make[3]: Entering directory `/usr/src/quagga-0.99.23.1/lib'
make[3]: Цель `all-am' не требует выполнения команд.
make[3]: Leaving directory `/usr/src/quagga-0.99.23.1/lib'
make[2]: Leaving directory `/usr/src/quagga-0.99.23.1/lib'
Making all in zebra
make[2]: Entering directory `/usr/src/quagga-0.99.23.1/zebra'
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I.. -I.. -I.. -I../lib -I../lib   -fPIE -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT ipforward_sysctl.o -MD -MP -MF .deps/ipforward_sysctl.Tpo -c -o ipforward_sysctl.o ipforward_sysctl.c
ipforward_sysctl.c:42:3: error: ‘IPCTL_FORWARDING’ undeclared here (not in a function)
make[2]: *** [ipforward_sysctl.o] Ошибка 1
make[2]: Leaving directory `/usr/src/quagga-0.99.23.1/zebra'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/src/quagga-0.99.23.1'
make: *** [all] Ошибка 2
root@srv:/usr/src/quagga-0.99.23.1#
★★★★★

sudo apt-get install quagga

И больше никогда не ставь проги в обход пакетного менеджера

yura_ts ★★ ()
Последнее исправление: yura_ts (всего исправлений: 1)

эту исправил, но появилась другая:

/bin/bash ../libtool  --tag=CC   --mode=link gcc -fPIE -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -pie -rdynamic -o zebra zserv.o main.o interface.o connected.o zebra_rib.o zebra_routemap.o redistribute.o debug.o rtadv.o zebra_snmp.o zebra_vty.o irdp_main.o irdp_interface.o irdp_packet.o router-id.o zebra_fpm.o zebra_fpm_netlink.o ioctl.o ipforward_proc.o if_netlink.o  rt_netlink.o rtread_netlink.o   ../lib/libzebra.la   -lcrypt   -lrt
libtool: link: gcc -fPIE -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -pie -rdynamic -o .libs/zebra zserv.o main.o interface.o connected.o zebra_rib.o zebra_routemap.o redistribute.o debug.o rtadv.o zebra_snmp.o zebra_vty.o irdp_main.o irdp_interface.o irdp_packet.o router-id.o zebra_fpm.o zebra_fpm_netlink.o ioctl.o ipforward_proc.o if_netlink.o rt_netlink.o rtread_netlink.o  ../lib/.libs/libzebra.so -lcrypt -lrt
interface.o: In function `if_addr_wakeup':
/usr/src/quagga-0.99.23.1/zebra/interface.c:346: undefined reference to `if_prefix_add_ipv6'
interface.o: In function `ipv6_address_uninstall':
/usr/src/quagga-0.99.23.1/zebra/interface.c:1511: undefined reference to `if_prefix_delete_ipv6'
interface.o: In function `ipv6_address_install':
/usr/src/quagga-0.99.23.1/zebra/interface.c:1453: undefined reference to `if_prefix_add_ipv6'
collect2: error: ld returned 1 exit status
make[2]: *** [zebra] Ошибка 1
make[2]: Leaving directory `/usr/src/quagga-0.99.23.1/zebra'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/src/quagga-0.99.23.1'
make: *** [all] Ошибка 2

ne-vlezay ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.