[ 
https://issues.apache.org/jira/browse/QPID-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719014#action_12719014
 ] 

Rob Riggs commented on QPID-1895:
---------------------------------

Just an update.  I'm having a little difficulty building on Solaris from the 
SVN repo.  The qpid-autotools-install does not work on Solaris 10 for me so I 
don't yet have all of the autotools necessary to setup the build environment.

I think this is still not 100% correct in acl.mk:
if SUNOS
  acl_la_LIBADD +=  libqmfagent.la libqmfconsole.la libqpidcommon.la -lboost_pro
gram_options $(SUNCC_RUNTIME_LIBS)
endif

I think it should be:
if SUNOS
  acl_la_LIBADD +=  libqmfagent.la libqmfconsole.la libqpidcommon.la 
-lboost_program_options
endif

if SUNCC
  acl_la_LIBADD +=  $(SUNCC_RUNTIME_LIBS)
endif

And a similar change needs to be made for src/replication.mk.

We need to keep the compiler-specific configuration separate from the 
platform-specific bits.  This is because A) SUNCC is available on platforms 
other than SUNOS; and B) other compilers are available on SUNOS.

If your goal is to prevent the use of SUNCC on non-SUNOS builds (a 
consideration which has its own merits) then perhaps there are cleaner and more 
explicit ways of accomplishing this.

> qpidc: Solaris 10 Build Incorrectly Assumes Sun Compiler
> --------------------------------------------------------
>
>                 Key: QPID-1895
>                 URL: https://issues.apache.org/jira/browse/QPID-1895
>             Project: Qpid
>          Issue Type: Bug
>          Components: Build Tools, C++ Broker, C++ Client
>    Affects Versions: 0.5
>         Environment: Solaris 10
> Sparcv9
> GCC-4.3.2 (Blastwave)
> Boost-1.38.0
>            Reporter: Rob Riggs
>
> When building on Solaris 10/sparcv9 with GCC-4.3.2, the autoconf system adds 
> -lCrun and $(SUN_CC_RUNTIMELIBS) to the linker args.  These are 
> compiler-dependent  libraries, not OS-specific ones.  This is only 
> appropriate when compiling with Sun Studio.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to