[Xorp-users] xorp-1.1 build failure on Gentoo AMD64

Gernot W. Schmied gernot.schmied@chello.at
Sun, 08 May 2005 22:55:37 +0200


pavlin@icir.org wrote:
>>XORP-1.1 fails to compile on AMD64 Gentoo. Any idea?
>>
>>make[3]: Entering directory `/usr/local/src/Routing/xorp-1.1/fea'
>>source='fticonfig_entry_get_netlink.cc'
>>object='fticonfig_entry_get_netlink.lo' libtool=yes \
>>depfile='.deps/fticonfig_entry_get_netlink.Plo'
>>tmpdepfile='.deps/fticonfig_entry_get_netlink.TPlo' \
>>depmode=gcc3 /bin/sh ../config/depcomp \
>>/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..
>>   -g -W -Wall -Wwrite-strings -Wca st-qual -Werror -Wpointer-arith
>>-Wcast-align -Woverloaded-virtual -ftemplate-depth-22 -pipe -c -o
>>fticonfig _entry_get_netlink.lo `test -f fticonfig_entry_get_netlink.cc
>>|| echo './'`fticonfig_entry_get_netlink.cc
>>g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings
>>-Wcast-qual -Werror -Wpointer-arith -Wcas t-align -Woverloaded-virtual
>>-ftemplate-depth-22 -pipe -c fticonfig_entry_get_netlink.cc -MT
>>fticonfig_entr y_get_netlink.lo -MD -MP -MF
>>.deps/fticonfig_entry_get_netlink.TPlo -o fticonfig_entry_get_netlink.o
>>fticonfig_entry_get_netlink.cc: In member function `virtual bool
>>FtiConfigEntryGetNetlink::lookup_route_by_ dest(const IPvX&, FteX&)':
>>fticonfig_entry_get_netlink.cc:317: warning: int format, different type
>>arg (arg 4)
>>make[3]: *** [fticonfig_entry_get_netlink.lo] Error 1
>>make[3]: Leaving directory `/usr/local/src/Routing/xorp-1.1/fea'
>>make[2]: *** [all-recursive] Error 1
>>make[2]: Leaving directory `/usr/local/src/Routing/xorp-1.1/fea'
>>make[1]: *** [all-recursive] Error 1
>>make[1]: Leaving directory `/usr/local/src/Routing/xorp-1.1'
>>make: *** [all] Error 2
> 
> 
> Sigh, this is a casting error. Below is a patch (committed to CVS)
> that should fix the problem. Note that it fixes similar problems in
> other places as well, but without access to an AMD64 Linux box I
> cannot guarantee there aren't other similar compilation problems.
> 
> Please let us know if there are other compilation errors.
> 
> Thanks,
> Pavlin
> 

Thanks Pavlin,

I got a bit further, nevertheless:

/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..
   -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith
-Wcast-align -Woverloaded-virtual -ftemplate-depth-22 -pipe -c -o
ifconfig_parse_nlm.lo `test -f ifconfig_parse_nlm.cc || echo
'./'`ifconfig_parse_nlm.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings
-Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual
-ftemplate-depth-22 -pipe -c ifconfig_parse_nlm.cc -MT
ifconfig_parse_nlm.lo -MD -MP -MF .deps/ifconfig_parse_nlm.TPlo -o
ifconfig_parse_nlm.o
ifconfig_parse_nlm.cc: In function `void
nlm_newdeladdr_to_fea_cfg(IfConfig&, IfTree&, const ifaddrmsg*, int, bool)':
ifconfig_parse_nlm.cc:461: warning: int format, different type arg (arg 4)
ifconfig_parse_nlm.cc:461: warning: int format, different type arg (arg 5)
ifconfig_parse_nlm.cc:483: warning: int format, different type arg (arg 4)
ifconfig_parse_nlm.cc:483: warning: int format, different type arg (arg 5)
ifconfig_parse_nlm.cc:510: warning: int format, different type arg (arg 4)
ifconfig_parse_nlm.cc:510: warning: int format, different type arg (arg 5)
make[3]: *** [ifconfig_parse_nlm.lo] Error 1
make[3]: Leaving directory `/usr/local/src/Routing/xorp-1.1/fea'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/Routing/xorp-1.1/fea'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/Routing/xorp-1.1'
make: *** [all] Error 2

Unfortunately I can only assist with debugging and testing, I am not a
programmer.

Regards,
Gernot