Compiling for IPv6

Ondrej Filip feela at network.cz
Fri May 28 16:07:45 CEST 2010


On 28.5.2010 11:51, Simone Morandini wrote:
> Hi all,
>
> I'd like to set up an IPv6 instance of BIRD for our members, but I'm
> having some troubles with "make".
> When I issue "./configure --enable-ipv6" everything goes fine, but the
> subsequent "make" at a certain poing gives these errors:
>
> [...]
> 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
> event.c: In function ‘ev_run_list’:
> ../lib/lists.c:132: warning: dereferencing pointer ‘({anonymous})’ does
> break strict-aliasing rules
> ../lib/lists.c:115: note: initialized from here
> gcc -I../ -I../.. -g -O2 -Wall -Wstrict-prototypes -Wno-parentheses
> -Wno-pointer-sign -o io.o -c io.c
> io.c: In function ‘sysio_process_rx_cmsgs’:
> io.c:704: error: dereferencing pointer to incomplete type
> io.c:705: error: dereferencing pointer to incomplete type
> io.c: In function ‘sk_read’:
> io.c:1380: error: invalid application of ‘sizeof’ to incomplete type
> ‘struct in6_pktinfo’
> make[2]: *** [io.o] Error 1
> make[2]: Leaving directory `/usr/local/src/bird-1.2.2/obj/lib'
> make[1]: *** [subdir] Error 2
> make[1]: Leaving directory `/usr/local/src/bird-1.2.2/obj'
> make: *** [all] Error 2
> [root at rs1 bird-1.2.2]#
>
>
> On the same machine BIRD compiles successfully without the v6 option. Am
> I missing something basic here?
> The box runs on a Fedora 12.

Hi Simone,
this is a known bug. It is fixed differently in current git
repository, but you can for example use my hot fix from Fedora RPMs.
(Attached).

			Ondrej


>
> Thanks a lot,
> Simone.
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bird-in.diff
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20100528/5a528a66/attachment-0001.diff>


More information about the Bird-users mailing list