[
https://issues.apache.org/jira/browse/AMQCPP-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Pechorin updated AMQCPP-385:
---------------------------------
Attachment: activemqcpp-add-cast-to-unsigned.patch
another patch for signed/unsigned int mismatch in
activemq/transport/correlator/ResponseCorrelator.cpp:
libtool: compile: CC -DHAVE_CONFIG_H -I. -I../.. -mt -w -O5 -library=Cstd
-DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
-I/cma/dev/pie/activemq/dist/include/apr-1
-I/cma/dev/pie/activemq/dist/include/apr-1 -PIC -g -m32 -xO3 -xregs=no%frameptr
-xtarget=generic -xarch=sse2 -KPIC -mt -c
activemq/transport/correlator/ResponseCorrelator.cpp -KPIC -DPIC -o
activemq/transport/correlator/.libs/libactivemq_cpp_la-ResponseCorrelator.o
"activemq/transport/correlator/ResponseCorrelator.cpp", line 106: Error: Could
not find a match for
std::map<unsigned,decaf::lang::Pointer<activemq::transport::correlator::FutureResponse,
decaf::util::concurrent::atomic::AtomicRefCounter> >::insert(std::pair<int,
decaf::lang::Pointer<activemq::transport::correlator::FutureResponse,
decaf::util::concurrent::atomic::AtomicRefCounter>>) needed in
activemq::transport::correlator::ResponseCorrelator::request(const
decaf::lang::Pointer<activemq::commands::Command,
decaf::util::concurrent::atomic::AtomicRefCounter>&).
"activemq/transport/correlator/ResponseCorrelator.cpp", line 150: Error: Could
not find a match for
std::map<unsigned,decaf::lang::Pointer<activemq::transport::correlator::FutureResponse,
decaf::util::concurrent::atomic::AtomicRefCounter> >::insert(std::pair<int,
decaf::lang::Pointer<activemq::transport::correlator::FutureResponse,
decaf::util::concurrent::atomic::AtomicRefCounter>>) needed in
activemq::transport::correlator::ResponseCorrelator::request(const
decaf::lang::Pointer<activemq::commands::Command,
decaf::util::concurrent::atomic::AtomicRefCounter>&, unsigned).
> Compilation errors with Sun Studio 12 / libCstd
> -----------------------------------------------
>
> Key: AMQCPP-385
> URL: https://issues.apache.org/jira/browse/AMQCPP-385
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: CMS Impl
> Affects Versions: 3.4.0
> Environment: Solaris 10 x86, Sun Studio 12.2, -library=Cstd (instead
> of stlport4), 32-bit build (-m32)
> Reporter: Ivan Pechorin
> Assignee: Timothy Bish
> Priority: Minor
> Attachments: activemqcpp-add-cast-to-unsigned.patch,
> activemqcpp-wrong-const.patch
>
>
> I get a trivial compilation error in few places when compiling ActiveMQ-C++
> 3.4.0 release tarball using SunCC configured with libCstd instead of stlport4:
> libtool: compile: CC -DHAVE_CONFIG_H -I. -I../.. -mt -w -O5 -library=Cstd
> -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
> -I/cma/dev/pie/activemq/dist/include/apr-1
> -I/cma/dev/pie/activemq/dist/include/apr-1 -PIC -g -m32 -xO3
> -xregs=no%frameptr -xtarget=generic -xarch=sse2 -KPIC -mt -c
> activemq/commands/ActiveMQBytesMessage.cpp -KPIC -DPIC -o
> activemq/commands/.libs/libactivemq_cpp_la-ActiveMQBytesMessage.o
> "activemq/commands/ActiveMQBytesMessage.cpp", line 599: Error: Cannot use
> std::pair<unsigned char*, int> to initialize std::pair<const unsigned char*,
> int>.
> "activemq/commands/ActiveMQBytesMessage.cpp", line 615: Error: Cannot use
> std::pair<unsigned char*, int> to initialize std::pair<const unsigned char*,
> int>.
> libtool: compile: CC -DHAVE_CONFIG_H -I. -I../.. -mt -w -O5 -library=Cstd
> -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
> -I/cma/dev/pie/activemq/dist/include/apr-1
> -I/cma/dev/pie/activemq/dist/include/apr-1 -PIC -g -m32 -xO3
> -xregs=no%frameptr -xtarget=generic -xarch=sse2 -KPIC -mt -c
> activemq/commands/ActiveMQMapMessage.cpp -KPIC -DPIC -o
> activemq/commands/.libs/libactivemq_cpp_la-ActiveMQMapMessage.o
> "activemq/commands/ActiveMQMapMessage.cpp", line 122: Error: Cannot use
> std::pair<unsigned char*, int> to initialize std::pair<const unsigned char*,
> int>.
> 1 Error(s) detected.
> libtool: compile: CC -DHAVE_CONFIG_H -I. -I../.. -mt -w -O5 -library=Cstd
> -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
> -I/cma/dev/pie/activemq/dist/include/apr-1
> -I/cma/dev/pie/activemq/dist/include/apr-1 -PIC -g -m32 -xO3
> -xregs=no%frameptr -xtarget=generic -xarch=sse2 -KPIC -mt -c
> activemq/commands/ActiveMQStreamMessage.cpp -KPIC -DPIC -o
> activemq/commands/.libs/libactivemq_cpp_la-ActiveMQStreamMessage.o
> "activemq/commands/ActiveMQStreamMessage.cpp", line 848: Error: Cannot use
> std::pair<unsigned char*, int> to initialize std::pair<const unsigned char*,
> int>.
> libtool: compile: CC -DHAVE_CONFIG_H -I. -I../.. -mt -w -O5 -library=Cstd
> -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
> -I/cma/dev/pie/activemq/dist/include/apr-1
> -I/cma/dev/pie/activemq/dist/include/apr-1 -PIC -g -m32 -xO3
> -xregs=no%frameptr -xtarget=generic -xarch=sse2 -KPIC -mt -c
> activemq/commands/ActiveMQTextMessage.cpp -KPIC -DPIC -o
> activemq/commands/.libs/libactivemq_cpp_la-ActiveMQTextMessage.o
> "activemq/commands/ActiveMQTextMessage.cpp", line 142: Error: Cannot use
> std::pair<unsigned char*, int> to initialize std::pair<const unsigned char*,
> int>.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira