You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "Warwick Richard (00101635)" <wa...@ubs.com> on 2009/08/21 16:14:02 UTC
Cannot compile Broker.cpp on Solaris 10
Hallo,
I'm trying to build the qpidc-0.5 server on Solaris 10 and I get the
following error after 'make all' :
depbase=`echo qpid/broker/Broker.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -Igen -I./gen -I/app/qpid/tools/include -Werror
-pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-long-long -Winvalid-pch -Wno-system-headers
-Woverloaded-virtual -g -O2 -MT qpid/broker/Broker.lo -MD -MP -MF
$depbase.Tpo -c -o qpid/broker/Broker.lo qpid/broker/Broker.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
g++ -DHAVE_CONFIG_H -I. -Igen -I./gen -I/app/qpid/tools/include -Werror
-pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-long-long -Winvalid-pch -Wno-system-headers
-Woverloaded-virtual -g -O2 -MT qpid/broker/Broker.lo -MD -MP -MF
qpid/broker/.deps/Broker.Tpo -c qpid/broker/Broker.cpp -fPIC -DPIC -o
qpid/broker/.libs/Broker.o
qpid/broker/Broker.cpp: In constructor
`qpid::broker::Broker::Broker(const qpid::broker::Broker::Options&)':
qpid/broker/Broker.cpp:160: warning: cast from
`qpid::management::ManagementAgent*' to
`qpid::management::ManagementBroker*' increases required alignment of
target type
qpid/broker/Broker.cpp:187: warning: cast from
`qpid::management::ManagementAgent*' to
`qpid::management::ManagementBroker*' increases required alignment of
target type
qpid/broker/Broker.cpp:239: warning: cast from
`qpid::management::ManagementAgent*' to
`qpid::management::ManagementBroker*' increases required alignment of
target type
qpid/broker/Broker.cpp:241: warning: cast from
`qpid::management::ManagementAgent*' to
`qpid::management::ManagementBroker*' increases required alignment of
target type
make[2]: *** [qpid/broker/Broker.lo] Error 1
make[2]: Leaving directory `/app/qpid/stage/qpidc-0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/app/qpid/stage/qpidc-0.5/src'
make: *** [all] Error 2
Quite a few programs have already compiled, the make was running for 19
minutes before grounding to a halt.
Does the -pedantic option cause the compiler to return an error on
warning messages ?
Can anyone offer any hints on how to get past this ? Please mail me if
you need any more information. I'm off for the weekend shortly but will
be back on Monday morning.
Regards
Warwick
warwick.richard<at>ubs.com
# Some system details :
qpidc-0.5 $ uname -a
SunOS svbotanybay.flur.zuerich.ubs.ch 5.10 Generic_127111-11 sun4v sparc
SUNW,Sun-Fire-T200
# The package
qpidc-0.5 $ ls -l ../../pkg/qpid-cpp-0.5.tar.gz
-rw-r--r-- 1 t101635 t101635 4926139 Jul 28 11:13
../../pkg/qpid-cpp-0.5.tar.gz
# The package was downloaded from :
http://www.apache.org/dist/qpid/0.5/qpid-cpp-0.5.tar.gz
# The offending source file
qpidc-0.5 $ ls -l src/qpid/broker/Broker.cpp
-rw-rw---- 1 t101635 dev 16826 Mar 25 20:27
src/qpid/broker/Broker.cpp
# I'm compiling with gcc
qpidc-0.5 $ g++ -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
# the GNU tools are installed in /usr/local/bin, the Sun compiler in
/usr/bin
# I've placed /usr/local/bin first in the path so the GNU tools are
always found first
qpidc-0.5 $ echo $PATH
/usr/local/bin:/opt/bin:/opt/sbin:/opt/ubs/bin:/opt/ubs/sbin:/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin/home/t101635/.bin:/usr/sfw/bin:/home/t101635/share
# ditto for the libpath :
qpidc-0.5 $ echo $LD_LIBRARY_PATH
/usr/local/lib:/opt/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib/usr/sfw/lib:/home/t101635/lib
# qpid version
qpidc-0.5 $ ls -l RELEASE_NOTES
-rw-rw---- 1 t101635 dev 677 May 17 14:33 RELEASE_NOTES
# before compiling, I configured with this command :
# this is where boost is installed
export CPPFLAGS=-I/app/qpid/tools/include
export LDFLAGS=-L/app/qpid/tools/lib
./configure --prefix=/app/qpid --exec-prefix=/app/qpid \
--with-help2man --with-doxygen --with-poller \
--without-sasl --without-xml --without-rdma --without-ssl
The config.log is attached.