ws4d-gsoap make errors

127 views
Skip to first unread message

deude...@hotmail.com

unread,
Jun 9, 2011, 11:37:08 AM6/9/11
to WS4D-gSOAP Users
Hello everyone,
I am trying to install ws4d-gsoap before cross compiling it for
android.
I am using cygwin on windows XP pro, the last version of ws4d from
svn, cmake2.8.4, and gsoap2.8.
After doing a ccmake and configuring everything good (choosing WS-
Security..), errors are coming when I run a make install:

$ make
[ 0%] Built target ws4d_listF
[ 0%] Built target ws4d_listFmt
[ 1%] Built target ws4d_listL
[ 1%] Built target ws4d_listLmt
[ 2%] Built target ws4d_trackerCmt
[ 3%] Built target ws4d_trackerPmt
[ 4%] Built target gen_nsmaps
[ 4%] Generating wsa.h

** The gSOAP WSDL/Schema processor for C and C++, wsdl2h release
2.8.2
** Copyright (C) 2000-2011 Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any
warranty.

** The wsdl2h tool is released under one of the following two
licenses:
** GPL or the commercial license by Genivia Inc. Use option -l for
details.

Saving C:/gsoap/ws4d-gsoap-build/WS/wsa.h.tmp

Reading type definitions from type map file 'C:/gsoap/ws4d-gsoap-build/
WS/DPWS-t
ypemap.dat'

Reading file 'C:/gsoap/ws4d-gsoap/WS/wsa.xsd'...
Done reading 'C:/gsoap/ws4d-gsoap/WS/wsa.xsd'

To complete the process, compile with:
> soapcpp2 C:/gsoap/ws4d-gsoap-build/WS/wsa.h.tmp

[ 6%] Built target gen_headers
[ 6%] Generating gen/targetServerLib.c, gen/targetServer.c, gen/
targetClientLib
.c, gen/targetClient.c, gen/targetC.c, gen/targetH.h, gen/
targetStub.h, gen/targ
et.nsmap

** The gSOAP code generator for C and C++, soapcpp2 release 2.8.2
** Copyright (C) 2000-2011, Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any
warranty.

** The soapcpp2 tool is released under one of the following two
licenses:
** GPL or the commercial license by Genivia Inc.

wsa.h(249): syntax error
wsa.h(248): Syntax error: declaration expected
wsa.h(255): syntax error
wsa.h(254): Syntax error: declaration expected
wsa.h(262): syntax error
wsa.h(261): Syntax error: declaration expected
wsa.h(264): syntax error
wsa.h(263): Syntax error: declaration expected
wsa.h(270): syntax error
wsa.h(269): Syntax error: declaration expected
wsd.h(450): syntax error
wsd.h(449): Syntax error: declaration expected
wsd.h(452): syntax error
wsd.h(451): Syntax error: declaration expected
wsd.h(454): syntax error
wsd.h(453): Syntax error: declaration expected
wsd.h(456): syntax error
wsd.h(455): Syntax error: declaration expected
wsd.h(462): syntax error
wsd.h(461): Syntax error: declaration expected
wsd.h(471): syntax error
wsd.h(470): Syntax error: declaration expected
Critical error: too many syntactic errors, bailing out
make[2]: *** [src/libdpws/gsoap/gen/targetServerLib.c] Error 1
make[1]: *** [src/libdpws/gsoap/CMakeFiles/gen_sources.dir/all] Error
2
make: *** [all] Error 2

If anyone got any ideas about this....

Thank you in advance,
Antoine

Elmar Zeeb

unread,
Jun 9, 2011, 11:52:56 AM6/9/11
to ws4d-gso...@googlegroups.com
Hi Antoine,

currently gsoap-2.8.x is not supported. See
http://trac.e-technik.uni-rostock.de/projects/ws4d-gsoap/wiki/SupportedFeatures#SupportedgSOAPVersions
for supported gsoap versions.
Some releases of gsoap make changes to the gsoap code generator. So our
code does not yet support these changes. It's on our todo list :-)

