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

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

    Attachment: activemqcpp-std-distance.patch

another issue with std::distance in decaf/io/BlockingByteArrayInputStream.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 
decaf/io/BlockingByteArrayInputStream.cpp  -KPIC -DPIC -o 
decaf/io/.libs/libactivemq_cpp_la-BlockingByteArrayInputStream.o
"decaf/io/BlockingByteArrayInputStream.cpp", line 65: Error: Could not find a 
match for std::distance<std::_ForwardIterator, std::_Distance>(const unsigned 
char*const, const unsigned char*) needed in 
decaf::io::BlockingByteArrayInputStream::available() const.

patch is attached too.
                
> 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-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

        

Reply via email to