Hi Ben.

After configure, if i run make in the top directory, letting some scripts in
the lib directory run first.
Then, i cross compile in my mintool directory, there is no such a problem in
dpif.c i reported just now.
But i don't know why.

BTW, my current compile way is that i create a mintool directory, and copy
all the c files related to ovs-dpctl from lib to mintool. I write a Makefile
with cross compile setting, and the separately cross compile the ovs-dpctl
for android.

2011/1/26 Yongqiang Liu <liuyq7...@gmail.com>

> 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