Regards,
Elmar

--

*******************************************************************************
Dipl.-Inf. Elmar Zeeb
Universit�t Rostock, Fakult�t f. Informatik und Elektrotechnik
Institut f. Angewandte Mikroelektronik und Datentechnik
University of Rostock, Faculty of CS and EE
Institute of Applied Microelectronics and Computer Engineering,
18051 Rostock
Deutschland/Germany
Tel. : ++49 (0)381 498 - 7262
Fax : ++49 (0)381 498 - 7252
Email: elmar...@uni-rostock.de
www : http://www.imd.uni-rostock.de/, http://www.ws4d.org/
*******************************************************************************

deude...@hotmail.com

unread,
Jun 10, 2011, 3:41:13 AM6/10/11
to WS4D-gSOAP Users
Allright! thank you very much :)

On Jun 9, 5:52 pm, Elmar Zeeb <elmar.z...@uni-rostock.de> wrote:
> Hi Antoine,
>
> currently gsoap-2.8.x is not supported. Seehttp://trac.e-technik.uni-rostock.de/projects/ws4d-gsoap/wiki/Support...
> for supported gsoap versions.
> Some releases of gsoap make changes to the gsoap code generator. So our
> code does not yet support these changes. It's on our todo list :-)
>
> Regards,
> Elmar
>
> --
>
> *************************************************************************** ****
>    Dipl.-Inf. Elmar Zeeb
>    Universit�t Rostock, Fakult�t f. Informatik und Elektrotechnik
>    Institut f. Angewandte Mikroelektronik und Datentechnik
>    University of Rostock, Faculty of CS and EE
>    Institute of Applied Microelectronics and Computer Engineering,
>    18051 Rostock
>    Deutschland/Germany
>    Tel. : ++49 (0)381 498 - 7262
>    Fax  : ++49 (0)381 498 - 7252
>    Email: elmar.z...@uni-rostock.de
>    www  :http://www.imd.uni-rostock.de/,http://www.ws4d.org/
> *************************************************************************** ****

deude...@hotmail.com

unread,
Jun 10, 2011, 4:29:10 AM6/10/11
to WS4D-gSOAP Users
But not so fast...
I am experiencing new errors...
I built correctly the ws4d-gsoap, and now I want to cross compile it
for android. So I followed the indications I found on this forum. I
used this script:

$cd /cygdrive/c/gsoap

$ export ANDROID_NDK_TOOLCHAIN_ROOT=/cygdrive/c/Android/toolchain
$ mkdir ws4d-gsoap-build-android
$ mkdir ws4d-gsoap-install-android
$ cd ws4d-gsoap-build-android
$ cmake -DCMAKE_TOOLCHAIN_FILE=/cygdrive/c/gsoap/ws4d-gsoap/toolchains/
android_ndk.cmake \
-DGSOAP_PATH:PATH=/cygdrive/c/gsoap/gsoap-2.7 \
-DDPWS_HOSTEXEC_PATH:PATH=/cygdrive/c/gsoap/ws4d-gsoap-build/
bin \ # I dont really know what to put here, because when I installed
ws4d-gsoap, even using the prefix /ws4d-gsoap-install, it stayed in
ws4d-gsoap-build

-DCMAKE_INSTALL_PREFIX:PATH=/cygdrive/c/gsoap/ws4d-gsoap-
install-android \
/cygdrive/c/gsoap/ws4d-gsoap
$ make install

Off course, because I am on windows I had to modify the
android_ndk.cmake file, I added .exe at the end of gcc/g++ compilers.

And I finally get the following error:

