Geoffrey Winn wrote:
I've been using the instructions that Sebastian posted a while ago for
building on Linux to try to build the C++ versions of SDO and SCA on
Ubuntu
Linux. SDO works fine and the tests run successfully. The SCA runtime
builds
OK too, but the samples fail to build and I've appended the build
output at
the end of this note.
The failure occurs when compiling
CalculatorImpl_CalculatorService_Proxy.cpp
and when I examine that file it contains
"floatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloat"
I'm not joking. That line is the entire contents of the file. I've
tried the
obvious approach of just deleting everything and re-running it but I
still
get the same result. I assume this is a generated file, in which case
there's probably some failure in the code generation. Can anyone give me
some hints about where to look?
Regards,
Geoff.
[EMAIL PROTECTED]:~/tuscany/Generic/sca/samples$ make
make all-recursive
make[1]: Entering directory `/home/gwinn/tuscany/Generic/sca/samples'
Making all in Calculator
make[2]: Entering directory
`/home/gwinn/tuscany/Generic/sca/samples/Calculator'
Making all in sample.calculator
make[3]: Entering directory
`/home/gwinn/tuscany/Generic/sca/samples/Calculator/sample.calculator'
java -jar /home/gwinn/tuscany/Generic/sca/deploy/bin/scagen.jar -dir .
-output .
make all-am
make[4]: Entering directory
`/home/gwinn/tuscany/Generic/sca/samples/Calculator/sample.calculator'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I../..
-I/home/gwinn/tuscany/Generic/sca/deploy/extensions/cpp/include
-I/home/gwinn/tuscany/Generic/sca/deploy/include
-I/home/gwinn/tuscany/Generic/sdo/deploy/include -g -O2 -MT
CalculatorImpl.lo -MD -MP -MF ".deps/CalculatorImpl.Tpo" -c -o
CalculatorImpl.lo CalculatorImpl.cpp; \
then mv -f ".deps/CalculatorImpl.Tpo" ".deps/CalculatorImpl.Plo";
else rm -f ".deps/CalculatorImpl.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../..
-I/home/gwinn/tuscany/Generic/sca/deploy/extensions/cpp/include
-I/home/gwinn/tuscany/Generic/sca/deploy/include
-I/home/gwinn/tuscany/Generic/sdo/deploy/include -g -O2 -MT
CalculatorImpl.lo -MD -MP -MF .deps/CalculatorImpl.Tpo -c
CalculatorImpl.cpp
-fPIC -DPIC -o .libs/CalculatorImpl.o
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I../..
-I/home/gwinn/tuscany/Generic/sca/deploy/extensions/cpp/include
-I/home/gwinn/tuscany/Generic/sca/deploy/include
-I/home/gwinn/tuscany/Generic/sdo/deploy/include -g -O2 -MT
CalculatorImpl_CalculatorService_Proxy.lo -MD -MP -MF
".deps/CalculatorImpl_CalculatorService_Proxy.Tpo" -c -o
CalculatorImpl_CalculatorService_Proxy.lo
CalculatorImpl_CalculatorService_Proxy.cpp; \
then mv -f ".deps/CalculatorImpl_CalculatorService_Proxy.Tpo"
".deps/CalculatorImpl_CalculatorService_Proxy.Plo"; else rm -f
".deps/CalculatorImpl_CalculatorService_Proxy.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../..
-I/home/gwinn/tuscany/Generic/sca/deploy/extensions/cpp/include
-I/home/gwinn/tuscany/Generic/sca/deploy/include
-I/home/gwinn/tuscany/Generic/sdo/deploy/include -g -O2 -MT
CalculatorImpl_CalculatorService_Proxy.lo -MD -MP -MF
.deps/CalculatorImpl_CalculatorService_Proxy.Tpo -c
CalculatorImpl_CalculatorService_Proxy.cpp -fPIC -DPIC -o
.libs/CalculatorImpl_CalculatorService_Proxy.o
CalculatorImpl_CalculatorService_Proxy.cpp:1:61: warning: no newline
at end
of file
CalculatorImpl_CalculatorService_Proxy.cpp:1: error: expected
constructor,
destructor, or type conversion at end of input
make[4]: *** [CalculatorImpl_CalculatorService_Proxy.lo] Error 1
make[4]: Leaving directory
`/home/gwinn/tuscany/Generic/sca/samples/Calculator/sample.calculator'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/gwinn/tuscany/Generic/sca/samples/Calculator/sample.calculator'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/gwinn/tuscany/Generic/sca/samples/Calculator'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gwinn/tuscany/Generic/sca/samples'
make: *** [all] Error 2
Geoff,
Proxies are generated by the scagen tool. The tool is written in Java
and uses an XSL stylesheet to generate the Proxy code. The code for the
tool is under under sca/tools/scagen.
It has always been working well for me on Redhat Linux.
Can you try to run this from the sample.calculator directory:
java -jar $TUSCANY_SCACPP/bin/scagen.jar -dir . -output .
and see if you get any error messages or exceptions?
Also which JDK are you using?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]