QUSIR / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

Cant compile source #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow the installation instructions from 
http://code.google.com/p/staff/wiki/InstallationManualLinux
2. start the make process
3. get the error

What is the expected output? What do you see instead?
i expect no compilation errors.. 
what i get is this after a few seconds:

pi@raspberrypi ~/devel/axis2c/axis2c-src-1.6.0 $ sudo make
make  all-recursive
make[1]: Entering directory `/home/pi/devel/axis2c/axis2c-src-1.6.0'
Making all in util
make[2]: Entering directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/util'
make  all-recursive
make[3]: Entering directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/util'
Making all in src
make[4]: Entering directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/util/src'
Making all in platforms/unix
make[5]: Entering directory 
`/home/pi/devel/axis2c/axis2c-src-1.6.0/util/src/platforms/unix'
/bin/bash ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I../../.. -I../../../include -I../../../include/platforms 
-I../../../include/platforms/unix    -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall 
-Werror -Wno-implicit-function-declaration -D_GNU_SOURCE  -MT uuid_gen_unix.lo 
-MD -MP -MF .deps/uuid_gen_unix.Tpo -c -o uuid_gen_unix.lo uuid_gen_unix.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration -D_GNU_SOURCE -MT uuid_gen_unix.lo -MD -MP -MF .deps/uuid_gen_unix.Tpo -c uuid_gen_unix.c  -fPIC -DPIC -o .libs/uuid_gen_unix.o
uuid_gen_unix.c: In function 'axutil_uuid_gen_v1':
uuid_gen_unix.c:62:20: error: variable 'tv' set but not used 
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[5]: *** [uuid_gen_unix.lo] Error 1
make[5]: Leaving directory 
`/home/pi/devel/axis2c/axis2c-src-1.6.0/util/src/platforms/unix'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/util/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/util'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pi/devel/axis2c/axis2c-src-1.6.0'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
System is on Raspberry Pi Model B rev. 2 the 
"2013-02-09-wheezy-raspbian.zip"-image.

Can you please help? Thanks!

Original issue reported on code.google.com by unused.s...@gmail.com on 7 Mar 2013 at 10:33

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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