Hi again,
I've now got a bit further forward and have got make to work. I had an awful lot of problems due to the explicit linkage issue that seems to be caused by recent versions of gcc (I'm using 4.6.1)

From a virgin qpid-0.12.tar.gz download I had to

cd qpid-0.12/cpp
patch -p1 < ../../fixed_unused.patch
patch -p1 < ../../fix-explicit-link-problem.patch
./bootstrap
./configure
make

I've attached the patches, the first of these is Cajus Pollmeier's patch the fix-explicit-link-problem.patch is a patch I've put together for a number of Makefile.am files to add the necessary explicit linkage.

So far this seems to give me a make that completes and I can run qpidd in qpid-0.12/cpp/src OK but unfortunately sudo make install fails with the errors below.

Previously when I had libtool linkage errors with make install I did:

export LDFLAGS=-L`dirname $(pwd)`/cpp/src/.libs

which used to work on my old Ubuntu 9.1 box. Unfortunately this doesn't seem to work on my Mint 12 box running gcc version 4.6.1

I'd really appreciate any help, this is really bugging me now - I don't think this is necessarily a qpid problem per se, but given what I'm seeing I'd be surprised if anyone has managed to build on Ubuntu 11.10 without a fight - am I wrong, have I missed something obvious????

heeeellllppppp!!!!
Frase


Making install in managementgen
make[1]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/managementgen'
make[2]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/managementgen'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
 /usr/bin/install -c qmf-gen '/usr/local/bin'
test -z "/usr/local/lib/python2.7/site-packages/qmfgen" || /bin/mkdir -p "/usr/local/lib/python2.7/site-packages/qmfgen" /usr/bin/install -c -m 644 qmfgen/__init__.py qmfgen/generate.py qmfgen/schema.py qmfgen/management-types.xml '/usr/local/lib/python2.7/site-packages/qmfgen'
Byte-compiling python modules...
__init__.pygenerate.pyschema.py
Byte-compiling python modules (optimized versions) ...
__init__.pygenerate.pyschema.py
test -z "/usr/local/lib/python2.7/site-packages/qmfgen/templates" || /bin/mkdir -p "/usr/local/lib/python2.7/site-packages/qmfgen/templates" /usr/bin/install -c -m 644 qmfgen/templates/Args.h qmfgen/templates/Class.cpp qmfgen/templates/Class.h qmfgen/templates/Event.cpp qmfgen/templates/Event.h qmfgen/templates/Makefile.mk qmfgen/templates/Package.cpp qmfgen/templates/Package.h qmfgen/templates/V2Package.cpp qmfgen/templates/V2Package.h '/usr/local/lib/python2.7/site-packages/qmfgen/templates'
Byte-compiling python modules...

Byte-compiling python modules (optimized versions) ...

make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/managementgen'
make[1]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/managementgen'
Making install in etc
make[1]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/etc'
make[2]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/etc'
test -z "/usr/local/etc" || /bin/mkdir -p "/usr/local/etc"
 /usr/bin/install -c -m 644  qpidd.conf '/usr/local/etc/.'
/bin/mkdir -p '/usr/local/etc/sasl2'
 /usr/bin/install -c -m 644  sasl2/qpidd.conf '/usr/local/etc/sasl2'
test -z "/usr/local/etc/qpid" || /bin/mkdir -p "/usr/local/etc/qpid"
 /usr/bin/install -c -m 644  qpidc.conf '/usr/local/etc/qpid/.'
test -z "/usr/local/var/lib/qpidd" || /bin/mkdir -p "/usr/local/var/lib/qpidd"
 /usr/bin/install -c -m 644 qpidd.sasldb '/usr/local/var/lib/qpidd'
