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

Atanu Ghosh atanu@ICSI.Berkeley.EDU
Tue, 21 Dec 2004 12:17:23 -0800


I would recommend building directly from the CVS archive. There have
been many compilation and big fixes. I believe that the current tree has
built on 5.3. The downside is that the documentation may not fully
match the latest code.

      Atanu.

>>>>> "Gernot" == Gernot W Schmied <gernot.schmied@chello.at> writes:

    Gernot> Atanu Ghosh wrote:
    >> This problem is fixed in the source tree:
    >> <http://xorpc.icir.org/cgi-bin/cvsweb.cgi/xorp/fea/mfea_proto_comm.cc>
    >> The final solution that we choose was to go through an intermediate
    >> structure rather than a cast.
    >> In our defense FreeBSD 5.3 was not available when we made the 1.0
    >> release earlier this year.
    >> Atanu.
    >> 
    >>>>>>> "Vlad" == Vlad GALU <vladgalu@gmail.com> writes:
    Vlad> On Mon, 20 Dec 2004 21:34:56 +0100, Gernot W. Schmied
    Vlad> <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&'
    Vlad> 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
    >> >>     Vlad> -- 
    Vlad> If it's there, and you can see it, it's real.
    Vlad> If it's not there, and you can see it, it's virtual.
    Vlad> If it's there, and you can't see it, it's transparent.
    Vlad> If it's not there, and you can't see it, you erased it.
    Vlad> _______________________________________________
    Vlad> Xorp-hackers mailing list
    Vlad> Xorp-hackers@icir.org
    Vlad> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
    >> _______________________________________________
    >> Xorp-hackers mailing list
    >> Xorp-hackers@icir.org
    >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
    >> 

    Gernot> Ok,

    Gernot> Thanks to all the feedback, now another compile failure popped up
    Gernot> within PIM. I'll give the CVS code a try and report back how things
    Gernot> are going on FreeBSD 5.3.

    Gernot> Regards,
    Gernot> Gernot
    Gernot> _______________________________________________
    Gernot> Xorp-hackers mailing list
    Gernot> Xorp-hackers@icir.org
    Gernot> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers