[mpls-linux-general] Re: patching ldp .800 in Quagga-0.96.4 : compilation problem
Status: Beta
Brought to you by:
jleu
|
From: Saravanan S. A. <sas...@gm...> - 2004-10-25 11:20:34
|
Hi All, I guess I have found the problem. Please correct me, if I am wrong. In some places, the macro HAVE_IPV6 is not checked and in some places it's checked. Due to this some of the data structures are not declared but are used in the code (ex, prefix6) and hence the compilation problem. I manually put #ifdef HAVE_IPV6 and could compile. Regards, Sas. On Mon, 25 Oct 2004 15:33:47 +0530, Saravanan Shanmugasundaram Arunachalam <sas...@gm...> wrote: > I saw a related thread in the archive and thought 'update-autotools' > might help me. But after running update-autotools, configure and > during make, I got the following errors: > > make all-recursive > make[1]: Entering directory `$QUAGGA' > Making all in lib > make[2]: Entering directory `$QUAGGA/lib' > echo '' >version.c > echo 'char *host_name = "";' >>version.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"$QUAGGE/etc/\" -I.. -I.. -I../lib > -g -O2 -Wall -c version.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"$QUAGGE/etc/\" -I.. -I.. -I../lib > -g -O2 -Wall -c zmpls.c > zmpls.c: In function `mpls_out_segment_stream_write': > zmpls.c:178: error: union has no member named `prefix6' > zmpls.c: In function `mpls_out_segment_stream_read': > zmpls.c:207: error: union has no member named `prefix6' > make[2]: *** [zmpls.o] Error 1 > make[2]: Leaving directory `$QUAGGA/lib' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `$QUAGGA' > make: *** [all-recursive-am] Error 2 > > Any help is appreciated. > > Thanks, > Sas > > > > On Mon, 25 Oct 2004 15:18:13 +0530, Saravanan Shanmugasundaram > Arunachalam <sas...@gm...> wrote: > > Hi, > > > > I am facing a compilation problem after patching quagga.0.96.4 with > > ldp-portable 0.800. > > > > The patch command I used is > > [sas:]/.../quagga> patch -p1 < $LDP_PATH/quagga-mpls.diff > > > > and then I modified the create_links and executed as mentioned. Then I have done > > ./configure and make. During 'make' I am facing the following problem: > > > > make[2]: Entering directory `$QUAGGA/zebra' > > source='zserv.c' object='zserv.o' libtool=no \ > > depfile='.deps/zserv.Po' tmpdepfile='.deps/zserv.TPo' \ > > depmode=gcc3 /bin/sh ../depcomp \ > > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 > > -I. -I. -I.. -I.. -I.. -I../lib -g -O2 -Wall -c `test -f 'zserv.c' > > || echo './'`zserv.c > > zserv.c: In function `zsend_mpls_out_segment_add': > > zserv.c:639: error: union has no member named `prefix6' > > zserv.c:639: error: union has no member named `ipv6' > > zserv.c: In function `zsend_mpls_out_segment_delete': > > zserv.c:681: error: union has no member named `prefix6' > > zserv.c:681: error: union has no member named `ipv6' > > zserv.c: In function `zread_mpls_out_segment_add': > > zserv.c:1725: error: union has no member named `ipv6' > > zserv.c:1725: error: union has no member named `prefix6' > > zserv.c: In function `zread_mpls_out_segment_delete': > > zserv.c:1764: error: union has no member named `ipv6' > > zserv.c:1764: error: union has no member named `prefix6' > > make[2]: *** [zserv.o] Error 1 > > make[2]: Leaving directory `$QUAGGA/zebra' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `$QUAGGA/q_96.4' > > make: *** [all] Error 2 > > > > Appreciate your early response. > > > > Thanks and Regards, > > Sas. > > > > > -- > - Saravanan > -- - Saravanan |