You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Dominic Crutchley <do...@gmail.com> on 2012/10/18 14:34:47 UTC

Cross Compilation of Axis2

Hello,

I'm trying to get axis2c to cross compile for ARM.  When I do this the
latest release '1.6.0' fails during build of the 'neethi/tests'
directory, with some errors relating to guththila / libaxis2 (see
snippet below).
It should be noted that building it for Ubuntu works perfectly, with
no such error.

What I believe to be the latest release candidate 1.7.0 RC6, appears
to compile quite happily, but I'd rather be using a release version.

Does anyone know what patches would be needed to 1.6.0 to avoid this
problem, or how far away 1.7.0 is?

A snippet of the appropriate output is below.

===========================================================================

arm-none-linux-gnueabi-gcc -g -O2 -pthread -g -O2
-D_LARGEFILE64_SOURCE -ansi -Wall -Werror
-Wno-implicit-function-declaration -o .libs/test test.o  -lpthread
../../axiom/src/om/.libs/libaxis2_axiom.so
../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so -ldl
-Wl,--rpath -Wl,/home/tastiest/REST/AXIS_BUILD/lib
/opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
warning: libaxis2_parser.so.0, needed by
../../axiom/src/om/.libs/libaxis2_axiom.so, not found (try using
-rpath or -rpath-link)
/opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
warning: libguththila.so.0, needed by ../src/.libs/libneethi.so, not
found (try using -rpath or -rpath-link)
test.o: In function `load_policy_array':
/home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:185: undefined
reference to `axiom_xml_reader_create_for_file'
/home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:198: undefined
reference to `axiom_xml_reader_free'
test.o: In function `om_node_serialize':
/home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:143: undefined
reference to `axiom_xml_writer_create_for_memory'
/home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:158: undefined
reference to `axiom_xml_writer_get_xml'
test.o: In function `main':
/home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:32: undefined
reference to `axiom_xml_reader_create_for_file'
/home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:45: undefined
reference to `axiom_xml_reader_free'
../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
`axiom_xml_reader_get_attribute_prefix_by_number'
../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
`axiom_xml_reader_get_value'

====== SNIPPED, MANY undefined references =========

Regards,
Dominic Crutchley

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Re: Cross Compilation of Axis2

Posted by Mandar Nandale <ma...@gmail.com>.
Hi Dominic,

       When i was doing cross compilation for arm this patch worked for me.
I used build script named build.sh with autogen.sh, What you can do is take
a fresh axis2c source code apply neethi patch put these two scripts
(attached to mail) in axis2c folder and then try running build.sh script.
     Looking at your logs i can see that you are cross compiling for arm
platform, so if you are using BeagleBone you can try native compiler which
comes with Angstrom filesystem.


On Thu, Oct 18, 2012 at 6:46 PM, Dominic Crutchley <do...@gmail.com>wrote:

> Mandar,
>
> Yes I have tried the patch, it changes the errors, but it still
> refuses to compile.  The output when I use the patch changes to.....
>
> make[4]: Entering directory
> `/home/tastiest/REST/axis2c-src-1.6.0/neethi/test'
> arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I
> ../../util/include -I ../../axiom/include -I ../../include   -g -O2
> -pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
> -Wno-implicit-function-declaration  -MT test.o -MD -MP -MF
> .deps/test.Tpo -c -o test.o test.c
> mv -f .deps/test.Tpo .deps/test.Po
> make[4]: *** No rule to make target
> `../../axiom/src/parser/libxml2/libaxis2_parser.la', needed by `test'.
> Stop.
> make[4]: Leaving directory
> `/home/tastiest/REST/axis2c-src-1.6.0/neethi/test'
> make[3]: *** [all-recursive] Error 1
>
> Regards,
>
> Dominic Crutchley
>
> On 18 October 2012 13:59, Mandar Nandale <ma...@gmail.com> wrote:
> > Hi Dominic,
> >
> >        Did you tried applying axis2c_neethiTest_linkdep.patch? If not you
> > can get it from following link apply it and compiling again.
> >          neethi_patch
> >
> > Regards,
> >
> > Mandar Nandale
> >
> > On Thu, Oct 18, 2012 at 6:04 PM, Dominic Crutchley <do...@gmail.com>
> > wrote:
> >>
> >> Hello,
> >>
> >> I'm trying to get axis2c to cross compile for ARM.  When I do this the
> >> latest release '1.6.0' fails during build of the 'neethi/tests'
> >> directory, with some errors relating to guththila / libaxis2 (see
> >> snippet below).
> >> It should be noted that building it for Ubuntu works perfectly, with
> >> no such error.
> >>
> >> What I believe to be the latest release candidate 1.7.0 RC6, appears
> >> to compile quite happily, but I'd rather be using a release version.
> >>
> >> Does anyone know what patches would be needed to 1.6.0 to avoid this
> >> problem, or how far away 1.7.0 is?
> >>
> >> A snippet of the appropriate output is below.
> >>
> >>
> >>
> ===========================================================================
> >>
> >> arm-none-linux-gnueabi-gcc -g -O2 -pthread -g -O2
> >> -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
> >> -Wno-implicit-function-declaration -o .libs/test test.o  -lpthread
> >> ../../axiom/src/om/.libs/libaxis2_axiom.so
> >> ../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so -ldl
> >> -Wl,--rpath -Wl,/home/tastiest/REST/AXIS_BUILD/lib
> >>
> >>
> /opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
> >> warning: libaxis2_parser.so.0, needed by
> >> ../../axiom/src/om/.libs/libaxis2_axiom.so, not found (try using
> >> -rpath or -rpath-link)
> >>
> >>
> /opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
> >> warning: libguththila.so.0, needed by ../src/.libs/libneethi.so, not
> >> found (try using -rpath or -rpath-link)
> >> test.o: In function `load_policy_array':
> >> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:185: undefined
> >> reference to `axiom_xml_reader_create_for_file'
> >> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:198: undefined
> >> reference to `axiom_xml_reader_free'
> >> test.o: In function `om_node_serialize':
> >> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:143: undefined
> >> reference to `axiom_xml_writer_create_for_memory'
> >> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:158: undefined
> >> reference to `axiom_xml_writer_get_xml'
> >> test.o: In function `main':
> >> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:32: undefined
> >> reference to `axiom_xml_reader_create_for_file'
> >> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:45: undefined
> >> reference to `axiom_xml_reader_free'
> >> ../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
> >> `axiom_xml_reader_get_attribute_prefix_by_number'
> >> ../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
> >> `axiom_xml_reader_get_value'
> >>
> >> ====== SNIPPED, MANY undefined references =========
> >>
> >> Regards,
> >> Dominic Crutchley
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> >> For additional commands, e-mail: c-user-help@axis.apache.org
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>

Re: Cross Compilation of Axis2

Posted by Dominic Crutchley <do...@gmail.com>.
Mandar,

Yes I have tried the patch, it changes the errors, but it still
refuses to compile.  The output when I use the patch changes to.....

make[4]: Entering directory `/home/tastiest/REST/axis2c-src-1.6.0/neethi/test'
arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I
../../util/include -I ../../axiom/include -I ../../include   -g -O2
-pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
-Wno-implicit-function-declaration  -MT test.o -MD -MP -MF
.deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
make[4]: *** No rule to make target
`../../axiom/src/parser/libxml2/libaxis2_parser.la', needed by `test'.
Stop.
make[4]: Leaving directory `/home/tastiest/REST/axis2c-src-1.6.0/neethi/test'
make[3]: *** [all-recursive] Error 1

Regards,

Dominic Crutchley

On 18 October 2012 13:59, Mandar Nandale <ma...@gmail.com> wrote:
> Hi Dominic,
>
>        Did you tried applying axis2c_neethiTest_linkdep.patch? If not you
> can get it from following link apply it and compiling again.
>          neethi_patch
>
> Regards,
>
> Mandar Nandale
>
> On Thu, Oct 18, 2012 at 6:04 PM, Dominic Crutchley <do...@gmail.com>
> wrote:
>>
>> Hello,
>>
>> I'm trying to get axis2c to cross compile for ARM.  When I do this the
>> latest release '1.6.0' fails during build of the 'neethi/tests'
>> directory, with some errors relating to guththila / libaxis2 (see
>> snippet below).
>> It should be noted that building it for Ubuntu works perfectly, with
>> no such error.
>>
>> What I believe to be the latest release candidate 1.7.0 RC6, appears
>> to compile quite happily, but I'd rather be using a release version.
>>
>> Does anyone know what patches would be needed to 1.6.0 to avoid this
>> problem, or how far away 1.7.0 is?
>>
>> A snippet of the appropriate output is below.
>>
>>
>> ===========================================================================
>>
>> arm-none-linux-gnueabi-gcc -g -O2 -pthread -g -O2
>> -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
>> -Wno-implicit-function-declaration -o .libs/test test.o  -lpthread
>> ../../axiom/src/om/.libs/libaxis2_axiom.so
>> ../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so -ldl
>> -Wl,--rpath -Wl,/home/tastiest/REST/AXIS_BUILD/lib
>>
>> /opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
>> warning: libaxis2_parser.so.0, needed by
>> ../../axiom/src/om/.libs/libaxis2_axiom.so, not found (try using
>> -rpath or -rpath-link)
>>
>> /opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
>> warning: libguththila.so.0, needed by ../src/.libs/libneethi.so, not
>> found (try using -rpath or -rpath-link)
>> test.o: In function `load_policy_array':
>> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:185: undefined
>> reference to `axiom_xml_reader_create_for_file'
>> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:198: undefined
>> reference to `axiom_xml_reader_free'
>> test.o: In function `om_node_serialize':
>> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:143: undefined
>> reference to `axiom_xml_writer_create_for_memory'
>> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:158: undefined
>> reference to `axiom_xml_writer_get_xml'
>> test.o: In function `main':
>> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:32: undefined
>> reference to `axiom_xml_reader_create_for_file'
>> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:45: undefined
>> reference to `axiom_xml_reader_free'
>> ../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
>> `axiom_xml_reader_get_attribute_prefix_by_number'
>> ../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
>> `axiom_xml_reader_get_value'
>>
>> ====== SNIPPED, MANY undefined references =========
>>
>> Regards,
>> Dominic Crutchley
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-user-help@axis.apache.org
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Re: Cross Compilation of Axis2

