[Xorp-hackers] Re: [Xorp-users] Compile failure on FreeBSD 5.3

Vlad GALU Vlad GALU <vladgalu@gmail.com>
Tue, 21 Dec 2004 07:25:35 +0200


On Mon, 20 Dec 2004 21:34:56 +0100, Gernot W. Schmied
<gernot.schmied@chello.at> wrote:
> Just want to report this compile failure on FreeBSD 5.3/Intel P4.
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..    -g  -W -Wall -Wwrite-strings
> -Wcast-qua
> l -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual
> -ftemplate-depth-20
> -c -o mfea_proto_comm.o `test -f mfea_proto_comm.cc || echo
> './'`mfea_proto_comm
> .cc
> mfea_proto_comm.cc: In member function `int
> ProtoComm::proto_socket_write(uint16
> _t, const IPvX&, const IPvX&, int, int, bool, const uint8_t*, size_t)':
> mfea_proto_comm.cc:1521: error: cannot bind packed field
> `ip->ip::ip_src' to `in
> _addr&'
> mfea_proto_comm.cc:1522: error: cannot bind packed field
> `ip->ip::ip_dst' to `in
> _addr&'
    
    Do a cast. It worked for me.

> gmake[3]: *** [mfea_proto_comm.o] Error 1
> gmake[3]: Leaving directory `/usr/local/src/xorp-1.0/fea'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/local/src/xorp-1.0/fea'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/local/src/xorp-1.0'
> gmake: *** [all] Error 2
> 
> Regards,
> Gernot
> _______________________________________________
> Xorp-users mailing list
> Xorp-users@xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> 


-- 
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.