Hi,
I'm trying to install zebra-0.95a on Linux(Red_Hat_Linux 6.3) box with pure
IPV6 stack(means no IPv4) and facing compilation issues while running 'make'
command.
i.e I'm using: "Linux IPv6 stack for GNU/Linux 2.2.x and higher" as its said to
be supported on Zebra.
Here is what I tried:
1) Downloaded zebra(zebra-0.95a.tar.gz) from
http://ftp.sunet.se/pub/network/zebra/
2) Copied it to Linux home directory and extracted there.
3) Executed the below command zebra-0.95a/ folder:
./configure -prefix=
/osszoneuser/osszone/user/test/Live_simulators/zebra (as I want to install it
in this directory and not in default).
make
I get the below error upon running 'make' command(also attached the full
trace), hence installation isn't successful on pure IPV6 stack, though the same
steps succeeds on IPv4 stack.
rtadv.c: In function ârtadv_recv_packetâ:
rtadv.c:123: error: dereferencing pointer to incomplete type
rtadv.c:124: error: dereferencing pointer to incomplete type
rtadv.c:124: error: dereferencing pointer to incomplete type
rtadv.c:130: warning: dereferencing type-punned pointer will break
strict-aliasing rules
rtadv.c: In function ârtadv_send_packetâ:
rtadv.c:149: error: invalid application of âsizeofâ to incomplete type âstruct
in6_pktinfoâ
rtadv.c:194: warning: operation on ânodeâ may be undefined
rtadv.c:268: error: dereferencing pointer to incomplete type
rtadv.c:269: error: dereferencing pointer to incomplete type
rtadv.c: In function ârtadv_prefix_lookupâ:
rtadv.c:476: warning: operation on ânodeâ may be undefined
rtadv.c: In function ârtadv_config_writeâ:
rtadv.c:977: warning: operation on ânodeâ may be undefined
rtadv.c:982: warning: pointer targets in passing argument 3 of âinet_ntopâ
differ in signedness
/usr/include/arpa/inet.h:65: note: expected âchar * __restrict__â but argument
is of type âu_char *â
make[2]: *** [rtadv.o] Error 1
make[2]: Leaving directory
`/osszoneuser/osszone/user/test/Live_simulators/zebra/zebra-0.95a/zebra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/osszoneuser/osszone/user/test/Live_simulators/zebra/zebra-0.95a'
make: *** [all] Error 2
Here is the results of running 'netstat -rn' :
[test@indlin981 zebra-0.95a]$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
Here is the results of running 'ifconfig -a':
[test@indlin981 zebra-0.95a]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:8A:62:67
inet6 addr: a44:d0c5:0:2101::a13:f512/64 Scope:Global
inet6 addr: fe80::250:56ff:fe8a:6267/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1859284 errors:0 dropped:0 overruns:0 frame:0
TX packets:2066983 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:378173273 (360.6 MiB) TX bytes:229367289 (218.7 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5635 errors:0 dropped:0 overruns:0 frame:0
TX packets:5635 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7546052 (7.1 MiB) TX bytes:7546052 (7.1 MiB)
Thanks,
Saurabh Deshmukh
Dev Expert-Focus Master
PBG-OSS
+91 40154784 (office)
AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
connected.c: In function âconnected_check_ipv4â:
connected.c:43: warning: operation on ânodeâ may be undefined
connected.c: In function âconnected_check_ipv6â:
connected.c:225: warning: operation on ânodeâ may be undefined
source='ioctl.c' object='ioctl.o' libtool=no \
depfile='.deps/ioctl.Po' tmpdepfile='.deps/ioctl.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/osszoneuser/osszone/user/test/Live_simulators/zebra/etc/\"
-DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -g -O2 -Wall -c `test -f
'ioctl.c' || echo './'`ioctl.c
source='zebra_rib.c' object='zebra_rib.o' libtool=no \
depfile='.deps/zebra_rib.Po' tmpdepfile='.deps/zebra_rib.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/osszoneuser/osszone/user/test/Live_simulators/zebra/etc/\"
-DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -g -O2 -Wall -c `test -f
'zebra_rib.c' || echo './'`zebra_rib.c
source='redistribute.c' object='redistribute.o' libtool=no \
depfile='.deps/redistribute.Po' tmpdepfile='.deps/redistribute.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/osszoneuser/osszone/user/test/Live_simulators/zebra/etc/\"
-DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -g -O2 -Wall -c `test -f
'redistribute.c' || echo './'`redistribute.c
source='debug.c' object='debug.o' libtool=no \
depfile='.deps/debug.Po' tmpdepfile='.deps/debug.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/osszoneuser/osszone/user/test/Live_simulators/zebra/etc/\"
-DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -g -O2 -Wall -c `test -f
'debug.c' || echo './'`debug.c
source='rtadv.c' object='rtadv.o' libtool=no \
depfile='.deps/rtadv.Po' tmpdepfile='.deps/rtadv.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H
-DSYSCONFDIR=\"/osszoneuser/osszone/user/test/Live_simulators/zebra/etc/\"
-DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -g -O2 -Wall -c `test -f
'rtadv.c' || echo './'`rtadv.c
rtadv.c: In function ârtadv_recv_packetâ:
rtadv.c:123: error: dereferencing pointer to incomplete type
rtadv.c:124: error: dereferencing pointer to incomplete type
rtadv.c:124: error: dereferencing pointer to incomplete type
rtadv.c:130: warning: dereferencing type-punned pointer will break
strict-aliasing rules
rtadv.c: In function ârtadv_send_packetâ:
rtadv.c:149: error: invalid application of âsizeofâ to incomplete type âstruct
in6_pktinfoâ
rtadv.c:194: warning: operation on ânodeâ may be undefined
rtadv.c:268: error: dereferencing pointer to incomplete type
rtadv.c:269: error: dereferencing pointer to incomplete type
rtadv.c: In function ârtadv_prefix_lookupâ:
rtadv.c:476: warning: operation on ânodeâ may be undefined
rtadv.c: In function ârtadv_config_writeâ:
rtadv.c:977: warning: operation on ânodeâ may be undefined
rtadv.c:982: warning: pointer targets in passing argument 3 of âinet_ntopâ
differ in signedness
/usr/include/arpa/inet.h:65: note: expected âchar * __restrict__â but argument
is of type âu_char *â
make[2]: *** [rtadv.o] Error 1
make[2]: Leaving directory
`/osszoneuser/osszone/user/test/Live_simulators/zebra/zebra-0.95a/zebra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/osszoneuser/osszone/user/test/Live_simulators/zebra/zebra-0.95a'
make: *** [all] Error 2
[test@indlin981 zebra-0.95a]$