I ran into the same problem with qpid-0.12 in Ubuntu 11.04 64-bit. I had
much better luck with the cmake build.
Here are the steps I took to successfully build:
Install Qpid Dependencies
packages:
g++
make
cmake
e2fsprogs
autoconf
automake
autotools-dev
libtool
pkg-config
libboost1.42-all-dev
libcorosync-dev
libxqilla-dev
libxerces-c-dev
libsasl2-dev
sasl2-bin
libtool
uuid-dev
libnss3-dev
libnspr4-dev
ruby
ruby-dev
perl
libperl-dev
swig
help2man
doxygen (builds documentation, very large and not required)
sudo apt-get install g++ make cmake e2fsprogs autoconf automake
autotools-dev libtool pkg-config libboost1.42-all-dev libcorosync-dev
libxqilla-dev libxerces-c-dev libsasl2-dev sasl2-bin libtool uuid-dev
libnss3-dev libnspr4-dev ruby ruby-dev perl libperl-dev swig help2man
doxygen
Download Qpid
http://www.apache.org/dyn/closer.cgi/qpid/0.12/qpid-0.12.tar.gz
Build Qpid
Extract the qpid-0.12 folder
go to:
./qpid-0.12/cpp
run:
cmake -G "Unix Makefiles"
make all
make test (some tests failed because I did not have cert_util and
the corosync daemon was not running)
Install Qpid
run:
sudo make install
(This failed on installing the documentation, though everything
else installed correctly. ./docs/api/html is missing, and all the docs are
in ./docs/api. I created the 'html' folder and copied the files from
./docs/api into it. This fixed the problem.)
On Sun, Nov 27, 2011 at 4:53 AM, Fraser Adams <[email protected]
> wrote:
> Hi all,
> I (finally) decided to upgrade to qpid 0.12
>
> I downloaded from **http://mirror.catn.com/pub/**
> apache//qpid/0.12/qpid-0.12.**tar.gz*<http://mirror.catn.com/pub/apache//qpid/0.12/qpid-0.12.tar.gz*>
>
> *I did
> ./bootstrap
>
> and
>
> ./configure
>
> With no problems, but unfortunately with make I get the following fatal
> error
>
> qpid/broker/Daemon.cpp: In member function ‘void
> qpid::broker::Daemon::fork()’:
> qpid/broker/Daemon.cpp:96: error: ignoring return value of ‘ssize_t
> write(int, const void*, size_t)’, declared with attribute warn_unused_result
> qpid/broker/Daemon.cpp:102: error: ignoring return value of ‘ssize_t
> write(int, const void*, size_t)’, declared with attribute warn_unused_result
> make[3]: *** [qpid/broker/Daemon.lo] Error 1
> make[3]: Leaving directory `/home/fadams/java/qpid-0.12/**cpp/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/fadams/java/qpid-0.12/**cpp/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/fadams/java/qpid-0.12/**cpp/src'
> make: *** [all-recursive] Error 1
>
>
> I'm compiling with the following:
>
> gcc -v
> Using built-in specs.
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> 4.4.1-4ubuntu9' --with-bugurl=file:///usr/**share/doc/gcc-4.4/README.Bugs
> --enable-languages=c,c++,**fortran,objc,obj-c++ --prefix=/usr
> --enable-shared --enable-multiarch --enable-linker-build-id
> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --with-gxx-include-dir=/usr/**include/c++/4.4
> --program-suffix=-4.4 --enable-nls --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-objc-gc --disable-werror
> --with-arch-32=i486 --with-tune=generic --enable-checking=release
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
>
>
> I've previously successfully build qpid 0.8 and 0.10 and whilst I've had
> to tweak the make install I've never had it break during the basic make. I
> have deleted everything from my previous 0.10 install so it should be in a
> clean state, though of course it currently means I don't have a working
> qpidd on my box :-(
>
> I'd appreciate any thoughts - I'm guessing this is a bug in the makefile.
> Has anyone else had this issue?
>
> Cheers,
> Frase.
>
>
> ------------------------------**------------------------------**---------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact:
> mailto:users-subscribe@qpid.**apache.org<[email protected]>
>
>
--
Matt Stevenson.