You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Mario Grotschar <ma...@gmail.com> on 2010/02/20 21:39:28 UTC
Compilation problem tuscany-sca-cpp
Hello,
I have noticed that Apache Tuscany SCA Runtime from
git://git.apache.org/tuscany-sca-cpp offers an AMQP message queue component.
(in contrast to the Tuscany SCA Native M3 incubator).
When I try build the SCA Runtime I receive an error message when running
make.
make all-recursive
make[1]: Entering directory `/home/mario/native-sca-1.0.incubating-M3'
Making all in kernel
make[2]: Entering directory
`/home/mario/native-sca-1.0.incubating-M3/kernel'
g++ -DHAVE_CONFIG_H -I. -I.. -I.
-I/home/mario/tuscany_sca_native-1.0-incubator-M3-src/deploy/kernel
-I/home/mario/httpd-2.2.14/deploy/include -I/usr/include/libxml2
-I/usr/include/xulrunner-1.9.1.7/unstable -I/usr/include -O3 -std=c++0x
-fmessage-length=0 -MT kernel-test.o -MD -MP -MF .deps/kernel-test.Tpo -c -o
kernel-test.o kernel-test.cpp
In file included from list.hpp:31,
from sstream.hpp:34,
from kernel-test.cpp:28:
fstream.hpp:157:1: warning: "debug" redefined
fstream.hpp:156:1: warning: this is the location of the previous definition
In file included from tree.hpp:33,
from kernel-test.cpp:31:
monad.hpp:278:35: error: macro "debug" passed 2 arguments, but takes just 1
In file included from tree.hpp:33,
from kernel-test.cpp:31:
monad.hpp: In function 'const tuscany::failable<V, F>
tuscany::mkfailure(const F&)':
monad.hpp:278: error: 'debug' was not declared in this scope
make[2]: *** [kernel-test.o] Error 1
make[2]: Leaving directory `/home/mario/native-sca-1.0.incubating-M3/kernel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mario/native-sca-1.0.incubating-M3'
make: *** [all] Error 2
The incubator builds ok.
AW: Compilation problem tuscany-sca-cpp
Posted by Mario Grotschar <ma...@gmail.com>.
I tried from git clone git://git.apache.org/tuscany-sca-cpp and svn co http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk.
I then ran ./bootstrap.
The first run caused an error
Running libtoolize --force...libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
done.
Running aclocal...done.
Running autoconf...configure.ac:346: error: possibly undefined macro: AC_PROG_JAVAC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:347: error: possibly undefined macro: AC_PROG_JAR
Running it again was successful.
Then I ran
./configure --prefix=/home/mario/native-sca-1.0.incubating-M3/deploy --with-apr=/home/mario/httpd-2.2.14/deploy --with-httpd=/home/mario/httpd-2.2.14/deploy --with-libcurl=/usr --with-libxml2=/usr
I renamed the directory to native-sca-1.0.incubating-M3 so don’t wonder about that.
Then I would run make.
The first error I could resolve, as already described, by deleting the redefinition.
But the mentioned error comes.
-----Ursprüngliche Nachricht-----
Von: Luciano Resende [mailto:luckbr1975@gmail.com]
Gesendet: Sonntag, 21. Februar 2010 00:33
An: user@tuscany.apache.org
Betreff: Re: Compilation problem tuscany-sca-cpp
Just to clarify, are you trying to build the Tuscany SCA CPP from
https://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/
If not, could you please try that...
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: AW: Compilation problem tuscany-sca-cpp
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Mario Grotschar wrote:
...
> I tried from git clone git://git.apache.org/tuscany-sca-cpp and svn co http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk.
Sorry for the delay, I was away on vacation.
You're using the correct repository.
> I then ran ./bootstrap.
> The first run caused an error
...
> Running autoconf...configure.ac:346: error: possibly undefined macro: AC_PROG_JAVAC
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> configure.ac:347: error: possibly undefined macro: AC_PROG_JAR
...
The AC_PROG_JAVAC and AC_PROG_JAR macros are from the autoconf-archive
package, version 20090426-1 on Ubuntu 9.10.
However, others have reported similar problems on OpenSuse 11.2 with a
different version of autoconf-archive [1], so I've committed a change to
not use these macros anymore [2].
> Then I ran
>
> ./configure --prefix=/home/mario/native-sca-1.0.incubating-M3/deploy --with-apr=/home/mario/httpd-2.2.14/deploy --with-httpd=/home/mario/httpd-2.2.14/deploy --with-libcurl=/usr --with-libxml2=/usr
>
> I renamed the directory to native-sca-1.0.incubating-M3 so don’t wonder about that.
Your log shows two different directories:
> make[3]: Entering directory
> `/home/mario/native-sca-1.0.incubating-M3/modules/scheme'
/home/mario/native-sca-1.0.incubating-M3
> g++ -DHAVE_CONFIG_H -I. -I../.. -I.
> -I/home/mario/tuscany_sca_native-1.0-incubator-M3-src/deploy/kernel
/home/mario/native-sca-1.0.incubating-M3-src
> eval-test.cpp:27:22: error: stream.hpp: No such file or directory
It looks like the sources are now in ...-M3 but bootstrap + configure
were run from ...-M3-src. Did you rename ...-M3-src to ...-M3 after
running bootstrap + configure?
Can you try to run bootstrap + configure + make again from ...-M3?
> Then I would run make.
> The first error I could resolve, as already described, by deleting the redefinition.
...
> fstream.hpp:157:1: warning: "debug" redefined
> fstream.hpp:156:1: warning: this is the location of the previous
> definition
> In file included from tree.hpp:33,
> from kernel-test.cpp:31:
> monad.hpp:278:35: error: macro "debug" passed 2 arguments, but takes
> just 1
Fixed in [2] as well.
Can you git pull or svn up to get [2], try again and let me know? Thanks.
[1] http://www.mail-archive.com/dev@tuscany.apache.org/msg11386.html
[2] http://www.mail-archive.com/commits@tuscany.apache.org/msg08941.html
--
Jean-Sebastien
AW: Compilation problem tuscany-sca-cpp
Posted by Mario Grotschar <ma...@gmail.com>.
I think I forgot to send the make error output.
Here it is.
make: *** No targets specified and no makefile found. Stop.
mario@ubuntu:~$ cd native-sca-1.0.incubating-M3/
mario@ubuntu:~/native-sca-1.0.incubating-M3$ make
make all-recursive
make[1]: Entering directory `/home/mario/native-sca-1.0.incubating-M3'
Making all in kernel
make[2]: Entering directory `/home/mario/native-sca-1.0.incubating-M3/kernel'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mario/native-sca-1.0.incubating-M3/kernel'
Making all in modules
make[2]: Entering directory `/home/mario/native-sca-1.0.incubating-M3/modules'
Making all in scheme
make[3]: Entering directory `/home/mario/native-sca-1.0.incubating-M3/modules/scheme'
g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I/home/mario/tuscany_sca_native-1.0-incubator-M3-src/deploy/kernel -I/home/mario/httpd-2.2.14/deploy/include -I/usr/include/libxml2 -I/usr/include/xulrunner-1.9.1.7/unstable -I/usr/include -O3 -std=c++0x -fmessage-length=0 -MT eval-test.o -MD -MP -MF .deps/eval-test.Tpo -c -o eval-test.o eval-test.cpp
eval-test.cpp:27:22: error: stream.hpp: No such file or directory
eval-test.cpp:28:22: error: string.hpp: No such file or directory
In file included from driver.hpp:31,
from eval-test.cpp:29:
eval.hpp:30:20: error: list.hpp: No such file or directory
eval.hpp:31:21: error: value.hpp: No such file or directory
In file included from eval.hpp:32,
from driver.hpp:31,
from eval-test.cpp:29:
primitive.hpp:32:24: error: function.hpp: No such file or directory
In file included from eval.hpp:32,
from driver.hpp:31,
from eval-test.cpp:29:
primitive.hpp:39: error: ‘value’ does not name a type
primitive.hpp:40: error: ‘value’ does not name a type
primitive.hpp:41: error: ‘value’ does not name a type
primitive.hpp:46: error: expected constructor, destructor, or type conversion before ‘*’ token
primitive.hpp:51: error: expected constructor, destructor, or type conversion before ‘*’ token
primitive.hpp:53: error: ‘ostream’ was not declared in this scope
primitive.hpp:53: error: ‘out’ was not declared in this scope
primitive.hpp:53: error: expected ‘,’ or ‘;’ before ‘{’ token
primitive.hpp:58: error: expected constructor, destructor, or type conversion before ‘&’ token
primitive.hpp:64: error: ‘ostream’ was not declared in this scope
primitive.hpp:64: error: ‘out’ was not declared in this scope
primitive.hpp:64: error: expected ‘,’ or ‘;’ before ‘{’ token
primitive.hpp:69: error: expected constructor, destructor, or type conversion before ‘&’ token
primitive.hpp:75: error: ‘value’ does not name a type
primitive.hpp:79: error: ‘value’ does not name a type
primitive.hpp:83: error: ‘value’ does not name a type
primitive.hpp:87: error: ‘value’ does not name a type
primitive.hpp:91: error: ‘value’ does not name a type
primitive.hpp:95: error: ‘value’ does not name a type
primitive.hpp:104: error: ‘value’ does not name a type
primitive.hpp:108: error: ‘value’ does not name a type
primitive.hpp:114: error: ‘value’ does not name a type
primitive.hpp:120: error: ‘value’ does not name a type
primitive.hpp:124: error: ‘value’ does not name a type
primitive.hpp:128: error: ‘value’ does not name a type
primitive.hpp:137: error: ‘value’ does not name a type
primitive.hpp:146: error: ‘value’ does not name a type
primitive.hpp:154: error: ‘value’ does not name a type
primitive.hpp:158: error: ‘value’ does not name a type
primitive.hpp:162: error: ‘value’ does not name a type
primitive.hpp:166: error: ‘value’ does not name a type
primitive.hpp:170: error: ‘value’ does not name a type
primitive.hpp:174: error: ‘value’ does not name a type
primitive.hpp:178: error: ‘value’ does not name a type
primitive.hpp:182: error: ‘value’ does not name a type
primitive.hpp:186: error: ‘value’ does not name a type
primitive.hpp:191: error: expected ‘,’ or ‘...’ before ‘&’ token
primitive.hpp:191: error: ISO C++ forbids declaration of ‘value’ with no type
primitive.hpp: In function ‘const bool tuscany::scheme::isPrimitiveProcedure(int)’:
primitive.hpp:192: error: ‘proc’ was not declared in this scope
primitive.hpp:192: error: ‘primitiveSymbol’ was not declared in this scope
primitive.hpp:192: error: ‘isTaggedList’ was not declared in this scope
primitive.hpp: At global scope:
primitive.hpp:195: error: expected ‘,’ or ‘...’ before ‘&’ token
primitive.hpp:195: error: ISO C++ forbids declaration of ‘value’ with no type
primitive.hpp: In function ‘const bool tuscany::scheme::isSelfEvaluating(int)’:
primitive.hpp:196: error: ‘exp’ was not declared in this scope
primitive.hpp:196: error: ‘isNil’ was not declared in this scope
primitive.hpp:198: error: ‘exp’ was not declared in this scope
primitive.hpp:198: error: ‘isNumber’ was not declared in this scope
primitive.hpp:200: error: ‘exp’ was not declared in this scope
primitive.hpp:200: error: ‘isString’ was not declared in this scope
primitive.hpp:202: error: ‘exp’ was not declared in this scope
primitive.hpp:202: error: ‘isBool’ was not declared in this scope
primitive.hpp:204: error: ‘exp’ was not declared in this scope
primitive.hpp:204: error: ‘isLambda’ was not declared in this scope
primitive.hpp: At global scope:
primitive.hpp:209: error: ‘value’ does not name a type
primitive.hpp:213: error: expected initializer before ‘primitiveProcedure’
primitive.hpp:217: error: expected initializer before ‘<’ token
primitive.hpp:243: error: expected initializer before ‘<’ token
primitive.hpp:269: error: expected ‘,’ or ‘...’ before ‘&’ token
primitive.hpp:269: error: ISO C++ forbids declaration of ‘value’ with no type
primitive.hpp: In function ‘const bool tuscany::scheme::isFalse(int)’:
primitive.hpp:270: error: ‘exp’ was not declared in this scope
primitive.hpp: At global scope:
primitive.hpp:273: error: expected ‘,’ or ‘...’ before ‘&’ token
primitive.hpp:273: error: ISO C++ forbids declaration of ‘value’ with no type
primitive.hpp: In function ‘const bool tuscany::scheme::isTrue(int)’:
primitive.hpp:274: error: ‘exp’ was not declared in this scope
primitive.hpp: At global scope:
primitive.hpp:277: error: expected ‘,’ or ‘...’ before ‘&’ token
primitive.hpp:277: error: ISO C++ forbids declaration of ‘value’ with no type
primitive.hpp: In function ‘const bool tuscany::scheme::isQuoted(int)’:
primitive.hpp:278: error: ‘exp’ was not declared in this scope
primitive.hpp:278: error: ‘quoteSymbol’ was not declared in this scope
primitive.hpp:278: error: ‘isTaggedList’ was not declared in this scope
primitive.hpp: At global scope:
primitive.hpp:281: error: ‘value’ does not name a type
primitive.hpp:285: error: ‘value’ does not name a type
In file included from eval.hpp:33,
from driver.hpp:31,
from eval-test.cpp:29:
io.hpp:40: error: ‘value’ does not name a type
io.hpp:41: error: ‘value’ does not name a type
io.hpp:42: error: ‘value’ does not name a type
io.hpp:44: error: expected ‘,’ or ‘...’ before ‘&’ token
io.hpp:44: error: ISO C++ forbids declaration of ‘string’ with no type
io.hpp: In function ‘const double tuscany::scheme::stringToNumber(int)’:
io.hpp:45: error: ‘str’ was not declared in this scope
io.hpp:45: error: ‘c_str’ was not declared in this scope
io.hpp:45: error: ‘atof’ was not declared in this scope
io.hpp: At global scope:
io.hpp:64: error: expected ‘,’ or ‘...’ before ‘&’ token
io.hpp:64: error: ISO C++ forbids declaration of ‘value’ with no type
io.hpp: In function ‘const bool tuscany::scheme::isLeftParenthesis(int)’:
io.hpp:65: error: ‘leftParenthesis’ was not declared in this scope
io.hpp:65: error: ‘token’ was not declared in this scope
io.hpp: At global scope:
io.hpp:68: error: expected ‘,’ or ‘...’ before ‘&’ token
io.hpp:68: error: ISO C++ forbids declaration of ‘value’ with no type
io.hpp: In function ‘const bool tuscany::scheme::isRightParenthesis(int)’:
io.hpp:69: error: ‘rightParenthesis’ was not declared in this scope
io.hpp:69: error: ‘token’ was not declared in this scope
io.hpp: At global scope:
io.hpp:72: error: ‘istream’ was not declared in this scope
io.hpp:72: error: ‘in’ was not declared in this scope
io.hpp:72: error: expected ‘,’ or ‘;’ before ‘{’ token
In file included from /usr/include/c++/4.3/new:45,
from /usr/include/c++/4.3/ext/new_allocator.h:37,
from /usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39,
from /usr/include/c++/4.3/bits/allocator.h:53,
from /usr/include/c++/4.3/string:48,
from environment.hpp:33,
from eval.hpp:34,
from driver.hpp:31,
from eval-test.cpp:29:
/usr/include/c++/4.3/exception:40: error: expected `}' before end of line
/usr/include/c++/4.3/exception:40: error: expected `}' before end of line
/usr/include/c++/4.3/exception:40: error: expected declaration before end of line
make[3]: *** [eval-test.o] Error 1
make[3]: Leaving directory `/home/mario/native-sca-1.0.incubating-M3/modules/scheme'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mario/native-sca-1.0.incubating-M3/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mario/native-sca-1.0.incubating-M3'
make: *** [all] Error 2
-----Ursprüngliche Nachricht-----
Von: Mario Grotschar [mailto:mario.grotschar@gmail.com]
Gesendet: Sonntag, 21. Februar 2010 01:10
An: 'user@tuscany.apache.org'
Betreff: AW: Compilation problem tuscany-sca-cpp
I tried from git clone git://git.apache.org/tuscany-sca-cpp and svn co http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk.
I then ran ./bootstrap.
The first run caused an error
Running libtoolize --force...libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
done.
Running aclocal...done.
Running autoconf...configure.ac:346: error: possibly undefined macro: AC_PROG_JAVAC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:347: error: possibly undefined macro: AC_PROG_JAR
Running it again was successful.
Then I ran
./configure --prefix=/home/mario/native-sca-1.0.incubating-M3/deploy --with-apr=/home/mario/httpd-2.2.14/deploy --with-httpd=/home/mario/httpd-2.2.14/deploy --with-libcurl=/usr --with-libxml2=/usr
I renamed the directory to native-sca-1.0.incubating-M3 so don’t wonder about that.
Then I would run make.
The first error I could resolve, as already described, by deleting the redefinition.
But the mentioned error comes.
-----Ursprüngliche Nachricht-----
Von: Luciano Resende [mailto:luckbr1975@gmail.com]
Gesendet: Sonntag, 21. Februar 2010 00:33
An: user@tuscany.apache.org
Betreff: Re: Compilation problem tuscany-sca-cpp
Just to clarify, are you trying to build the Tuscany SCA CPP from
https://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/
If not, could you please try that...
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: Compilation problem tuscany-sca-cpp
Posted by Luciano Resende <lu...@gmail.com>.
Just to clarify, are you trying to build the Tuscany SCA CPP from
https://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/
If not, could you please try that...
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/