Posted by Mandar Nandale <ma...@gmail.com>.
Hi Dominic,

       Did you tried applying axis2c_neethiTest_linkdep.patch? If not you
can get it from following link apply it and compiling again.
         neethi_patch<https://build.opensuse.org/package/view_file?file=axis2c_neethiTest_linkdep.patch&package=axis2c&project=Virtualization%3ACloud%3AEucalyptus&rev=07aef3fc0da0a2878fb8b2ee76ae58e5>

Regards,

Mandar Nandale

On Thu, Oct 18, 2012 at 6:04 PM, Dominic Crutchley <do...@gmail.com>wrote:

> Hello,
>
> I'm trying to get axis2c to cross compile for ARM.  When I do this the
> latest release '1.6.0' fails during build of the 'neethi/tests'
> directory, with some errors relating to guththila / libaxis2 (see
> snippet below).
> It should be noted that building it for Ubuntu works perfectly, with
> no such error.
>
> What I believe to be the latest release candidate 1.7.0 RC6, appears
> to compile quite happily, but I'd rather be using a release version.
>
> Does anyone know what patches would be needed to 1.6.0 to avoid this
> problem, or how far away 1.7.0 is?
>
> A snippet of the appropriate output is below.
>
> ===========================================================================
>
> arm-none-linux-gnueabi-gcc -g -O2 -pthread -g -O2
> -D_LARGEFILE64_SOURCE -ansi -Wall -Werror
> -Wno-implicit-function-declaration -o .libs/test test.o  -lpthread
> ../../axiom/src/om/.libs/libaxis2_axiom.so
> ../../util/src/.libs/libaxutil.so ../src/.libs/libneethi.so -ldl
> -Wl,--rpath -Wl,/home/tastiest/REST/AXIS_BUILD/lib
>
> /opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
> warning: libaxis2_parser.so.0, needed by
> ../../axiom/src/om/.libs/libaxis2_axiom.so, not found (try using
> -rpath or -rpath-link)
>
> /opt/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld:
> warning: libguththila.so.0, needed by ../src/.libs/libneethi.so, not
> found (try using -rpath or -rpath-link)
> test.o: In function `load_policy_array':
> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:185: undefined
> reference to `axiom_xml_reader_create_for_file'
> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:198: undefined
> reference to `axiom_xml_reader_free'
> test.o: In function `om_node_serialize':
> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:143: undefined
> reference to `axiom_xml_writer_create_for_memory'
> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:158: undefined
> reference to `axiom_xml_writer_get_xml'
> test.o: In function `main':
> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:32: undefined
> reference to `axiom_xml_reader_create_for_file'
> /home/tastiest/REST/axis2c-src-1.6.0/neethi/test/test.c:45: undefined
> reference to `axiom_xml_reader_free'
> ../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
> `axiom_xml_reader_get_attribute_prefix_by_number'
> ../../axiom/src/om/.libs/libaxis2_axiom.so: undefined reference to
> `axiom_xml_reader_get_value'
>
> ====== SNIPPED, MANY undefined references =========
>
> Regards,
> Dominic Crutchley
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>