I am trying to install my staff code(LIBRARY_VERSION=1.99.1 & PACKAGE_VERSION=2.0.0-a1) for beagleBone but i am getting following errors:(I am using native compiler on board which comes with armstrong file system)
In file included from /usr/include/stdio.h:928:0,
from ../../../include/platforms/unix/axutil_date_time_util_unix.h:23,
from ../../../include/platforms/unix/axutil_unix.h:120,
from ../../../include/platforms/axutil_platform_auto_sense.h:53,
from uuid_gen_unix.c:50:
/usr/include/bits/stdio.h:37:1: error: redefinition of 'vprintf'
/usr/include/bits/stdio.h:45:1: error: redefinition of 'getchar'
/usr/include/bits/stdio.h:45:1: note: previous definition of 'getchar' was here
/usr/include/bits/stdio.h:54:1: error: redefinition of 'fgetc_unlocked'
/usr/include/bits/stdio.h:54:1: note: previous definition of 'fgetc_unlocked' was here
/usr/include/bits/stdio.h:64:1: error: redefinition of 'getc_unlocked'
/usr/include/bits/stdio.h:64:1: note: previous definition of 'getc_unlocked' was here
/usr/include/bits/stdio.h:71:1: error: redefinition of 'getchar_unlocked'
/usr/include/bits/stdio.h:71:1: note: previous definition of 'getchar_unlocked' was here
/usr/include/bits/stdio.h:80:1: error: redefinition of 'putchar'
/usr/include/bits/stdio.h:89:1: error: redefinition of 'fputc_unlocked'
/usr/include/bits/stdio.h:89:1: note: previous definition of 'fputc_unlocked' was here
/usr/include/bits/stdio.h:99:1: error: redefinition of 'putc_unlocked'
/usr/include/bits/stdio.h:99:1: note: previous definition of 'putc_unlocked' was here
/usr/include/bits/stdio.h:106:1: error: redefinition of 'putchar_unlocked'
/usr/include/bits/stdio.h:106:1: note: previous definition of 'putchar_unlocked' was here
/usr/include/bits/stdio.h:116:1: error: redefinition of 'getline'
/usr/include/bits/stdio.h:116:1: note: previous definition of 'getline' was here
/usr/include/bits/stdio.h:126:1: error: redefinition of 'feof_unlocked'
/usr/include/bits/stdio.h:126:1: note: previous definition of 'feof_unlocked' was here
/usr/include/bits/stdio.h:133:1: error: redefinition of 'ferror_unlocked'
/usr/include/bits/stdio.h:133:1: note: previous definition of 'ferror_unlocked' was here
make[5]: *** [uuid_gen_unix.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
mv -f .deps/date_time_util_unix.Tpo .deps/date_time_util_unix.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -D_GNU_SOURCE -MT thread_unix.lo -MD -MP -MF .deps/thread_unix.Tpo -c thread_unix.c -o thread_unix.o >/dev/null 2>&1
mv -f .deps/thread_unix.Tpo .deps/thread_unix.Plo
make[5]: Leaving directory `/home/root/staff/staff/axis2c/util/src/platforms/unix'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/root/staff/staff/axis2c/util/src'
make[3]: *** [all-recursive] Error 1
What is a reason that unable to compile axis2/c(1.6.0) on my board?
Anybody successfully installed staff on arm platform?
Any kind of help on cross_compilation, RESTful, staff,axis2/c is welcome
THANK YOU
These errors are coming while installing axis2/c on BeagleBone. and make is using a cross-native compiler available with armstrong file system,

test service [wsdl]
Available Operations
- Status Code: 415 Unsupported Media Type
- Connection: Keep-Alive
- Date: Mon Jun 18 20:44:44 2012 GMT
- Server: Axis2C/1.6.0 (Simple Axis2 HTTP Server)
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/root/Axis/axisSource1.6/axis2c-src-1.6.0/util/src/platforms/unix'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/root/Axis/axisSource1.6/axis2c-src-1.6.0/util/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/root/Axis/axisSource1.6/axis2c-src-1.6.0/util'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/root/Axis/axisSource1.6/axis2c-src-1.6.0/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/root/Axis/axisSource1.6/axis2c-src-1.6.0'
Following errors were resulted while cross
compiling STAF for ARM imax536 processor Linux environment.
/obj/linux/staf/retail/codepage/ucm2bin.o: In function `main':
ucm2bin.cpp:(.text.startup+0x85): undefined reference to
`STAFConverter::~STAFConverter()'
ucm2bin.cpp:(.text.startup+0x1c3): undefined reference to
`STAFConverter::STAFConverter(char*, STAFConverter::FileType)'
ucm2bin.cpp:(.text.startup+0x293): undefined reference to `STAFConverter::~STAFConverter()'
collect2: ld returned 1 exit status
make: *** [/home/baibhav/sarmistha/obj/linux/staf/retail/codepage/ucm2bin] Error 1
Thanks in advance