[quagga-users 13342] quagga compiling error

张潇 zxforward at gmail.com
Fri Jul 26 16:06:35 BST 2013


Hi,
I'm trying to install quagga-0.99.22 on the FreeBSD on Emulab platform.
However, there are some errors when I am compiling the quagga. The
configure command is

./configure --enable-user=root --enable-group=root --disable-ipv6
--disable-babeld --prefix=/usr/local/qugga-0.99.22

The following is the error information when I type the 'make' command

make  all-recursive
Making all in lib
true
make  all-am
source='network.c' object='network.lo' libtool=yes  DEPDIR=.deps
depmode=gcc /bin/bash ../depcomp  /bin/bash ../libtool --tag=CC
 --mode=compile gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/usr/local/qugga-0.99.22/etc/\" -I. -I.. -I.. -I.. -I../lib
-I../lib     -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 -c -o network.lo
network.c
libtool: compile:  gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/usr/local/qugga-0.99.22/etc/\" -I. -I.. -I.. -I.. -I../lib
-I../lib -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 -c network.c
-Wp,-MD,.deps/network.TPlo
In file included from network.c:23:
zebra.h:122: warning: #warning "Not C99 and no va_copy macro available,
falling back to memcpy"
cc1: unknown C standard `gnu99'
In file included from /usr/include/unistd.h:41,
                 from zebra.h:40,
                 from network.c:23:
/usr/include/sys/types.h:80: warning: useless keyword or type name in empty
declaration
/usr/include/sys/types.h:80: warning: empty declaration
/usr/include/sys/types.h:83: warning: useless keyword or type name in empty
declaration
/usr/include/sys/types.h:83: warning: empty declaration
In file included from /usr/include/unistd.h:41,
                 from zebra.h:40,
                 from network.c:23:
/usr/include/sys/types.h:139: warning: useless keyword or type name in
empty declaration
/usr/include/sys/types.h:139: warning: empty declaration
In file included from zebra.h:47,
                 from network.c:23:
/usr/include/string.h:54: warning: conflicting types for built-in function
`memcmp'
/usr/include/string.h:55: warning: conflicting types for built-in function
`memcpy'
/usr/include/string.h:60: warning: conflicting types for built-in function
`strcmp'
/usr/include/string.h:62: warning: conflicting types for built-in function
`strcpy'
In file included from zebra.h:139,
                 from network.c:23:
/usr/include/sys/socket.h:54: conflicting types for `socklen_t'
zebra.h:37: previous declaration of `socklen_t'
In file included from zebra.h:153,
                 from network.c:23:
/usr/include/netinet/ip.h:73: field `ip_src' has incomplete type
/usr/include/netinet/ip.h:73: field `ip_dst' has incomplete type
/usr/include/netinet/ip.h:158: field `ipt_addr' has incomplete type
/usr/include/netinet/ip.h:194: field `ippseudo_src' has incomplete type
/usr/include/netinet/ip.h:195: field `ippseudo_dst' has incomplete type
In file included from zebra.h:187,
                 from network.c:23:
/usr/include/arpa/inet.h:89: warning: parameter has incomplete type
/usr/include/arpa/inet.h:92: warning: parameter has incomplete type
/usr/include/arpa/inet.h:96: warning: parameter has incomplete type
network.c: In function `set_nonblocking':
network.c:85: warning: passing arg 1 of `zlog_warn' discards qualifiers
from pointer target type
network.c:91: warning: passing arg 1 of `zlog_warn' discards qualifiers
from pointer target type
*** Error code 1

Stop in /users/dislab/quagga-0.99.22/lib.
*** Error code 1

Stop in /users/dislab/quagga-0.99.22/lib.
*** Error code 1

Stop in /users/dislab/quagga-0.99.22.
*** Error code 1

Stop in /users/dislab/quagga-0.99.22.


What is the cause of the compiling failure?

Any help is appreciated.
Thanks.

Xiao Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20130726/caa05660/attachment.html>


More information about the Quagga-users mailing list