bug-zebra
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems building quagga


From: Scott Reese
Subject: Problems building quagga
Date: Fri, 30 Jan 2004 12:57:54 -0500

Greetings:

I am attempting to build quagga.  Both 0.96.3 and 0.96.4 give me the
same errors during make.

System: Gentoo Linux 1.4
Kernel: Linux ihpsrv06 2.4.22-gentoo-r5 #1 Fri Jan 16 12:16:41 EST 2004
i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
GLibc: 2.3.2
GCC: 
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/configure 
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include 
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man 
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib 
--enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long 
--disable-checking --enable-cstdio=stdio --enable-clocale=generic 
--enable-__cxa_atexit --enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls 
--without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)


Configure command:
./configure --disable-ipv6 --disable-ospfd --disable-ospf6d --disable-bgpd \
  --enable-snmp --sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \
  --enable-user=quagga --enable-group=quagga

Configure output:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for ar... ar
checking for ranlib... ranlib
checking for egrep... grep -E
checking for AIX... no
checking Should zebra's RTADV be used... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/conf.h usability... no
checking sys/conf.h presence... no
checking for sys/conf.h... no
checking sys/ksym.h usability... no
checking sys/ksym.h presence... no
checking for sys/ksym.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/types.h... (cached) yes
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking kvm.h usability... no
checking kvm.h presence... no
checking for kvm.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/netopt.h usability... no
checking net/netopt.h presence... no
checking for net/netopt.h... no
checking inet/nd.h usability... no
checking inet/nd.h presence... no
checking for inet/nd.h... no
checking net/route.h usability... yes
checking net/route.h presence... yes
checking for net/route.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_var.h usability... no
checking net/if_var.h presence... no
checking for net/if_var.h... no
checking netinet/in_var.h usability... no
checking netinet/in_var.h presence... no
checking for netinet/in_var.h... no
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking whether byte ordering is bigendian... no
checking for memset... yes
checking for memcpy... yes
checking for strerror... yes
checking for inet_aton... yes
checking for daemon... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strlcat... no
checking for strlcpy... no
checking for if_nametoindex... yes
checking for if_indextoname... yes
checking for getifaddrs... yes
checking for fcntl... yes
checking for setproctitle... no
checking for setproctitle in -lutil... no
checking zebra between kernel interface method... netlink
checking route read method check... netlink
checking interface looking up method... netlink
checking ipforward method check... proc
checking for getaddrinfo... yes
checking whether does this OS have IPv6 stack... disabled
checking for inet_ntop in -lc... yes
checking for inet_pton in -lc... yes
checking for crypt in -lcrypt... yes
checking for res_init in -lresolv... no
checking for main in -lm... yes
checking for __inet_ntop... no
checking for __inet_pton... no
checking for __inet_aton... no
checking for regexec in -lc... yes
checking for main in -lcrypto... yes
checking for asn_parse_int in -lnetsnmp... yes
checking whether struct sockaddr has a sa_len field... no
checking whether struct sockaddr_in has a sin_len field... no
checking whether struct sockaddr_un has a sun_len field... no
checking whther socklen_t is defined... yes
checking whether struct sockaddr_dl exist... no
checking whether struct ifaliasreq exist... no
checking whether struct in6_aliasreq exist... no
checking whether in6_aliasreq.ifra_lifetime exist... no
checking whether struct rt_addrinfo exist... no
checking whether struct in_pktinfo exist... yes
checking whether getrusage is available... yes
checking whether prctl PR_SET_KEEPCAPS is available... yes
checking sys/capability.h usability... yes
checking sys/capability.h presence... yes
checking for sys/capability.h... yes
checking for cap_init in -lcap... yes
checking directory to use for state file... /var/run/quagga
checking for working htonl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating zebra/Makefile
config.status: creating ripd/Makefile
config.status: creating ripngd/Makefile
config.status: creating bgpd/Makefile
config.status: creating ospfd/Makefile
config.status: creating ospf6d/Makefile
config.status: creating vtysh/Makefile
config.status: creating doc/Makefile
config.status: creating ospfclient/Makefile
config.status: creating redhat/quagga.spec
config.status: creating lib/version.h
config.status: creating config.h
config.status: executing depfiles commands
 
zebra configuration
-------------------
quagga version           : 0.96.4
host operationg system  : linux-gnu
source code location    : .
compiler                : gcc
compiler flags          : -g -O2 -Wall -I/usr/include/net-snmp 
-I/usr/include/net-snmp/library
linker flags            :  -lm -lcrypt  -lnetsnmp -lcrypto
state file directory    : /var/run/quagga
config file directory   : /etc/quagga
user to run as          : quagga
group to run as         : quagga
group for vty sockets   :
 
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.
                                                                                
                              
Make output:
make  all-recursive
make[1]: Entering directory `/usr/src/quagga-0.96.4'
Making all in lib
make[2]: Entering directory `/usr/src/quagga-0.96.4/lib'
echo '' >version.c
echo 'char *host_name = "";' >>version.c
source='version.c' object='version.o' libtool=no \
depfile='.deps/version.Po' tmpdepfile='.deps/version.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I. -I.. -I.. -I.. 
-I../lib    -g -O2 -Wall -I/usr/include/net-snmp 
-I/usr/include/net-snmp/library -c `test -f 'version.c' || echo './'`version.c
source='network.c' object='network.o' libtool=no \
depfile='.deps/network.Po' tmpdepfile='.deps/network.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I. -I.. -I.. -I.. 
-I../lib    -g -O2 -Wall -I/usr/include/net-snmp 
-I/usr/include/net-snmp/library -c `test -f 'network.c' || echo './'`network.c
In file included from /usr/include/linux/vfs.h:4,
                 from /usr/include/linux/fs.h:14,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/sys/capability.h:35,
                 from zebra.h:101,
                 from network.c:23:
/usr/include/asm/statfs.h:20: parse error before "__kernel_fsid_t"
/usr/include/asm/statfs.h:23: parse error before '}' token
make[2]: *** [network.o] Error 1
make[2]: Leaving directory `/usr/src/quagga-0.96.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/quagga-0.96.4'
make: *** [all] Error 2


Contents of /usr/include/asm/statfs.h:
#ifndef _I386_STATFS_H
#define _I386_STATFS_H
 
#ifndef __KERNEL_STRICT_NAMES
 
#include <linux/types.h>
 
typedef __kernel_fsid_t fsid_t;
 
#endif
 
struct statfs {
        long f_type;
        long f_bsize;
        long f_blocks;
        long f_bfree;
        long f_bavail;
        long f_files;
        long f_ffree;
        __kernel_fsid_t f_fsid;
        long f_namelen;
        long f_spare[6];
};
 
#endif

-- 
Scott Reese
Director of Information Systems
Indiana Heart Physicians
(317)781-8286





reply via email to

[Prev in Thread] Current Thread [Next in Thread]