Hello to all,
I am trying to compile BIRD 1.3.1 only with bgp enabled since I am not
interested in the other protocols and I always act on a need-to-have basis.
The debug output attached is from the command on a Gentoo system:
( ./configure --with-protocols=bgp && make ) > debug.txt 2>&1
This is my system information:
Linux xxx.xxx.xxx 2.6.32.16 #1 SMP Sun Jul 25 21:32:42 UTC 2010 i686
Intel(R) Xeon(R) CPU 5130 @ 2.00GHz GenuineIntel GNU/Linux
And this is my gcc environment:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.4
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp
--disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5)
Note that this also happens on debian-wheezy when trying to configure the
source package and rebuild it, on a virtual machine (I can give the output
for that as well if needed) .
I thank you in advance for any suggestions and apologize if this has been
already answered.
-- Aris Lambrianidis
checking for gcc... gcc
checking for C compiler default output file name... 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 ISO C89... none needed
checking for library containing clock_gettime... -lrt
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking what CFLAGS should we use... -g -O2 -Wall -Wstrict-prototypes
-Wno-parentheses -Wno-pointer-sign
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for flex... flex
checking for bison... bison
checking for gm4... no
checking for m4... m4
checking Linux kernel version... VERSION: UTS_RELEASE
checking which OS configuration should we use... ./sysdep/cf/linux-22.h
checking system-dependent directories... sysdep/linux/netlink sysdep/linux
sysdep/unix lib
checking protocols... ok
checking for linux/rtnetlink.h... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking whether 'struct sockaddr' has sa_len... no
checking whether byte ordering is bigendian... no
checking for char... yes
checking size of char... 1
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for long int... yes
checking size of long int... 4
checking for 8-bit type... char
checking for 16-bit type... short int
checking for 32-bit type... int
checking usual alignment of structures... 8
checking characteristics of time_t... 32-bit signed
checking for struct ip_mreqn... yes
checking for add_history in -lhistory... yes
checking for tgetent in -lncurses... yes
checking for rl_callback_read_char in -lreadline... yes
checking for rl_crlf in -lreadline... yes
checking for rl_ding in -lreadline... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating obj/Makefile
config.status: creating obj/Rules
config.status: creating obj/sysdep/autoconf.h
config.status: obj/sysdep/autoconf.h is unchanged
config.status: executing merge commands
Merging system-dependent modules (sysdep/linux/netlink sysdep/linux sysdep/unix
lib)
BIRD was configured with the following options:
Source directory: .
Object directory: obj
Iproute2 directory: /etc/iproute2
System configuration: ./sysdep/cf/linux-22.h
Debugging: no
Routing protocols: bgp
Client: yes
make -C obj all
make[1]: Entering directory `/opt/bird-1.3.1/obj'
echo >sysdep/paths.h "/* Generated by Makefile, don't edit manually! */"
echo >>sysdep/paths.h "#define PATH_CONFIG_DIR \"/usr/local/etc\""
echo >>sysdep/paths.h "#define PATH_CONTROL_SOCKET_DIR \"/usr/local/var/run\""
if test -n "/etc/iproute2" ; then echo >>sysdep/paths.h "#define
PATH_IPROUTE_DIR \"/etc/iproute2\"" ; fi
make depend
make[2]: Entering directory `/opt/bird-1.3.1/obj'
mkdir -p nest filter proto/bgp client doc
touch .dir-stamp
set -e ; for a in lib conf ; do make -C $a depend ; done
make[3]: Entering directory `/opt/bird-1.3.1/obj/lib'
gcc -I../ -I../.. -MM bitops.c checksum.c event.c io.c ip.c ipv4.c krt.c
lists.c log.c main.c md5.c mempool.c netlink.c patmatch.c printf.c random.c
resource.c slab.c slists.c xmalloc.c >depend
make[3]: Leaving directory `/opt/bird-1.3.1/obj/lib'
make[3]: Entering directory `/opt/bird-1.3.1/obj/conf'
m4 -P ../../conf/gen_keywords.m4 ../../conf/confbase.Y
../../sysdep/unix/config.Y ../../sysdep/unix/krt.Y
../../sysdep/linux/netlink/netlink.Y ../../nest/config.Y ../../filter/config.Y
../../proto/bgp/config.Y >keywords.h
m4 -P ../../conf/gen_commands.m4 ../../client/cmds.m4 ../../conf/confbase.Y
../../sysdep/unix/config.Y ../../sysdep/unix/krt.Y
../../sysdep/linux/netlink/netlink.Y ../../nest/config.Y ../../filter/config.Y
../../proto/bgp/config.Y | sort >commands.h
m4 -P ../../conf/gen_parser.m4 ../../conf/confbase.Y ../../sysdep/unix/config.Y
../../sysdep/unix/krt.Y ../../sysdep/linux/netlink/netlink.Y
../../nest/config.Y ../../filter/config.Y ../../proto/bgp/config.Y >cf-parse.y
bison -bcf-parse -dv -pcf_ cf-parse.y
cf-parse.y: warning: 6 nonterminals useless in grammar
cf-parse.y: warning: 14 rules useless in grammar
cf-parse.y:143.14-21: warning: nonterminal useless in grammar: datetime
cf-parse.y:705.1-13: warning: nonterminal useless in grammar: password_list
cf-parse.y:706.18-31: warning: nonterminal useless in grammar: password_items
cf-parse.y:707.4-16: warning: nonterminal useless in grammar: password_item
cf-parse.y:716.5-23: warning: nonterminal useless in grammar:
password_item_begin
cf-parse.y:716.29-48: warning: nonterminal useless in grammar:
password_item_params
cf-parse.y:313.4-317.4: warning: rule useless in grammar: datetime: TEXT
cf-parse.y:706.4-35: warning: rule useless in grammar: password_list: PASSWORDS
'{' password_items '}'
cf-parse.y:707.4-16: warning: rule useless in grammar: password_list:
password_item
cf-parse.y:710.15: warning: rule useless in grammar: password_items: /* empty */
cf-parse.y:712.5-36: warning: rule useless in grammar: password_items:
password_item ';' password_items
cf-parse.y:716.5-52: warning: rule useless in grammar: password_item:
password_item_begin '{' password_item_params '}'
cf-parse.y:717.5-23: warning: rule useless in grammar: password_item:
password_item_begin
cf-parse.y:721.4-735.4: warning: rule useless in grammar: password_item_begin:
PASSWORD TEXT
cf-parse.y:739.16-18: warning: rule useless in grammar: password_item_params:
/* empty */
cf-parse.y:740.4-81: warning: rule useless in grammar: password_item_params:
GENERATE FROM datetime ';' password_item_params
cf-parse.y:741.4-77: warning: rule useless in grammar: password_item_params:
GENERATE TO datetime ';' password_item_params
cf-parse.y:742.4-79: warning: rule useless in grammar: password_item_params:
ACCEPT FROM datetime ';' password_item_params
cf-parse.y:743.4-75: warning: rule useless in grammar: password_item_params:
ACCEPT TO datetime ';' password_item_params
cf-parse.y:744.4-128: warning: rule useless in grammar: password_item_params:
ID expr ';' password_item_params
cf-parse.y: conflicts: 3 shift/reduce
flex -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l
gcc -I../ -I../.. -MM cf-parse.tab.c cf-lex.c conf.c >depend
make[3]: Leaving directory `/opt/bird-1.3.1/obj/conf'
set -e ; for a in nest filter proto/bgp client ; do make -C $a -f
/opt/bird-1.3.1/$a/Makefile depend ; done
make[3]: Entering directory `/opt/bird-1.3.1/obj/nest'
make[3]: `depend' is up to date.
make[3]: Leaving directory `/opt/bird-1.3.1/obj/nest'
make[3]: Entering directory `/opt/bird-1.3.1/obj/filter'
make[3]: `depend' is up to date.
make[3]: Leaving directory `/opt/bird-1.3.1/obj/filter'
make[3]: Entering directory `/opt/bird-1.3.1/obj/proto/bgp'
make[3]: `depend' is up to date.
make[3]: Leaving directory `/opt/bird-1.3.1/obj/proto/bgp'
make[3]: Entering directory `/opt/bird-1.3.1/obj/client'
make[3]: `depend' is up to date.
make[3]: Leaving directory `/opt/bird-1.3.1/obj/client'
make[2]: Leaving directory `/opt/bird-1.3.1/obj'
touch .dep-stamp
set -e ; for a in lib conf ; do make -C $a subdir ; done
make[2]: Entering directory `/opt/bird-1.3.1/obj/lib'
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o bitops.o -c bitops.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o checksum.o -c checksum.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o event.o -c event.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o io.o -c io.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o ip.o -c ip.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o ipv4.o -c ipv4.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o krt.o -c krt.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o lists.o -c lists.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o log.o -c log.c
log.c: In function mrt_dump_message:
log.c:369: warning: ignoring return value of write, declared with attribute
warn_unused_result
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o main.o -c main.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o md5.o -c md5.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o mempool.o -c mempool.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o netlink.o -c netlink.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o patmatch.o -c patmatch.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o printf.o -c printf.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o random.o -c random.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o resource.o -c resource.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o slab.o -c slab.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o slists.o -c slists.c
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o xmalloc.o -c xmalloc.c
rm -f birdlib.a
ar rcs birdlib.a bitops.o checksum.o event.o io.o ip.o ipv4.o krt.o lists.o
log.o main.o md5.o mempool.o netlink.o patmatch.o printf.o random.o resource.o
slab.o slists.o xmalloc.o
ranlib birdlib.a
make[2]: Leaving directory `/opt/bird-1.3.1/obj/lib'
make[2]: Entering directory `/opt/bird-1.3.1/obj/conf'
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o cf-parse.tab.o -c cf-parse.tab.c
cf-parse.y:49: warning: this_p_item defined but not used
cf-parse.y:50: warning: password_id defined but not used
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o cf-lex.o -c cf-lex.c
cf-lex.c:1891: warning: yy_fatal_error defined but not used
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o conf.o -c conf.c
gcc -nostdlib -r -o all.o cf-parse.tab.o cf-lex.o conf.o
make[2]: Leaving directory `/opt/bird-1.3.1/obj/conf'
set -e ; for a in nest filter proto/bgp client ; do make -C $a -f
/opt/bird-1.3.1/$a/Makefile subdir ; done
make[2]: Entering directory `/opt/bird-1.3.1/obj/nest'
gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
-Wno-pointer-sign -o rt-table.o -c ../../nest/rt-table.c
../../nest/rt-table.c: In function rt_get_igp_metric:
../../nest/rt-table.c:1492: error: union <anonymous> has no member named
ospf
../../nest/rt-table.c:1495: error: union <anonymous> has no member named rip
make[2]: *** [rt-table.o] Error 1
make[2]: Leaving directory `/opt/bird-1.3.1/obj/nest'
make[1]: *** [subdir] Error 2
make[1]: Leaving directory `/opt/bird-1.3.1/obj'
make: *** [all] Error 2