activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Pechorin (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQCPP-385) Compilation errors with Sun Studio 12 / libCstd
Date Sun, 27 Nov 2011 13:02:39 GMT

     [ https://issues.apache.org/jira/browse/AMQCPP-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ivan Pechorin updated AMQCPP-385:
---------------------------------

    Attachment: activemqcpp-include-algorithm.patch

#include <algorithm> is necessary for std::swap, otherwise I get the following compilation
error:

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 decaf/util/concurrent/atomic/AtomicRefCounter.cpp
 -KPIC -DPIC -o decaf/util/concurrent/atomic/.libs/libactivemq_cpp_la-AtomicRefCounter.o
"decaf/util/concurrent/atomic/AtomicRefCounter.h", line 57: Error: Could not find a match
for std::swap<std::_charT, std::_Traits, std::_Allocator>(decaf::util::concurrent::atomic::AtomicInteger*,
decaf::util::concurrent::atomic::AtomicInteger*) needed in decaf::util::concurrent::atomic::AtomicRefCounter::swap(decaf::util::concurrent::atomic::AtomicRefCounter&).
                
> 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-include-algorithm.patch,
activemqcpp-std-distance.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

        

Mime
View raw message