[ovs-discuss] Compile ovs for Andriod

Yongqiang Liu liuyq7809 at gmail.com
Thu Jan 27 05:51:44 UTC 2011

Thanks Ben.

I tried, and it works.

Now there is a similar problem when cross compiling  dpif.c, it is:

dpif.o: In function `dpif_flow_flush':
/home/leo/android/kernel/openvswitch/mintool/dpif.c:702: undefined reference
to `dpif_flow_flush_count'

but there is no the definition of dpif_flow_flush_count in lib directoy, and
dpif_flow_flush function in dpif.c is

dpif_flow_flush(struct dpif *dpif)
    int error;


    error = dpif->dpif_class->flow_flush(dpif);
    log_operation(dpif, "flow_flush", error);
    return error;

and line 702 is the end of the function, e.g., }

it quite confusing to me.

Do you have any ideas ?

2011/1/26 Ben Pfaff <blp at nicira.com>

> On Wed, Jan 26, 2011 at 8:57 PM, Yongqiang Liu <liuyq7809 at gmail.com>
> wrote:
> > I am trying to cross compile vlog.c file on arm, but there is a problem
> in
> > link phase:
> >
> > vlog.c:315: undefined reference to `__start_vlog_modules'
> >
> > And i found it is an extern reference in vlog.c:
> > extern struct vlog_module *__start_vlog_modules[];
> >
> > But i cann't find which file defines the struct in lib directory.
> >
> > Does anyone can tell me where is it defined?
> It sounds like your linker doesn't support the linker sections feature, but
> the OVS "configure" script detected that it did.  Odd.
> At any rate, you can explicitly instruct the build to avoid trying to use
> this feature by adding "ovs_cv_use_linker_sections=no" to the configure
> command line, e.g.:
>        ../configure ovs_cv_use_linker_sections=no ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110126/7c238c85/attachment-0001.html>

More information about the discuss mailing list