You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Bryan Kearney <bk...@redhat.com> on 2009/04/07 22:43:41 UTC

Trying to build the broker on F10

I am trying to build the latest cpp on f10. Running configure I get the 
following error:

./configure: line 1870: syntax error near unexpected token `dist-bzip2'
./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'

I am not an autoconf guy.. can this build on f10?

-- bk

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Gordon Sim <gs...@redhat.com>.
Ján Sáreník wrote:
> On Wed, Apr 08, 2009 at 11:52:12AM +0100, Gordon Sim wrote:
>> Ján Sáreník wrote:
>>> even the releases (M4) require you to run
>>> bootstrap which is really bad example of GNU autotools usage.
>> I don't believe that is the case. The cpp M4 tarball[1] only requires  
>> ./configure.
> 
> Sorry, I was checking only all-in-one tarball at:
> http://www.apache.org/dist/qpid/M4/qpid-M4.tar.gz

Yes, thats just an export of the svn tree I think and not in my view 
particularly useful as a release artifact (especially not for the c++ 
components as you point out).

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Ján Sáreník <js...@redhat.com>.
On Wed, Apr 08, 2009 at 11:52:12AM +0100, Gordon Sim wrote:
> Ján Sáreník wrote:
>> even the releases (M4) require you to run
>> bootstrap which is really bad example of GNU autotools usage.
>
> I don't believe that is the case. The cpp M4 tarball[1] only requires  
> ./configure.

Sorry, I was checking only all-in-one tarball at:
http://www.apache.org/dist/qpid/M4/qpid-M4.tar.gz

  Jasan

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Gordon Sim <gs...@redhat.com>.
Ján Sáreník wrote:
> even the releases (M4) require you to run
> bootstrap which is really bad example of GNU autotools usage.

I don't believe that is the case. The cpp M4 tarball[1] only requires 
./configure.

[1] http://www.apache.org/dist/qpid/M4/qpid-cpp-M4.tar.gz

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Ján Sáreník <js...@redhat.com>.
Hi Bryan!

Thanks for bringing this up. I will now try to explain the
basics of GNU Autotools (intended mostly for those maintaining
autotools-based projects).

On Tue, Apr 07, 2009 at 04:43:41PM -0400, Bryan Kearney wrote:
> I am trying to build the latest cpp on f10. Running configure I get the  
> following error:
>
> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
>
> I am not an autoconf guy.. can this build on f10?

The basic idea of GNU Autotools is that only developers with
particular versions of the tools would do all the needed stuff
to generate ./configure script along with all Makefile.in
(currently what ./bootstrap does).

Such sources would be then packaged into tarballs (yes, you
can automate it even for nightly snapshots) and then nobody
will have problems with their version of GNU auto* because
the generated ./configure script is full of _portable_ shell
code --> the people who want to compile a package from such
tarball should not be required to have autotools installed on
their system at all. Yes, there are no such tarballs for qpid
at the moment and even the releases (M4) require you to run
bootstrap which is really bad example of GNU autotools usage.

See the tutorial from the GNU Autotools author for more info:
http://www.lrde.epita.fr/~adl/autotools.html


Otherwise I am all for change to CMake, but only if there is
somebody who really knows how it works (and I am not the one).
The change of build system does not make us able to live
without reading docs.

  Best regards
   Jasan

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Nuno Santos <ns...@redhat.com>.
Bryan Kearney wrote:
> I am trying to build the latest cpp on f10. Running configure I get the 
> following error:
> 
> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
> 
> I am not an autoconf guy.. can this build on f10?

It does build under F10, it may be that you have missing packages or 
older versions of automake or autoconf?

In my system, with the following packages, ./configure works ok:

$ rpm -qa auto\*
autoconf-2.63-1.fc10.noarch
automake-1.10.1-2.noarch

Nuno


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Bryan Kearney <bk...@redhat.com>.
Bryan Kearney wrote:
> Jonathan Robie wrote:
>> Bryan Kearney wrote:
>>> I am trying to build the latest cpp on f10. Running configure I get 
>>> the following error:
>>>
>>> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
>>> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
>>>
>>> I am not an autoconf guy.. can this build on f10?
>>
>> Me  neither, but did you run ./bootstrap before you ran ./configure?
>>
>> Jonathan
> 


Never mind.. the bootstrap was what did it. I missed that in the doco. 
Stupid user error.

-- bk

> I had not.. but this is what I got when I ran it. I still get the 
> configure error after it.
> 
> [bkearney@localhost cpp]$ ./bootstrap
> configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
> configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
> configure.ac: that aclocal.m4 is present in the top-level directory,
> configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
> /usr/share/automake-1.10/am/depend2.am: am__fastdepCXX does not appear 
> in AM_CONDITIONAL
> /usr/share/automake-1.10/am/depend2.am:   The usual way to define 
> `am__fastdepCXX' is to add `AC_PROG_CXX'
> /usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run 
> `aclocal' and `autoconf' again.
> /usr/share/automake-1.10/am/depend2.am: AMDEP does not appear in 
> AM_CONDITIONAL
> /usr/share/automake-1.10/am/depend2.am:   The usual way to define 
> `AMDEP' is to add one of the compiler tests
> /usr/share/automake-1.10/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, 
> AC_PROG_CXX, AC_PROG_OBJC,
> /usr/share/automake-1.10/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, 
> AM_PROG_UPC
> /usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run 
> `aclocal' and `autoconf' again.
> src/Makefile.am: object `Event.lo' created by `qpid/console/Event.cpp' 
> and `qpid/cluster/Event.cpp'
> src/Makefile.am: object `Connection.lo' created by 
> `qpid/amqp_0_10/Connection.cpp' and `qpid/cluster/Connection.cpp'
> src/Makefile.am: object `Broker.lo' created by `qpid/broker/Broker.cpp' 
> and `qpid/console/Broker.cpp'
> src/Makefile.am: object `ExpiryPolicy.lo' created by 
> `qpid/broker/ExpiryPolicy.cpp' and `qpid/cluster/ExpiryPolicy.cpp'
> src/Makefile.am: object `Connection.lo' created by 
> `qpid/broker/Connection.cpp' and `qpid/cluster/Connection.cpp'
> src/Makefile.am: object `SessionManager.lo' created by 
> `qpid/broker/SessionManager.cpp' and `qpid/console/SessionManager.cpp'
> src/Makefile.am: object `SystemInfo.lo' created by 
> `qpid/sys/solaris/SystemInfo.cpp' and `qpid/sys/posix/SystemInfo.cpp'
> src/Makefile.am: object `SessionState.lo' created by 
> `qpid/SessionState.cpp' and `qpid/broker/SessionState.cpp'
> src/Makefile.am: object `SessionHandler.lo' created by 
> `qpid/amqp_0_10/SessionHandler.cpp' and `qpid/broker/SessionHandler.cpp'
> src/Makefile.am: object `Options.lo' created by `qpid/log/Options.cpp' 
> and `qpid/Options.cpp'
> src/Makefile.am: object `Shlib.lo' created by `qpid/sys/Shlib.cpp' and 
> `qpid/sys/posix/Shlib.cpp'
> src/Makefile.am: object `Timer.lo' created by `qpid/sys/Timer.cpp' and 
> `qpid/broker/Timer.cpp'
> /usr/share/automake-1.10/am/depend2.am: am__fastdepCC does not appear in 
> AM_CONDITIONAL
> /usr/share/automake-1.10/am/depend2.am:   The usual way to define 
> `am__fastdepCC' is to add `AC_PROG_CC'
> /usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run 
> `aclocal' and `autoconf' again.
> [bkearney@localhost cpp]$ ls
> aclocal.m4          build-aux     DESIGN    INSTALL          make-dist 
>     qpid-autotools-install  rubygen   xml
> autom4te.cache      config.log    docs      INSTALL-WINDOWS  Makefile.am 
>    qpid-config.in          src
> boost-1.32-support  configure     etc       LICENSE managementgen  
> README                  SSL
> bootstrap           configure.ac  examples  m4               NOTICE     
> RELEASE_NOTES           versions
> [bkearney@localhost cpp]$ ./configure
> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
> [bkearney@localhost cpp]$ ./configure --prefix=/usr/local
> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
> [bkearney@localhost cpp]$ sudo ./configure --prefix=/usr/local
> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
> [bkearney@localhost cpp]$
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:dev-subscribe@qpid.apache.org
> 


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Bryan Kearney <bk...@redhat.com>.
Jonathan Robie wrote:
> Bryan Kearney wrote:
>> I am trying to build the latest cpp on f10. Running configure I get 
>> the following error:
>>
>> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
>> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
>>
>> I am not an autoconf guy.. can this build on f10?
> 
> Me  neither, but did you run ./bootstrap before you ran ./configure?
> 
> Jonathan