-- The C compiler identification is GNU
-- Check for working C compiler: /cygdrive/c/Android/toolchain/bin/arm-
linux-and
roideabi-gcc.exe
-- Check for working C compiler: /cygdrive/c/Android/toolchain/bin/arm-
linux-and
roideabi-gcc.exe -- broken
CMake Error at /usr/share/cmake-2.8.4/Modules/CMakeTestCCompiler.cmake:
52 (MESSA
GE):
The C compiler
"/cygdrive/c/Android/toolchain/bin/arm-linux-androideabi-gcc.exe" is
not
able to compile a simple test program.

It fails with the following output:

Change Dir: /cygdrive/c/gsoap/ws4d-gsoap-build-android/CMakeFiles/
CMakeTmp


Run Build Command:/usr/bin/make.exe "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

make[1]: Entering directory
`/cygdrive/c/gsoap/ws4d-gsoap-build-android/CMakeFiles/CMakeTmp'

/usr/bin/cmake.exe -E cmake_progress_report
/cygdrive/c/gsoap/ws4d-gsoap-build-android/CMakeFiles/CMakeTmp/
CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

/cygdrive/c/Android/toolchain/bin/arm-linux-androideabi-gcc.exe -
fPIC
-DANDROID -mthumb -Wno-psabi
-I/cygdrive/c/Android/toolchain/arm-linux-androideabi/include/c++/
4.4.3/arm-li
nux-androideabi
-o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/cygdrive/c/gsoap/ws4d-gsoap-build-android/CMakeFiles/CMakeTmp/
testCCompiler.c


arm-linux-androideabi-gcc.exe:
/cygdrive/c/gsoap/ws4d-gsoap-build-android/CMakeFiles/CMakeTmp/
testCCompiler.c
:
No such file or directory

arm-linux-androideabi-gcc.exe: no input files

make[1]: Leaving directory
`/cygdrive/c/gsoap/ws4d-gsoap-build-android/CMakeFiles/CMakeTmp'

make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o]
Error 1

make: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:25 (PROJECT)


-- Configuring incomplete, errors occurred!
make: *** No rule to make target `install'. Stop.

300223708@nlvehvres2dtt5p /cygdrive/c/gsoap
$

I have to admit that I tried a lot of various things... nothing to do!
Help would be greatly appreciated...
Thanks again!
Antoine


On Jun 10, 9:41 am, "deude8p...@hotmail.com" <deude8p...@hotmail.com>
wrote:

deude...@hotmail.com

unread,
Jun 17, 2011, 4:08:13 AM6/17/11
to WS4D-gSOAP Users
Up :p

Elmar Zeeb

unread,
Jun 20, 2011, 9:59:01 AM6/20/11
to ws4d-gso...@googlegroups.com
Hi Antoine,

I checked the problem and couldn't fix it myself. So it looks like the
android ndk support only works on linux at the moment.

I used the cmake toolchain file from
http://code.google.com/p/android-cmake/ and couldn't get it to work
combination with ws4d-gsoap. I did not try to test android-cmake itself
(may be that would be a good starting point).

I think adding the .exe suffix doesn't fix the problem, because cmake in
cross-compilation-mode has some misleading output. It does find gcc, but
the compiler detection mechanism of cmake is not happy with it.

I'm quite busy at the moment, so this will be a long term issue :-). I
create ticket
http://trac.e-technik.uni-rostock.de/projects/ws4d-gsoap/ticket/105 to
track and remember this issue.

Regards,
Elmar

--

*******************************************************************************
Dipl.-Inf. Elmar Zeeb
Universit�t Rostock, Fakult�t f. Informatik und Elektrotechnik


Institut f. Angewandte Mikroelektronik und Datentechnik
University of Rostock, Faculty of CS and EE
Institute of Applied Microelectronics and Computer Engineering,
18051 Rostock
Deutschland/Germany
Tel. : ++49 (0)381 498 - 7262
Fax : ++49 (0)381 498 - 7252

Email: elmar...@uni-rostock.de
www : http://www.imd.uni-rostock.de/, http://www.ws4d.org/
*******************************************************************************

Reply all
Reply to author
Forward
0 new messages