qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Horák (JIRA) <j...@apache.org>
Subject [jira] [Commented] (QPID-6135) build failure in qpid-cpp-0.30/src/tests/txshift.cpp
Date Wed, 08 Oct 2014 12:41:33 GMT

    [ https://issues.apache.org/jira/browse/QPID-6135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163435#comment-14163435

Dan Horák commented on QPID-6135:

it's related to changes from QPID-5807 / https://svn.apache.org/repos/asf/qpid/trunk@1602021

> build failure in qpid-cpp-0.30/src/tests/txshift.cpp
> ----------------------------------------------------
>                 Key: QPID-6135
>                 URL: https://issues.apache.org/jira/browse/QPID-6135
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.30
>         Environment: Linux Fedora 21 on s390 (32-bit)
>            Reporter: Dan Horák
>         Attachments: 0001-txshift-switch-to-uint-for-workers.patch
> 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&
>  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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message