Bug 1184488

Summary: build failure in qpid-cpp-0.30/src/tests/txshift.cpp
Product: [Fedora] Fedora Reporter: Darryl L. Pierce <dpierce>
Component: qpid-cppAssignee: Darryl L. Pierce <dpierce>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dan, dpierce, iboverma, jose.p.oliveira.oss, nsantos, tross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.32-4.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 21:45:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
Patch submitted by Dan Horák upstream none

Description Darryl L. Pierce 2015-01-21 14:24:11 UTC
build fails with
...
CMakeFiles/txshift.dir/txshift.cpp.o: In function `boost::program_options::value_semantic* qpid::optValue<unsigned long>(unsigned long&, char const*)':
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/Options.h:77: undefined reference to `boost::program_options::value_semantic* qpid::create_value<unsigned long>(unsigned long&, std::string const&)'
collect2: error: ld returned 1 exit status

for a full please see build.log at http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1579517

The reason is that the workers atribute is declared as size_t and size_t is defined as unsigned long (as opposed to the usual unsigned int) and there is no instance of qpid::optValue() for size_t/unsigned long. The solution would be to add

template QPID_COMMON_EXTERN po::value_semantic* create_value(size_t& val, const std::string& arg);
in src/qpid/Options.cpp, but I think it would conflict with existing create_value() functions, at least I recolled such problems from other projects.

The workaround is to declare workers as uint in txshift.cpp.

Comment 1 Darryl L. Pierce 2015-01-21 14:25:24 UTC
Created attachment 982348 [details]
Patch submitted by Dan Horák upstream

Comment 2 Fedora Update System 2015-01-21 22:22:07 UTC
qpid-cpp-0.30-6.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-6.fc21

Comment 3 Fedora Update System 2015-01-22 14:13:01 UTC
qpid-cpp-0.30-6.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-6.el7

Comment 4 Fedora Update System 2015-01-22 20:50:19 UTC
qpid-cpp-0.30-7.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-7.fc21

Comment 5 Fedora Update System 2015-01-22 21:14:28 UTC
qpid-cpp-0.30-7.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-7.el7

Comment 6 Fedora Update System 2015-01-26 02:35:52 UTC
Package qpid-cpp-0.30-7.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qpid-cpp-0.30-7.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1129/qpid-cpp-0.30-7.fc21
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-01-27 07:28:36 UTC
qpid-cpp-0.30-7.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-7.fc20

Comment 8 Fedora Update System 2015-02-02 14:56:32 UTC
qpid-cpp-0.30-9.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-9.fc21

Comment 9 Fedora Update System 2015-02-02 15:37:45 UTC
qpid-cpp-0.30-9.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-9.el7

Comment 10 Fedora Update System 2015-02-06 21:25:49 UTC
qpid-cpp-0.30-8.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-8.fc20

Comment 11 Fedora Update System 2015-02-23 14:29:06 UTC
qpid-cpp-0.30-11.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-11.fc21

Comment 12 Fedora Update System 2015-02-23 14:58:33 UTC
qpid-cpp-0.30-11.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-11.el7

Comment 13 Fedora Update System 2015-02-25 22:38:17 UTC
qpid-cpp-0.30-12.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-12.el7

Comment 14 Fedora Update System 2015-02-25 22:59:13 UTC
qpid-cpp-0.30-12.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.30-12.fc21

Comment 15 Jaroslav Reznik 2015-03-03 17:19:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 16 Fedora Update System 2015-04-09 14:17:05 UTC
qpid-cpp-0.32-1.fc21.1 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.32-1.fc21.1

Comment 17 Fedora Update System 2015-05-22 19:54:11 UTC
qpid-cpp-0.32-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.32-3.fc21

Comment 18 Fedora Update System 2015-05-29 21:45:47 UTC
qpid-cpp-0.30-12.el7, qpid-qmf-0.28-27.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2015-06-04 13:55:10 UTC
qpid-cpp-0.32-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/qpid-cpp-0.32-4.fc21

Comment 20 Fedora Update System 2015-06-21 00:03:56 UTC
qpid-cpp-0.32-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.