You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Ivan Pechorin (Updated) (JIRA)" <ji...@apache.org> on 2011/11/27 12:46:40 UTC
[jira] [Updated] (AMQCPP-385) Compilation errors with Sun Studio 12
/ libCstd
[ https://issues.apache.org/jira/browse/AMQCPP-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Pechorin updated AMQCPP-385:
---------------------------------
Attachment: activemqcpp-wrong-const.patch
patch against trunk
> 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-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