I had not.. but this is what I got when I ran it. I still get the 
configure error after it.

[bkearney@localhost cpp]$ ./bootstrap
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
/usr/share/automake-1.10/am/depend2.am: am__fastdepCXX does not appear 
in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am:   The usual way to define 
`am__fastdepCXX' is to add `AC_PROG_CXX'
/usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run 
`aclocal' and `autoconf' again.
/usr/share/automake-1.10/am/depend2.am: AMDEP does not appear in 
AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am:   The usual way to define 
`AMDEP' is to add one of the compiler tests
/usr/share/automake-1.10/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, 
AC_PROG_CXX, AC_PROG_OBJC,
/usr/share/automake-1.10/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, 
AM_PROG_UPC
/usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run 
`aclocal' and `autoconf' again.
src/Makefile.am: object `Event.lo' created by `qpid/console/Event.cpp' 
and `qpid/cluster/Event.cpp'
src/Makefile.am: object `Connection.lo' created by 
`qpid/amqp_0_10/Connection.cpp' and `qpid/cluster/Connection.cpp'
src/Makefile.am: object `Broker.lo' created by `qpid/broker/Broker.cpp' 
and `qpid/console/Broker.cpp'
src/Makefile.am: object `ExpiryPolicy.lo' created by 
`qpid/broker/ExpiryPolicy.cpp' and `qpid/cluster/ExpiryPolicy.cpp'
src/Makefile.am: object `Connection.lo' created by 
`qpid/broker/Connection.cpp' and `qpid/cluster/Connection.cpp'
src/Makefile.am: object `SessionManager.lo' created by 
`qpid/broker/SessionManager.cpp' and `qpid/console/SessionManager.cpp'
src/Makefile.am: object `SystemInfo.lo' created by 
`qpid/sys/solaris/SystemInfo.cpp' and `qpid/sys/posix/SystemInfo.cpp'
src/Makefile.am: object `SessionState.lo' created by 
`qpid/SessionState.cpp' and `qpid/broker/SessionState.cpp'
src/Makefile.am: object `SessionHandler.lo' created by 
`qpid/amqp_0_10/SessionHandler.cpp' and `qpid/broker/SessionHandler.cpp'
src/Makefile.am: object `Options.lo' created by `qpid/log/Options.cpp' 
and `qpid/Options.cpp'
src/Makefile.am: object `Shlib.lo' created by `qpid/sys/Shlib.cpp' and 
`qpid/sys/posix/Shlib.cpp'
src/Makefile.am: object `Timer.lo' created by `qpid/sys/Timer.cpp' and 
`qpid/broker/Timer.cpp'
/usr/share/automake-1.10/am/depend2.am: am__fastdepCC does not appear in 
AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am:   The usual way to define 
`am__fastdepCC' is to add `AC_PROG_CC'
/usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run 
`aclocal' and `autoconf' again.
[bkearney@localhost cpp]$ ls
aclocal.m4          build-aux     DESIGN    INSTALL          make-dist 
     qpid-autotools-install  rubygen   xml
