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

pavlin@icir.org pavlin@icir.org
Sun, 08 May 2005 16:58:24 -0700


----Next_Part(Sun_May__8_16:58:14_2005_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> make[3]: Entering directory `/usr/local/src/Routing/xorp-1.1/fea'
> source='mfea_proto_comm.cc' object='mfea_proto_comm.lo' libtool=yes \
> depfile='.deps/mfea_proto_comm.Plo'
> tmpdepfile='.deps/mfea_proto_comm.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 -Wcast-qual -Werror -Wpointer-arith
> -Wcast-align -Woverloaded-virtual -ftemplate-depth-22 -pipe -c -o
> mfea_proto_comm.lo `test -f mfea_proto_comm.cc || echo
> './'`mfea_proto_comm.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 mfea_proto_comm.cc -MT mfea_proto_comm.lo
> -MD -MP -MF .deps/mfea_proto_comm.TPlo -o mfea_proto_comm.o
> mfea_proto_comm.cc: In member function `void
> ProtoComm::proto_socket_read(int, SelectorMask)':
> mfea_proto_comm.cc:1048: warning: int format, different type arg (arg 4)
> make[3]: *** [mfea_proto_comm.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

Below is the next patch. I guess there may be a number of
problems like this, so I'd recommend that we take it off the list.
If anyone else is interested in those patches, please let me know
and I will send them later when all instances are fixed.

Thanks,
Pavlin


----Next_Part(Sun_May__8_16:58:14_2005_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="linux_amd64.patch3"

Index: mfea_proto_comm.cc
===================================================================
RCS file: /usr/local/share/doc/apache/cvs/xorp/fea/mfea_proto_comm.cc,v
retrieving revision 1.30
diff -u -p -r1.30 mfea_proto_comm.cc
--- mfea_proto_comm.cc	30 Apr 2005 21:59:57 -0000	1.30
+++ mfea_proto_comm.cc	8 May 2005 23:57:32 -0000
@@ -1047,7 +1047,7 @@ ProtoComm::proto_socket_read(int fd, Sel
 	if (nbytes < (ssize_t)sizeof(struct icmp6_hdr)) {
 	    XLOG_WARNING("proto_socket_read() failed: "
 			 "packet size %d is smaller than minimum size %u",
-			 nbytes,
+			 XORP_INT_CAST(nbytes),
 			 XORP_UINT_CAST(sizeof(struct icmp6_hdr)));
 	    return;		// Error
 	}

----Next_Part(Sun_May__8_16:58:14_2005_809)----