On Fri, Feb 04, 2011 at 02:51:36PM -0800, Yongqiang Liu wrote: > So far there is a weird problem when i cross compiled ovs-openflowd, it is > following: > > vconn.o: In function `.LANCHOR0': > vconn.c:(.data.rel.ro.pvconn_classes+0x0): undefined reference to > `ptcp_pvconn_class' > vconn.c:(.data.rel.ro.pvconn_classes+0x4): undefined reference to > `punix_pvconn_class' > vconn.o: In function `.LANCHOR1': > vconn.c:(.data.rel.ro.vconn_classes+0x0): undefined reference to > `tcp_vconn_class' > vconn.c:(.data.rel.ro.vconn_classes+0x4): undefined reference to > `unix_vconn_class' > collect2: ld returned 1 exit status > > but i can not find the definition of the above xxx_xconn_class in ovs source > code, it is search result: > > grep tcp_vconn_class ./* -r > > ./lib/vconn.c: &tcp_vconn_class, > Binary file ./lib/vconn-stream.o matches > ./lib/vconn-provider.h:extern struct vconn_class tcp_vconn_class; > > i also searched the keywords by google, but got nothing. > > So anyone can give me some clues to solve the problem?
These are defined with macros at the end of lib/vconn-stream.c. I can see how this is confusing. I think we can do a little better; I'll send out a patch. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org