make[2]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/etc'
make[1]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/etc'
Making install in src
make[1]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/src'
Making install in .
make[2]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/src'
make[3]: Entering directory `/home/fadams/qpid/qpid-0.12/cpp/src'
test -z "/usr/local/lib/qpid/client" || /bin/mkdir -p "/usr/local/lib/qpid/client" test -z "/usr/local/lib/qpid/daemon" || /bin/mkdir -p "/usr/local/lib/qpid/daemon" /bin/bash ../libtool --mode=install /usr/bin/install -c cluster.la watchdog.la acl.la xml.la replicating_listener.la replication_exchange.la '/usr/local/lib/qpid/daemon'
libtool: install: warning: relinking `cluster.la'
libtool: install: (cd /home/fadams/qpid/qpid-0.12/cpp/src; /bin/bash /home/fadams/qpid/qpid-0.12/cpp/libtool --tag CXX --mode=relink g++ -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/local/libexec/qpid\" -DBOOST_FILESYSTEM_VERSION=2 -fno-strict-aliasing -g -O2 -no-undefined -module -avoid-version -L/usr/lib/openais -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -o cluster.la -rpath /usr/local/lib/qpid/daemon qpid/cluster/cluster_la-Quorum_cman.lo qpid/cluster/cluster_la-Cluster.lo qpid/cluster/cluster_la-ClusterTimer.lo qpid/cluster/cluster_la-Decoder.lo qpid/cluster/cluster_la-ClusterMap.lo qpid/cluster/cluster_la-ClusterPlugin.lo qpid/cluster/cluster_la-Connection.lo qpid/cluster/cluster_la-ConnectionCodec.lo qpid/cluster/cluster_la-Cpg.lo qpid/cluster/cluster_la-UpdateClient.lo qpid/cluster/cluster_la-RetractClient.lo qpid/cluster/cluster_la-ErrorCheck.lo qpid/cluster/cluster_la-Event.lo qpid/cluster/cluster_la-EventFrame.lo qpid/cluster/cluster_la-ExpiryPolicy.lo qpid/cluster/cluster_la-FailoverExchange.lo qpid/cluster/cluster_la-UpdateExchange.lo qpid/cluster/cluster_la-Multicaster.lo qpid/cluster/cluster_la-OutputInterceptor.lo qpid/cluster/cluster_la-PollerDispatch.lo qpid/cluster/cluster_la-InitialStatusMap.lo qpid/cluster/cluster_la-MemberSet.lo qpid/cluster/cluster_la-SecureConnectionFactory.lo qpid/cluster/cluster_la-StoreStatus.lo qpid/cluster/cluster_la-UpdateDataExchange.lo -lcpg -lcman libqpidbroker.la libqpidclient.la ) libtool: relink: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o qpid/cluster/.libs/cluster_la-Quorum_cman.o qpid/cluster/.libs/cluster_la-Cluster.o qpid/cluster/.libs/cluster_la-ClusterTimer.o qpid/cluster/.libs/cluster_la-Decoder.o qpid/cluster/.libs/cluster_la-ClusterMap.o qpid/cluster/.libs/cluster_la-ClusterPlugin.o qpid/cluster/.libs/cluster_la-Connection.o qpid/cluster/.libs/cluster_la-ConnectionCodec.o qpid/cluster/.libs/cluster_la-Cpg.o qpid/cluster/.libs/cluster_la-UpdateClient.o qpid/cluster/.libs/cluster_la-RetractClient.o qpid/cluster/.libs/cluster_la-ErrorCheck.o qpid/cluster/.libs/cluster_la-Event.o qpid/cluster/.libs/cluster_la-EventFrame.o qpid/cluster/.libs/cluster_la-ExpiryPolicy.o qpid/cluster/.libs/cluster_la-FailoverExchange.o qpid/cluster/.libs/cluster_la-UpdateExchange.o qpid/cluster/.libs/cluster_la-Multicaster.o qpid/cluster/.libs/cluster_la-OutputInterceptor.o qpid/cluster/.libs/cluster_la-PollerDispatch.o qpid/cluster/.libs/cluster_la-InitialStatusMap.o qpid/cluster/.libs/cluster_la-MemberSet.o qpid/cluster/.libs/cluster_la-SecureConnectionFactory.o qpid/cluster/.libs/cluster_la-StoreStatus.o qpid/cluster/.libs/cluster_la-UpdateDataExchange.o -L/usr/lib/openais -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync -lcpg -lcman -L/usr/local/lib -lqpidbroker -lqpidclient -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crtn.o -O2 -Wl,-soname -Wl,cluster.so -o .libs/cluster.so
/usr/bin/ld: cannot find -lqpidbroker
/usr/bin/ld: cannot find -lqpidclient
collect2: ld returned 1 exit status
libtool: install: error: relink `cluster.la' with the above command before installing it
make[3]: *** [install-dmoduleexecLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/fadams/qpid/qpid-0.12/cpp/src'
make: *** [install-recursive] Error 1




On 02/01/12 10:17, Fraser Adams wrote:
Hi again all, I've done a bit of Googling on this and it appears that this behaviour has something to do with changes that have been made to the linker behaviour http://fedoraproject.org/wiki/UnderstandingDSOLinkChange (this is a Fedora page and I'm using Mint but the symptoms seem identical).

Has anyone else seen this and got a decent workaround?

I'll have a play and see if I can hack the makefile, at a guess it probably just needs an *explicit* -lboost_program_options added to the right place in the Makefile my problem is that I'm clueless about automake, so if it doesn't "just work" I'm working blind. At a guess some work is needed to the automake generation templates to fix this properly, but I wouldn't know where to begin.

I suspect that I'm not the only one who's going to be seeing this issue (my Mint 12 box uses gcc version 4.6.1) given the description in the Fedora page.

I'd appreciate any thoughts/tips
cheers,
Frase

--- a/bindings/qmf2/examples/cpp/Makefile.am	2011-02-11 04:13:51.000000000 +0000
+++ b/bindings/qmf2/examples/cpp/Makefile.am	2012-01-02 15:30:17.811588009 +0000
@@ -24,10 +24,10 @@
 noinst_PROGRAMS=agent list_agents print_events
 
 agent_SOURCES=agent.cpp
-agent_LDADD=$(top_builddir)/src/libqmf2.la
+agent_LDADD=$(top_builddir)/src/libqmf2.la -lqpidtypes -lqpidmessaging
 
 list_agents_SOURCES=list_agents.cpp
-list_agents_LDADD=$(top_builddir)/src/libqmf2.la
+list_agents_LDADD=$(top_builddir)/src/libqmf2.la -lqpidmessaging
 
 print_events_SOURCES=print_events.cpp
-print_events_LDADD=$(top_builddir)/src/libqmf2.la
+print_events_LDADD=$(top_builddir)/src/libqmf2.la -lqpidtypes -lqpidmessaging
--- a/examples/messaging/Makefile.am	2010-05-14 18:53:26.000000000 +0100
+++ b/examples/messaging/Makefile.am	2012-01-02 14:43:55.000000000 +0000
@@ -33,10 +33,10 @@
 hello_xml_LDADD=$(CLIENT_LIB)
 
 drain_SOURCES=drain.cpp OptionParser.h OptionParser.cpp
-drain_LDADD=$(CLIENT_LIB)
+drain_LDADD=$(CLIENT_LIB) -lqpidtypes
 
 spout_SOURCES=spout.cpp OptionParser.h OptionParser.cpp
-spout_LDADD=$(CLIENT_LIB)
+spout_LDADD=$(CLIENT_LIB) -lqpidtypes
 
 client_SOURCES=client.cpp
 client_LDADD=$(CLIENT_LIB)
@@ -45,10 +45,10 @@
 server_LDADD=$(CLIENT_LIB)
 
 map_sender_SOURCES=map_sender.cpp
-map_sender_LDADD=$(CLIENT_LIB)
+map_sender_LDADD=$(CLIENT_LIB) -lqpidtypes
 
 map_receiver_SOURCES=map_receiver.cpp
-map_receiver_LDADD=$(CLIENT_LIB)
+map_receiver_LDADD=$(CLIENT_LIB) -lqpidtypes
 
 examples_DATA=                 \
 	hello_world.cpp	       \
--- a/examples/old_api/direct/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/direct/Makefile.am	2012-01-02 14:45:36.000000000 +0000
@@ -23,13 +23,13 @@
 
 noinst_PROGRAMS=direct_producer listener declare_queues
 direct_producer_SOURCES=direct_producer.cpp
-direct_producer_LDADD=$(CLIENT_LIB)
+direct_producer_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 listener_SOURCES=listener.cpp
-listener_LDADD=$(CLIENT_LIB)
+listener_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 declare_queues_SOURCES=declare_queues.cpp
-declare_queues_LDADD=$(CLIENT_LIB)
+declare_queues_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 examples_DATA=               \
 	direct_producer.cpp  \
--- a/examples/old_api/failover/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/failover/Makefile.am	2012-01-02 14:51:16.000000000 +0000
@@ -24,13 +24,13 @@
 noinst_PROGRAMS=declare_queues resuming_receiver replaying_sender
 
 declare_queues_SOURCES=declare_queues.cpp
-declare_queues_LDADD=$(CLIENT_LIB)
+declare_queues_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 resuming_receiver_SOURCES=resuming_receiver.cpp
-resuming_receiver_LDADD=$(CLIENT_LIB)
+resuming_receiver_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 replaying_sender_SOURCES=replaying_sender.cpp
-replaying_sender_LDADD=$(CLIENT_LIB)
+replaying_sender_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 examples_DATA=                \
 	declare_queues.cpp    \
--- a/examples/old_api/fanout/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/fanout/Makefile.am	2012-01-02 14:48:36.000000000 +0000
@@ -26,7 +26,7 @@
 fanout_producer_LDADD=$(CLIENT_LIB)
 
 listener_SOURCES=listener.cpp
-listener_LDADD=$(CLIENT_LIB)
+listener_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 examples_DATA=               \
 	fanout_producer.cpp  \
--- a/examples/old_api/pub-sub/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/pub-sub/Makefile.am	2012-01-02 14:46:54.000000000 +0000
@@ -24,10 +24,10 @@
 noinst_PROGRAMS=topic_listener topic_publisher
 
 topic_listener_SOURCES=topic_listener.cpp
-topic_listener_LDADD=$(CLIENT_LIB)
+topic_listener_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 topic_publisher_SOURCES=topic_publisher.cpp
-topic_publisher_LDADD=$(CLIENT_LIB)
+topic_publisher_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 examples_DATA=               \
 	topic_listener.cpp   \
--- a/examples/old_api/request-response/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/request-response/Makefile.am	2012-01-02 14:49:44.000000000 +0000
@@ -24,10 +24,10 @@
 noinst_PROGRAMS=client server
 
 client_SOURCES=client.cpp
-client_LDADD=$(CLIENT_LIB)
+client_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 server_SOURCES=server.cpp
-server_LDADD=$(CLIENT_LIB)
+server_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 examples_DATA=               \
 	server.cpp           \
--- a/examples/old_api/tradedemo/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/tradedemo/Makefile.am	2012-01-02 14:52:31.000000000 +0000
@@ -24,13 +24,13 @@
 noinst_PROGRAMS=topic_listener topic_publisher declare_queues
 
 topic_listener_SOURCES=topic_listener.cpp
-topic_listener_LDADD=$(CLIENT_LIB)
+topic_listener_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 topic_publisher_SOURCES=topic_publisher.cpp 
-topic_publisher_LDADD=$(CLIENT_LIB)
+topic_publisher_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 declare_queues_SOURCES=declare_queues.cpp
-declare_queues_LDADD=$(CLIENT_LIB)
+declare_queues_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 
 examples_DATA=               \
--- a/examples/old_api/xml-exchange/Makefile.am	2011-03-11 17:18:58.000000000 +0000
+++ b/examples/old_api/xml-exchange/Makefile.am	2012-01-02 14:54:21.000000000 +0000
@@ -24,13 +24,13 @@
 noinst_PROGRAMS=declare_queues xml_producer listener
 
 declare_queues_SOURCES=declare_queues.cpp
-declare_queues_LDADD=$(CLIENT_LIB)
+declare_queues_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 xml_producer_SOURCES=xml_producer.cpp
-xml_producer_LDADD=$(CLIENT_LIB)
+xml_producer_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 listener_SOURCES=listener.cpp
-listener_LDADD=$(CLIENT_LIB)
+listener_LDADD=$(CLIENT_LIB) -lqpidcommon
 
 EXTRA_DIST=                \
 	README.txt             \
--- a/examples/qmf-console/Makefile.am	2010-11-17 18:44:15.000000000 +0000
+++ b/examples/qmf-console/Makefile.am	2012-01-02 14:41:48.000000000 +0000
@@ -25,19 +25,19 @@
 noinst_PROGRAMS=console printevents ping queuestats cluster-qmon
 
 console_SOURCES=console.cpp
-console_LDADD=$(CONSOLE_LIB)
+console_LDADD=$(CONSOLE_LIB) -lqpidcommon -lqpidclient
 
 printevents_SOURCES=printevents.cpp
-printevents_LDADD=$(CONSOLE_LIB)
+printevents_LDADD=$(CONSOLE_LIB) -lqpidcommon -lqpidclient
 
 ping_SOURCES=ping.cpp
-ping_LDADD=$(CONSOLE_LIB)
+ping_LDADD=$(CONSOLE_LIB) -lqpidcommon -lqpidclient
 
 queuestats_SOURCES=queuestats.cpp
-queuestats_LDADD=$(CONSOLE_LIB)
+queuestats_LDADD=$(CONSOLE_LIB) -lqpidcommon -lqpidclient
 
 cluster_qmon_SOURCES=cluster-qmon.cpp
-cluster_qmon_LDADD=$(CONSOLE_LIB)
+cluster_qmon_LDADD=$(CONSOLE_LIB) -lqpidcommon -lqpidclient
 
 examples_DATA= \
 	console.cpp \
--- a/src/Makefile.am	2011-07-12 19:41:52.000000000 +0100
+++ b/src/Makefile.am	2012-01-02 14:22:32.000000000 +0000
@@ -139,7 +139,8 @@
 
 qpidd_LDADD =					\
   libqpidbroker.la				\
-  libqpidcommon.la
+  libqpidcommon.la              \
+  -lboost_program_options
 
 posix_qpidd_src = posix/QpiddBroker.cpp
 
--- a/src/tests/cluster.mk	2011-02-15 19:28:11.000000000 +0000
+++ b/src/tests/cluster.mk	2012-01-02 15:23:54.637687941 +0000
@@ -92,7 +92,7 @@
 	PartialFailure.cpp			\
 	ClusterFailover.cpp
 
-cluster_test_LDADD=$(lib_client) $(lib_broker) ../cluster.la -lboost_unit_test_framework
+cluster_test_LDADD=$(lib_client) $(lib_broker) ../cluster.la -lboost_unit_test_framework -lqpidcommon
 
 qpidtest_SCRIPTS += run_cluster_tests brokertest.py cluster_tests.py cluster_test_logs.py run_long_cluster_tests long_cluster_tests.py testlib.py cluster_tests.fail
 qpidtest_SCRIPTS += $(CLUSTER_TEST_SCRIPTS_LIST)
--- a/src/tests/Makefile.am	2011-03-01 16:15:04.000000000 +0000
+++ b/src/tests/Makefile.am	2012-01-02 14:30:57.000000000 +0000
@@ -157,7 +157,7 @@
   receiver.cpp \
   TestOptions.h \
   ConnectionOptions.h
-receiver_LDADD = $(lib_client)
+receiver_LDADD = $(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS += sender
 sender_SOURCES = \
@@ -165,7 +165,7 @@
   TestOptions.h \
   ConnectionOptions.h \
   Statistics.cpp
-sender_LDADD = $(lib_messaging)
+sender_LDADD = $(lib_messaging) -lboost_program_options -lqpidcommon -lqpidtypes -lqpidclient
 
 qpidtest_PROGRAMS += qpid-receive
 qpid_receive_SOURCES = \
@@ -174,7 +174,7 @@
   ConnectionOptions.h \
   Statistics.h \
   Statistics.cpp
-qpid_receive_LDADD = $(lib_messaging)
+qpid_receive_LDADD = $(lib_messaging) -lboost_program_options -lqpidcommon -lqpidtypes
 
 qpidtest_PROGRAMS += qpid-send
 qpid_send_SOURCES = \
@@ -183,42 +183,42 @@
   ConnectionOptions.h \
   Statistics.h \
   Statistics.cpp
-qpid_send_LDADD = $(lib_messaging)
+qpid_send_LDADD = $(lib_messaging) -lboost_program_options -lqpidcommon -lqpidtypes
 
 qpidtest_PROGRAMS+=qpid-perftest
 qpid_perftest_SOURCES=qpid-perftest.cpp test_tools.h TestOptions.h ConnectionOptions.h
 qpid_perftest_INCLUDES=$(PUBLIC_INCLUDES)
-qpid_perftest_LDADD=$(lib_client) 
+qpid_perftest_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS+=qpid-txtest
 qpid_txtest_INCLUDES=$(PUBLIC_INCLUDES)
 qpid_txtest_SOURCES=qpid-txtest.cpp  TestOptions.h ConnectionOptions.h
-qpid_txtest_LDADD=$(lib_client) 
+qpid_txtest_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS+=qpid-latency-test
 qpid_latency_test_INCLUDES=$(PUBLIC_INCLUDES)
 qpid_latency_test_SOURCES=qpid-latency-test.cpp TestOptions.h ConnectionOptions.h
-qpid_latency_test_LDADD=$(lib_client) 
+qpid_latency_test_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS+=qpid-client-test
 qpid_client_test_INCLUDES=$(PUBLIC_INCLUDES)
 qpid_client_test_SOURCES=qpid-client-test.cpp TestOptions.h ConnectionOptions.h
-qpid_client_test_LDADD=$(lib_client) 
+qpid_client_test_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS+=qpid-topic-listener
 qpid_topic_listener_INCLUDES=$(PUBLIC_INCLUDES)
 qpid_topic_listener_SOURCES=qpid-topic-listener.cpp TestOptions.h ConnectionOptions.h
-qpid_topic_listener_LDADD=$(lib_client) 
+qpid_topic_listener_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS+=qpid-topic-publisher
 qpid_topic_publisher_INCLUDES=$(PUBLIC_INCLUDES)
 qpid_topic_publisher_SOURCES=qpid-topic-publisher.cpp TestOptions.h ConnectionOptions.h
-qpid_topic_publisher_LDADD=$(lib_client) 
+qpid_topic_publisher_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 qpidtest_PROGRAMS+=qpid-ping
 qpid_ping_INCLUDES=$(PUBLIC_INCLUDES)
 qpid_ping_SOURCES=qpid-ping.cpp test_tools.h TestOptions.h ConnectionOptions.h
-qpid_ping_LDADD=$(lib_client)
+qpid_ping_LDADD=$(lib_client) -lboost_program_options -lqpidcommon
 
 #
 # Other test programs
--- a/src/tests/testagent.mk	2010-12-01 20:28:35.000000000 +0000
+++ b/src/tests/testagent.mk	2012-01-02 14:33:25.000000000 +0000
@@ -46,6 +46,6 @@
 qpidtest_PROGRAMS+=testagent
 testagent_CXXFLAGS=$(CXXFLAGS) -Itestagent_gen
 testagent_SOURCES=testagent.cpp $(TESTAGENT_GEN_SRC)
-testagent_LDADD=$(top_builddir)/src/libqmf.la
+testagent_LDADD=$(top_builddir)/src/libqmf.la -lqpidcommon -lqpidtypes -lqpidclient
 
 EXTRA_DIST+=testagent.xml
--- a/src/qpid/sys/posix/LockFile.cpp
+++ b/src/qpid/sys/posix/LockFile.cpp
@@ -58,7 +58,9 @@
     if (impl) {
         int f = impl->fd;
         if (f >= 0) {
-            (void) ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value.
+	    size_t ret;
+            ret = ::lockf(f, F_ULOCK, 0); // Suppress warnings about ignoring return value.
+	    (void)ret;
             ::close(f);
             impl->fd = -1;
         }
--- a/src/qpid/broker/Daemon.cpp
+++ b/src/qpid/broker/Daemon.cpp
@@ -93,13 +93,15 @@
         catch (const exception& e) {
             QPID_LOG(critical, "Unexpected error: " << e.what());
             uint16_t port = 0;
-            (void) write(pipeFds[1], &port, sizeof(uint16_t));
+	    int res;
+            res = write(pipeFds[1], &port, sizeof(uint16_t));
 
             std::string pipeFailureMessage = e.what();
-            (void) write ( pipeFds[1], 
-                    pipeFailureMessage.c_str(), 
+            res = write ( pipeFds[1],
+                    pipeFailureMessage.c_str(),
                     strlen(pipeFailureMessage.c_str())
                   );
+	    (void)res;
         }
     }
     else {                      // Parent
--- a/src/qmf/engine/ResilientConnection.cpp
+++ b/src/qmf/engine/ResilientConnection.cpp
@@ -334,7 +334,9 @@
 {
     if (notifyFd != -1)
     {
-        (void) ::write(notifyFd, ".", 1);
+	int ret;
+        ret = ::write(notifyFd, ".", 1);
+	(void)ret;
     }
 }
 
@@ -431,7 +433,9 @@
 
     if (notifyFd != -1)
     {
-        (void) ::write(notifyFd, ".", 1);
+	int ret;
+        ret = ::write(notifyFd, ".", 1);
+	(void)ret;
     }
 }
 
--- a/src/tests/ForkedBroker.cpp
+++ b/src/tests/ForkedBroker.cpp
@@ -68,7 +68,9 @@
     }
     if (!dataDir.empty())
     {
-        (void) ::system(("rm -rf "+dataDir).c_str());
+	int ret;
+        ret = ::system(("rm -rf "+dataDir).c_str());
+	(void)ret;
     }
 }
 

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to