关于交叉编译的问题
Quagga 0.99.14开源路由软件在centos本机编译通过,但在针对microblaze芯片petalinux系统编译中出现如下错误.交叉编译前已经成功生成makefile文件(如下),但编译过程中报错,不知道为什么.请赐教.
[centos@localhost quagga-0.99.14]$ ./configure --host=microblaze-uclinux --prefix=/tmp/huzhipeng
....
Quagga configuration
--------------------
quagga version : 0.99.14
host operationg system : uclinux
source code location : .
compiler : microblaze-uclinux-gcc
compiler flags : -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
make : make
includes :
linker flags : -lcrypt -lm
state file directory : /var/run
config file directory : /tmp/huzhipeng/etc
example directory : /tmp/huzhipeng/etc
user to run as : quagga
group to run as : quagga
group for vty sockets :
config file mask : 0600
log file mask : 0600
The above user and group must have read/write access to the state file
directory and to the config files in the config file directory.
[centos@localhost quagga-0.99.14]$ make
....
DMULTIPATH_NUM=1 -I. -I.. -I.. -I.. -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 if_ioctl.o -MD -MP -MF .deps/if_ioctl.Tpo -c -o if_ioctl.o if_ioctl.c
///////////下面是出错信息
if_ioctl.c:338: warning: no previous prototype for 'if_get_addr'
if_ioctl.c: In function `if_get_addr':
if_ioctl.c:392: error: structure has no member named `sin_addr'
if_ioctl.c:406: error: structure has no member named `sin_addr'
make[2]: *** [if_ioctl.o] Error 1
make[2]: Leaving directory `/home/centos/quagga-0.99.14/zebra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/centos/quagga-0.99.14'
make: *** [all] Error 2