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


 int
dpif_flow_flush(struct dpif *dpif)
{
    int error;

    COVERAGE_INC(dpif_flow_flush);

    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 <b...@nicira.com>

> On Wed, Jan 26, 2011 at 8:57 PM, Yongqiang Liu <liuyq7...@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 ...
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to