FAQ
Hi All,

I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

http://code.google.com/p/pyactivemq/wiki/Building

and

http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

"
aclocal: couldn't open directory 'config': No such file or directory
autoreconf: aclocal failed with exit status: 1
"

So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

"
.ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
autoreconf: aclocal failed with exit status: 1
"

Does any one have an idea what the problem could be or where I should look

Many thanks,

Neil

Search Discussions

  • Timothy Bish at Sep 2, 2010 at 5:46 pm

    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Neil Pritchard at Sep 3, 2010 at 7:51 am
    -----Original Message-----
    From: Timothy Bish
    Sent: 02 September 2010 18:46
    To: users@activemq.apache.org
    Subject: Re: ActiveMQ C++ build errors
    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards

    --
    Tim Bish



    Hi Tim,


    The command that's failing is ./autogen.sh
    The only line that's executed in that script reads;
    "
    autoconf --force install -I config -I m4
    "

    It seems to fail because there's no file or directory called 'config' in that directory.

    I'm running the commands as root, permissions are ok.

    I'll be very grateful for any help on this.

    Cheers,

    Neil






    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Timothy Bish at Sep 3, 2010 at 1:05 pm

    On Fri, 2010-09-03 at 08:50 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 02 September 2010 18:46
    To: users@activemq.apache.org
    Subject: Re: ActiveMQ C++ build errors
    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards
    The fact that you don't have a config dir is an error, as the CPP
    distribution ships with an already configured config directory. You
    shouldn't even need to run the autogen.sh on most systems if you are
    using AMQCPP releases in the 3.x series. I'd try grabbing a copy of the
    latest 3.2.2 release and going from there.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Neil Pritchard at Sep 3, 2010 at 1:29 pm
    -----Original Message-----
    From: Timothy Bish
    Sent: 03 September 2010 14:05
    To: users@activemq.apache.org
    Subject: RE: ActiveMQ C++ build errors
    On Fri, 2010-09-03 at 08:50 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 02 September 2010 18:46
    To: users@activemq.apache.org
    Subject: Re: ActiveMQ C++ build errors
    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards
    The fact that you don't have a config dir is an error, as the CPP
    distribution ships with an already configured config directory. You
    shouldn't even need to run the autogen.sh on most systems if you are
    using AMQCPP releases in the 3.x series. I'd try grabbing a copy of the
    latest 3.2.2 release and going from there.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/





    Hi Tim,

    I checked out the package from:

    https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk/activemq-cpp

    and

    http://pyactivemq.googlecode.com/svn/trunk

    The config directory looks to be missing from the repository somehow ?!??

    I've since found a complete package in a tarball on:

    http://mirrors.ukfast.co.uk/sites/ftp.apache.org//activemq/activemq-cpp/source/activemq-cpp-library-3.2.2-src.tar.gz

    The above package compiled fine, but I ran into problems when running:
    "
    python setup.py build
    "

    In a neighboring directory containing the uncompressed package checked-out from http://pyactivemq.googlecode.com/svn/trunk
    The report I had read

    python setup.py build
    running build
    running build_ext
    building 'pyactivemq' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_NO_PY_SIGNATURES=1 -DPYACTIVEMQ_ENABLE_DOCSTRINGS=0 -I/opt/activemq-cpp-3.0.1/include/activemq-cpp-3.0.1 -I/usr/include/python2.6 -c src/main/ActiveMQConnectionFactory.cpp -o build/temp.linux-x86_64-2.6/src/main/ActiveMQConnectionFactory.o
    cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
    src/main/ActiveMQConnectionFactory.cpp:20:53: error: activemq/core/ActiveMQConnectionFactory.h: No such file or directory
    src/main/ActiveMQConnectionFactory.cpp:24: error: 'activemq' has not been declared
    src/main/ActiveMQConnectionFactory.cpp:25: error: 'cms' has not been declared
    src/main/ActiveMQConnectionFactory.cpp: In function 'void export_ActiveMQConnectionFactory()':
    src/main/ActiveMQConnectionFactory.cpp:38: error: 'ActiveMQConnectionFactory' was not declared in this scope
    src/main/ActiveMQConnectionFactory.cpp:38: error: 'ConnectionFactory' was not declared in this scope
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is invalid
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is invalid
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 2 is invalid
    src/main/ActiveMQConnectionFactory.cpp:41: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:43: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:46: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:48: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:51: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:53: error: 'ActiveMQConnectionFactory' is not a class or namespace
    error: command 'gcc' failed with exit status 1


    Sooo..... I realized that pyactivemq has been written to work with activeMQ-cpp 3.1.x, and downloaded the tar package 3.1.3, compiled it, and tried the setup script for pyactivemq again, but got the same errors.... :-(


    http://apache.mirror.anlx.net//activemq/activemq-cpp/source/activemq-cpp-library-3.1.3-src.tar.gz
  • Timothy Bish at Sep 3, 2010 at 1:47 pm

    On Fri, 2010-09-03 at 14:28 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 03 September 2010 14:05
    To: users@activemq.apache.org
    Subject: RE: ActiveMQ C++ build errors
    On Fri, 2010-09-03 at 08:50 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 02 September 2010 18:46
    To: users@activemq.apache.org
    Subject: Re: ActiveMQ C++ build errors
    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards
    The fact that you don't have a config dir is an error, as the CPP
    distribution ships with an already configured config directory. You
    shouldn't even need to run the autogen.sh on most systems if you are
    using AMQCPP releases in the 3.x series. I'd try grabbing a copy of the
    latest 3.2.2 release and going from there.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/





    Hi Tim,

    I checked out the package from:

    https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk/activemq-cpp

    and

    http://pyactivemq.googlecode.com/svn/trunk

    The config directory looks to be missing from the repository somehow ?!??
    No, this directory is created at release time and shouldn't be included
    in the svn repo.
    I've since found a complete package in a tarball on:

    http://mirrors.ukfast.co.uk/sites/ftp.apache.org//activemq/activemq-cpp/source/activemq-cpp-library-3.2.2-src.tar.gz

    The above package compiled fine, but I ran into problems when running:
    "
    python setup.py build
    "

    In a neighboring directory containing the uncompressed package checked-out from http://pyactivemq.googlecode.com/svn/trunk
    The report I had read

    python setup.py build
    running build
    running build_ext
    building 'pyactivemq' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_NO_PY_SIGNATURES=1 -DPYACTIVEMQ_ENABLE_DOCSTRINGS=0 -I/opt/activemq-cpp-3.0.1/include/activemq-cpp-3.0.1 -I/usr/include/python2.6 -c src/main/ActiveMQConnectionFactory.cpp -o build/temp.linux-x86_64-2.6/src/main/ActiveMQConnectionFactory.o
    cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
    src/main/ActiveMQConnectionFactory.cpp:20:53: error: activemq/core/ActiveMQConnectionFactory.h: No such file or directory
    src/main/ActiveMQConnectionFactory.cpp:24: error: 'activemq' has not been declared
    src/main/ActiveMQConnectionFactory.cpp:25: error: 'cms' has not been declared
    src/main/ActiveMQConnectionFactory.cpp: In function 'void export_ActiveMQConnectionFactory()':
    src/main/ActiveMQConnectionFactory.cpp:38: error: 'ActiveMQConnectionFactory' was not declared in this scope
    src/main/ActiveMQConnectionFactory.cpp:38: error: 'ConnectionFactory' was not declared in this scope
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is invalid
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is invalid
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 2 is invalid
    src/main/ActiveMQConnectionFactory.cpp:41: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:43: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:46: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:48: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:51: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:53: error: 'ActiveMQConnectionFactory' is not a class or namespace
    error: command 'gcc' failed with exit status 1


    Sooo..... I realized that pyactivemq has been written to work with activeMQ-cpp 3.1.x, and downloaded the tar package 3.1.3, compiled it, and tried the setup script for pyactivemq again, but got the same errors.... :-(


    http://apache.mirror.anlx.net//activemq/activemq-cpp/source/activemq-cpp-library-3.1.3-src.tar.gz
    You should be able to build against 3.2.2, I've done it at least once.
    You have to make some changes in the setup.py script by hand if I recall
    correctly though. Some of the paths are hard-coded.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Neil Pritchard at Sep 7, 2010 at 8:13 am
    Hi Tim,

    Thanks for your help on this, finally managed to build it against activeMQ-CPP 3.2.2, will start testing now.

    Can you tell me how the Java ActiveMQ / ActiveMQ-CPP version numbers correlate, i.e. is activeMQ-CPP 3.2.2 the same as activeMQ (Java) 5.4.0 or 5.3.2 etc. ?

    The reason that I ask is that I'm using 5.3.2 now but in a system that's written mainly in Python and want to replace the Java components with Python to simplify the release procedure etc.. I also want to make use of the scheduled / delayed retries feature that's in 5.4.0.

    I may build a .deb for ubuntu unless someone out there has already written one, it would help us deploy our system and I'm sure other Ubuntu users would prefer to apt-get :-)

    Many thanks again for your help.

    Neil

    -----Original Message-----
    From: Timothy Bish
    Sent: 03 September 2010 14:47
    To: users@activemq.apache.org
    Subject: RE: ActiveMQ C++ build errors
    On Fri, 2010-09-03 at 14:28 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 03 September 2010 14:05
    To: users@activemq.apache.org
    Subject: RE: ActiveMQ C++ build errors
    On Fri, 2010-09-03 at 08:50 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 02 September 2010 18:46
    To: users@activemq.apache.org
    Subject: Re: ActiveMQ C++ build errors
    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards
    The fact that you don't have a config dir is an error, as the CPP
    distribution ships with an already configured config directory. You
    shouldn't even need to run the autogen.sh on most systems if you are
    using AMQCPP releases in the 3.x series. I'd try grabbing a copy of the
    latest 3.2.2 release and going from there.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/





    Hi Tim,

    I checked out the package from:

    https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk/activemq-cpp

    and

    http://pyactivemq.googlecode.com/svn/trunk

    The config directory looks to be missing from the repository somehow ?!??
    No, this directory is created at release time and shouldn't be included
    in the svn repo.
    I've since found a complete package in a tarball on:

    http://mirrors.ukfast.co.uk/sites/ftp.apache.org//activemq/activemq-cpp/source/activemq-cpp-library-3.2.2-src.tar.gz

    The above package compiled fine, but I ran into problems when running:
    "
    python setup.py build
    "

    In a neighboring directory containing the uncompressed package checked-out from http://pyactivemq.googlecode.com/svn/trunk
    The report I had read

    python setup.py build
    running build
    running build_ext
    building 'pyactivemq' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_NO_PY_SIGNATURES=1 -DPYACTIVEMQ_ENABLE_DOCSTRINGS=0 -I/opt/activemq-cpp-3.0.1/include/activemq-cpp-3.0.1 -I/usr/include/python2.6 -c src/main/ActiveMQConnectionFactory.cpp -o build/temp.linux-x86_64-2.6/src/main/ActiveMQConnectionFactory.o
    cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
    src/main/ActiveMQConnectionFactory.cpp:20:53: error: activemq/core/ActiveMQConnectionFactory.h: No such file or directory
    src/main/ActiveMQConnectionFactory.cpp:24: error: 'activemq' has not been declared
    src/main/ActiveMQConnectionFactory.cpp:25: error: 'cms' has not been declared
    src/main/ActiveMQConnectionFactory.cpp: In function 'void export_ActiveMQConnectionFactory()':
    src/main/ActiveMQConnectionFactory.cpp:38: error: 'ActiveMQConnectionFactory' was not declared in this scope
    src/main/ActiveMQConnectionFactory.cpp:38: error: 'ConnectionFactory' was not declared in this scope
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is invalid
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 1 is invalid
    src/main/ActiveMQConnectionFactory.cpp:38: error: template argument 2 is invalid
    src/main/ActiveMQConnectionFactory.cpp:41: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:43: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:46: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:48: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:51: error: 'ActiveMQConnectionFactory' is not a class or namespace
    src/main/ActiveMQConnectionFactory.cpp:53: error: 'ActiveMQConnectionFactory' is not a class or namespace
    error: command 'gcc' failed with exit status 1


    Sooo..... I realized that pyactivemq has been written to work with activeMQ-cpp 3.1.x, and downloaded the tar package 3.1.3, compiled it, and tried the setup script for pyactivemq again, but got the same errors.... :-(


    http://apache.mirror.anlx.net//activemq/activemq-cpp/source/activemq-cpp-library-3.1.3-src.tar.gz
    You should be able to build against 3.2.2, I've done it at least once.
    You have to make some changes in the setup.py script by hand if I recall
    correctly though. Some of the paths are hard-coded.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Timothy Bish at Sep 7, 2010 at 12:31 pm

    On Tue, 2010-09-07 at 09:13 +0100, Neil Pritchard wrote:
    Hi Tim,

    Thanks for your help on this, finally managed to build it against activeMQ-CPP 3.2.2, will start testing now.
    Great glad its working now.
    Can you tell me how the Java ActiveMQ / ActiveMQ-CPP version numbers correlate, i.e. is activeMQ-CPP 3.2.2 the same as activeMQ (Java) 5.4.0 or 5.3.2 etc. ?
    There is no correlation between release versions numbering of
    ActiveMQ-CPP and ActiveMQ. The C++ client is a stand alone client that
    is compatible with the AMQ broker 4.x and 5.x releases.
    The reason that I ask is that I'm using 5.3.2 now but in a system that's written mainly in Python and want to replace the Java components with Python to simplify the release procedure etc.. I also want to make use of the scheduled / delayed retries feature that's in 5.4.0.

    I may build a .deb for ubuntu unless someone out there has already written one, it would help us deploy our system and I'm sure other Ubuntu users would prefer to apt-get :-)
    If you like to develop some packaging tools for the C++ client we love
    the contribution to the project.
    Many thanks again for your help.
    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Neil Pritchard at Sep 6, 2010 at 2:58 pm
    Hi Tim,

    Thanks for your help on this, finally managed to build it against activeMQ-CPP 3.2.2, will start testing now.

    Can you tell me how the Java ActiveMQ / ActiveMQ-CPP version numbers correlate, i.e. is activeMQ-CPP 3.2.2 the same as activeMQ (Java) 5.4.0 or 5.3.2 etc. ?

    The reason that I ask is that I'm using 5.3.2 now but in a system that's written mainly in Python and want to replace the Java components with Python to simplify the release procedure etc.. I also want to make use of the scheduled / delayed retries feature that's in 5.4.0.

    I may build a .deb for ubuntu unless someone out there has already written one, it would help us deploy our system and I'm sure other Ubuntu users would prefer to apt-get :-)

    Many thanks again for your help.

    Neil


    -----Original Message-----
    From: Timothy Bish
    Sent: 03 September 2010 14:05
    To: users@activemq.apache.org
    Subject: RE: ActiveMQ C++ build errors
    On Fri, 2010-09-03 at 08:50 +0100, Neil Pritchard wrote:

    -----Original Message-----
    From: Timothy Bish
    Sent: 02 September 2010 18:46
    To: users@activemq.apache.org
    Subject: Re: ActiveMQ C++ build errors
    On Thu, 2010-09-02 at 16:58 +0100, Neil Pritchard wrote:
    Hi All,

    I'm trying to build activeMQ-CPP as part of pyactivemq on ubuntu 10.4, using the instructions kindly provided by

    http://code.google.com/p/pyactivemq/wiki/Building

    and

    http://www.nighttale.net/activemq/pyactivemq-on-ubuntu.html

    I get as far as "./autogen.sh && ./configure --prefix=/opt/activemq-cpp && make && make install" and get the response :-

    "
    aclocal: couldn't open directory 'config': No such file or directory
    autoreconf: aclocal failed with exit status: 1
    "

    So in an attempt to get more debug info I created an empty directory called 'config' an ran it again, this is the response that I got:-

    "
    .ibtoolize: AC_CONFIG_MACRO_DIR({m4}) conflicts with ACLOCAL_AMFLAGS=-I m4
    autoreconf: aclocal failed with exit status: 1
    "

    Does any one have an idea what the problem could be or where I should look

    Many thanks,

    Neil
    First question, if you run those commands separately, which one is
    actually failing.

    Second, since you are doing a make install into /opt/ does the user
    account have access to that folder?

    Regards
    The fact that you don't have a config dir is an error, as the CPP
    distribution ships with an already configured config directory. You
    shouldn't even need to run the autogen.sh on most systems if you are
    using AMQCPP releases in the 3.x series. I'd try grabbing a copy of the
    latest 3.2.2 release and going from there.

    Regards


    --
    Tim Bish

    Open Source Integration: http://fusesource.com
    ActiveMQ in Action: http://www.manning.com/snyder/

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesactivemq
postedSep 2, '10 at 3:59p
activeSep 7, '10 at 12:31p
posts9
users2
websiteactivemq.apache.org

2 users in discussion

Neil Pritchard: 5 posts Timothy Bish: 4 posts

People

Translate

site design / logo © 2022 Grokbase