[Xorp-users] Trouble compiling in FreeBSD 4.10-stable
Joćo Carlos Mendes Luķs
jonny@jonny.eng.br
Fri, 09 Jul 2004 10:52:30 -0300
Atanu Ghosh wrote:
> We have managed to reproduce the problem.
>
> It seems the compiler warning is generated when the optimizer is
> used. We haven't been testing with the '--enable-optimize' option to
> configure. We will be now:-(.
FYI, i used this command line to configure:
./configure --enable-optimize --enable-advanced-mcast-api --without-snmp
Do you think it's safe to use -march=i686 -mcpu=i686 in compiler flags?
>
> Thanks for reporting this problem.
>
> Atanu.
>
>
>>>>>>"Joćo" == Joćo Carlos Mendes Luķs <jonny@jonny.eng.br> writes:
>
>
> Joćo> oma::jonny pim [557] gcc -v
> Joćo> Using builtin specs.
> Joćo> gcc version 2.95.4 20020320 [FreeBSD]
> Joćo> roma::jonny pim [558] uname -a
> Joćo> FreeBSD roma.coe.ufrj.br 4.10-BETA FreeBSD 4.10-BETA #4: Fri Apr 16
> Joćo> 03:25:06 BRT 2004
> Joćo> jonny@roma.coe.ufrj.br:/usr/cvsup/RELENG_4/src/sys/compile/ROMA i386
> Joćo> roma::jonny pim [559]
>
> Joćo> Atanu Ghosh wrote:
>
> >> Which g++ compiler are you using (g++ -v)?
> >> We normally build with:
> >> gcc version 2.95.4 20020320 [FreeBSD]
> >> gcc version 3.3.4 20040322 (prerelease) [FreeBSD]
> >> gcc version 3.4.0 20040310 (prerelease) [FreeBSD]
> >> Atanu.
> >>
> >>>>>>> "Joćo" == Joćo Carlos Mendes Luķs <jcmendes@int.gov.br> writes:
> >> Joćo> I have just updated xorp sources from CVS. The compile
> >> machine is a
> >> Joćo> FreeBSD-4-stable, very up-to-date.
> >> Joćo> ...
> >> Joćo> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -pipe -W -Wall -Wwrite-strings -
> >> Joćo> Wcast-qual -Werror -Wpointer-arith -Wcast-align -Wstrict-prototypes -Woverloaded
> >> Joćo> -virtual -Wnon-const-format -Wtraditional -ftemplate-depth-20 -c -o
> >> Joćo> route_table_nhlookup.o `test -f route_table_nhlookup.cc || echo
> >> Joćo> './'`route_table_nhlookup.cc
> >> Joćo> cc1plus: warnings being treated as errors
> >> Joćo> route_table_nhlookup.cc: In method `int
> >> Joćo> NhLookupTable<IPv4>::delete_route(const InternalMessage<IPv4> &,
> >> Joćo> BGPRouteTable<IPv4> *)':
> >> Joćo> route_table_nhlookup.cc:396: instantiated from here
> >> Joćo> route_table_nhlookup.cc:264: warning: `bool dont_send_delete' might be
> >> Joćo> used uninitialized in this function
> >> Joćo> route_table_nhlookup.cc: In method `int
> >> Joćo> NhLookupTable<IPv6>::delete_route(const InternalMessage<IPv6> &,
> >> Joćo> BGPRouteTable<IPv6> *)':
> >> Joćo> route_table_nhlookup.cc:397: instantiated from here
> >> Joćo> route_table_nhlookup.cc:264: warning: `bool dont_send_delete' might be
> >> Joćo> used uninitialized in this function
> >> Joćo> gmake[3]: *** [route_table_nhlookup.o] Error 1
> >> Joćo> gmake[3]: Leaving directory `/usr/home/users/jonny/tmp/xorp/cvs/xorp/bgp'
> >> Joćo> gmake[2]: *** [all-recursive] Error 1
> >> Joćo> gmake[2]: Leaving directory `/usr/home/users/jonny/tmp/xorp/cvs/xorp/bgp'
> >> Joćo> gmake[1]: *** [all-recursive] Error 1
> >> Joćo> gmake[1]: Leaving directory `/usr/home/users/jonny/tmp/xorp/cvs/xorp'
> >> Joćo> gmake: *** [all] Error 2
> >> Joćo> Now it is compiling without -Werror, but this takes
> >> looooooong...
> >> Joćo> _______________________________________________
> >> Joćo> Xorp-users mailing list
> >> Joćo> Xorp-users@xorp.org
> >> Joćo> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> >> _______________________________________________
> >> Xorp-users mailing list
> >> Xorp-users@xorp.org
> >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
>
> Joćo> --
>
> Joćo> Jonny
>
> Joćo> --
> Joćo> Joćo Carlos Mendes Luķs - Networking Engineer - jonny@jonny.eng.br