Bug 609046 - libvirt-qpid is uncompilable due to ConnectionSettings changes
Summary: libvirt-qpid is uncompilable due to ConnectionSettings changes
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: All
OS: Linux
low
medium
Target Milestone: 1.3
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-29 09:48 UTC by Jan Sarenik
Modified: 2011-08-12 16:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-29 13:27:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Sarenik 2010-06-29 09:48:28 UTC
libvirt-qpid is uncompilable with current qpid-cpp-mrg packages.

-------------------------------------------------------------------------
jsarenik@slanina:~/libvirt-qpid$ rpm -q redhat-release libvirt-devel qpid-cpp-client-devel qmf-devel

redhat-release-5Server-5.5.0.2
libvirt-devel-0.6.3-33.el5
qpid-cpp-client-devel-0.7.946106-5.el5
qmf-devel-0.7.946106-5.el5


jsarenik@slanina:~/libvirt-qpid$ make
make  all-recursive
make[1]: Entering directory `/home/jsarenik/libvirt-qpid'
Making all in src
make[2]: Entering directory `/home/jsarenik/libvirt-qpid/src'
make  all-am
make[3]: Entering directory `/home/jsarenik/libvirt-qpid/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src/qmf/com/redhat/libvirt -I/usr/include/libxml2      -g -O2 -MT NodeWrap.o -MD -MP -MF ".deps/NodeWrap.Tpo" -c -o NodeWrap.o NodeWrap.cpp; \
	then mv -f ".deps/NodeWrap.Tpo" ".deps/NodeWrap.Po"; else rm -f ".deps/NodeWrap.Tpo"; exit 1; fi
NodeWrap.cpp: In function ‘int main(int, char**)’:
NodeWrap.cpp:636: error: reference to ‘ConnectionSettings’ is ambiguous
/usr/include/qpid/client/ConnectionSettings.h:40: error: candidates are: struct qpid::client::ConnectionSettings
/usr/include/qpid/management/ConnectionSettings.h:34: error:                 struct qpid::management::ConnectionSettings
NodeWrap.cpp:636: error: reference to ‘ConnectionSettings’ is ambiguous
/usr/include/qpid/client/ConnectionSettings.h:40: error: candidates are: struct qpid::client::ConnectionSettings
/usr/include/qpid/management/ConnectionSettings.h:34: error:                 struct qpid::management::ConnectionSettings
NodeWrap.cpp:636: error: expected `;' before ‘settings’
NodeWrap.cpp:637: error: ‘settings’ was not declared in this scope
make[3]: *** [NodeWrap.o] Error 1
make[3]: Leaving directory `/home/jsarenik/libvirt-qpid/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsarenik/libvirt-qpid/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsarenik/libvirt-qpid'
make: *** [all] Error 2
jsarenik@slanina:~/libvirt-qpid$ make
make  all-recursive
make[1]: Entering directory `/home/jsarenik/libvirt-qpid'
Making all in src
make[2]: Entering directory `/home/jsarenik/libvirt-qpid/src'
make  all-am
make[3]: Entering directory `/home/jsarenik/libvirt-qpid/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src/qmf/com/redhat/libvirt -I/usr/include/libxml2      -g -O2 -MT NodeWrap.o -MD -MP -MF ".deps/NodeWrap.Tpo" -c -o NodeWrap.o NodeWrap.cpp; \
	then mv -f ".deps/NodeWrap.Tpo" ".deps/NodeWrap.Po"; else rm -f ".deps/NodeWrap.Tpo"; exit 1; fi
NodeWrap.cpp: In function ‘int main(int, char**)’:
NodeWrap.cpp:636: error: reference to ‘ConnectionSettings’ is ambiguous
/usr/include/qpid/client/ConnectionSettings.h:40: error: candidates are: struct qpid::client::ConnectionSettings
/usr/include/qpid/management/ConnectionSettings.h:34: error:                 struct qpid::management::ConnectionSettings
NodeWrap.cpp:636: error: reference to ‘ConnectionSettings’ is ambiguous
/usr/include/qpid/client/ConnectionSettings.h:40: error: candidates are: struct qpid::client::ConnectionSettings
/usr/include/qpid/management/ConnectionSettings.h:34: error:                 struct qpid::management::ConnectionSettings
NodeWrap.cpp:636: error: expected `;' before ‘settings’
NodeWrap.cpp:637: error: ‘settings’ was not declared in this scope
make[3]: *** [NodeWrap.o] Error 1
make[3]: Leaving directory `/home/jsarenik/libvirt-qpid/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsarenik/libvirt-qpid/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsarenik/libvirt-qpid'
make: *** [all] Error 2
-------------------------------------------------------------------------

How reproducible: 100%

Steps to Reproduce:
1. git clone git://git.et.redhat.com/libvirt-qpid
2. cd libvirt-qpid
3. ./autogen.sh

Comment 1 Jan Sarenik 2010-06-29 09:53:17 UTC
The same error appears when trying to compile the released version
libvirt-qpid-0.2.12

Comment 2 Jan Sarenik 2010-06-29 10:22:51 UTC
The same error on RHEL6.

# rpm -q --whatprovides /etc/redhat-release
redhat-release-workstation-6-6.0.0.27.el6.x86_64
# rpm -q libvirt-devel qpid-cpp-client-devel qmf-devel
libvirt-devel-0.8.1-10.el6.x86_64
qpid-cpp-client-devel-0.7.946106-3.el6.x86_64
qmf-devel-0.7.946106-3.el6.x86_64

Comment 4 Gordon Sim 2010-06-29 11:49:38 UTC
NodeWrap.cpp needs to be updated to reference the correct version of ConnectionSettings (I'm assuming that is qpid::management::ConnectionSettings). This seems like a BZ against whatever that class is a part of (libvirt?) rather the the qpid c++ client, no?

Comment 5 Jan Sarenik 2010-06-29 13:27:10 UTC
Sorry for confusion, libvirt-qpid does not have current
sources on the web so I tried to compile old version.

Also the public git repository was last updated 7 months
ago. Whatever that means, I am closing this bug as
NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.