autom4te.cache      config.log    docs      INSTALL-WINDOWS  Makefile.am 
    qpid-config.in          src
boost-1.32-support  configure     etc       LICENSE 
managementgen  README                  SSL
bootstrap           configure.ac  examples  m4               NOTICE 
     RELEASE_NOTES           versions
[bkearney@localhost cpp]$ ./configure
./configure: line 1870: syntax error near unexpected token `dist-bzip2'
./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
[bkearney@localhost cpp]$ ./configure --prefix=/usr/local
./configure: line 1870: syntax error near unexpected token `dist-bzip2'
./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
[bkearney@localhost cpp]$ sudo ./configure --prefix=/usr/local
./configure: line 1870: syntax error near unexpected token `dist-bzip2'
./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
[bkearney@localhost cpp]$


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Trying to build the broker on F10

Posted by Jonathan Robie <jo...@redhat.com>.
Bryan Kearney wrote:
> I am trying to build the latest cpp on f10. Running configure I get 
> the following error:
>
> ./configure: line 1870: syntax error near unexpected token `dist-bzip2'
> ./configure: line 1870: `AM_INIT_AUTOMAKE(dist-bzip2 subdir-objects)'
>
> I am not an autoconf guy.. can this build on f10?

Me  neither, but did you run ./bootstrap before you ran ./configure?

Jonathan

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org