Closed GoogleCodeExporter closed 9 years ago
This issue is not related to WSF Staff, only to Axis2/C.
I didn't tried to build Axis2/C on Raspberry Pi, but guess crosscompiler is
very like that used in Android.
You need to disable -Werror flag by removing it from configure/Makefile and
then fix lots of Makefiles.am/configure.in and other code.
You may try patched version that I use to build for Android:
https://code.google.com/p/staff/downloads/detail?name=axis2c-src-1.6.0-android.t
ar.bz2
P.S. don't build with sudo, unless you really need that (kernel sources/etc)...
Original comment by loentar
on 7 Mar 2013 at 11:03
Your version went a little further but still aborts.
make[5]: Leaving directory
`/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util/src'
make[4]: Leaving directory
`/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util/src'
Making all in include
make[4]: Entering directory
`/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util/include'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util/include'
make[4]: Entering directory
`/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util'
make[4]: *** No rule to make target `INSTALL', needed by `all-am'. Stop.
make[4]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0-android/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0-android'
make: *** [all] Error 2
so i tried your suggestion to remove all -Werror flags..didnt take long to find
them all with:
~/devel/axis2c $ find . -print0 | xargs -0 grep -H -n "Werror"
during the make process i got the following warning:
cd . && /bin/bash /home/pi/devel/axis2c/axis2c-src-1.6.0/util/missing --run
aclocal-1.10
/home/pi/devel/axis2c/axis2c-src-1.6.0/util/missing: line 54: aclocal-1.10:
command not found
WARNING: `aclocal-1.10' is missing on your system. You should only need it if
you modified `acinclude.m4' or `configure.ac'. You might want
to install the `Automake' and `Perl' packages. Grab them from
any GNU archive site.
cd . && /bin/bash /home/pi/devel/axis2c/axis2c-src-1.6.0/util/missing --run automake-1.10 --gnu
/home/pi/devel/axis2c/axis2c-src-1.6.0/util/missing: line 54: automake-1.10:
command not found
WARNING: `automake-1.10' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
cd . && /bin/bash /home/pi/devel/axis2c/axis2c-src-1.6.0/util/missing --run
autoconf
aclocal.m4:14: error: this file was generated for autoconf 2.61.
You have another version of autoconf. If you want to use that,
you should regenerate the build system entirely.
aclocal.m4:14: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
WARNING: `autoconf' is probably too old. You should only need it if
you modified `configure.ac'. You might want to install the
`Autoconf' and `GNU m4' packages. Grab them from any GNU
archive site.
i just ignored it and hope it works...
thanks for your tip ;)
Original comment by unused.s...@gmail.com
on 7 Mar 2013 at 1:07
it didnt work:
mkdir .libs
gcc -g -O2 -pthread -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall
-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,/usr/local/axis2c/lib
/usr/bin/ld: test.o: undefined reference to symbol 'axiom_xml_reader_free'
/usr/bin/ld: note: 'axiom_xml_reader_free' is defined in DSO
/home/pi/devel/axis2c/axis2c-src-1.6.0/axiom/src/parser/guththila/.libs/libaxis2
_parser.so.0 so try adding it to the linker command line
/home/pi/devel/axis2c/axis2c-src-1.6.0/axiom/src/parser/guththila/.libs/libaxis2
_parser.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [test] Error 1
make[4]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/neethi/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/neethi'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/neethi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0'
make: *** [all] Error 2
although this is not your task area, do you have any tips?
Original comment by unused.s...@gmail.com
on 7 Mar 2013 at 1:47
neethi test does not work.
disable it in Makefile.am, Makefile.am then run configure again.
you need to remove "test" from subdirs.
Original comment by loentar
on 7 Mar 2013 at 2:41
Have you tried cross-compiler like that
https://github.com/kallaballa/Raspberry-GCC-4.7.3 ?
cross-compilation is much faster than compilation on target device.
Original comment by loentar
on 7 Mar 2013 at 3:20
Remove the tests from neethi did it :)
cross compiling is new to me but i will try it!
if you like i can upload the modified source as attachment in case someone else
like to do the same.
tanks for your help :)
Original comment by unused.s...@gmail.com
on 11 Mar 2013 at 9:07
Original issue reported on code.google.com by
unused.s...@gmail.com
on 7 Mar 2013 at 10:33