You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jim Melton (JIRA)" <ji...@apache.org> on 2016/02/02 22:41:40 UTC

[jira] [Comment Edited] (AMQCPP-594) ActiveMQ-CPP does not build on Solaris 11

    [ https://issues.apache.org/jira/browse/AMQCPP-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128956#comment-15128956 ] 

Jim Melton edited comment on AMQCPP-594 at 2/2/16 9:41 PM:
-----------------------------------------------------------

The issue is actually in line 17899 of configure, where -library=stlport4 is unconditionally asserted for all non-GCC compilers. This should not be asserted; if desired, the user can compile with STLPort by passing in the appropriate CFLAGS and CXXFLAGS.

Note that the only dependency on stlport4 appears to be in src/main/decaf/io/BlockingByteArrayInputStream.cpp near line 63 where available() is implemented using a signature of std::distance that Sun chose not to implement. Annoyingly, the implementation is in their header files, but is #ifdef'd out. However, since the implementation passes char const* arguments, std::distance adds little, and could simply be replaced by "buffer.end() - pos"


was (Author: fusiondude):
The issue is actually in line 17899 of configure, where -library=stlport4 is unconditionally asserted for all non-GCC compilers. This should not be asserted; if desired, the user can compile with STLPort by passing in the appropriate CFLAGS and CXXFLAGS.

> ActiveMQ-CPP does not build on Solaris 11
> -----------------------------------------
>
>                 Key: AMQCPP-594
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-594
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Build Support
>    Affects Versions: 3.9.0
>         Environment: Solaris 11 (sparc). Solaris Studio 12.3
>            Reporter: Mark Williams
>            Assignee: Timothy Bish
>            Priority: Minor
>
> Using:
> Configure options:
> ./configure '--disable-ssl' '--prefix=<dir>' '--with-apr=<dir>'
> I get error:
> CC: -library=Cstd cannot be used with -library=stlport4
> [Removing -library=Cstd -library=Crun from the build fixes this]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)