Boost logo

Boost-Build :

Subject: Re: [Boost-build] Sun Studio C++ - Problem of link with Sun Studio compiler
From: Carfield Yim (carfield_at_[hidden])
Date: 2009-07-07 14:29:55


Found the reason, actually we need to remove "-Bstatic" as solaris 10 doesn't
support static binding...

OK to link the program in command line, but how can I do so in Jamfiles?

Vladimir Prus wrote:
>
> On Saturday 04 July 2009 Carfield Yim wrote:
>
>> Getting following error when link binary:
>> "CC" -g -xO5 -xarch=sparcvis2 -m32 -xchip=sparc64vi -xdepend
>> -xmemalign=8s
>> -library=stlport4 -features=tmplife -features=tmplrefstatic -mt
>> -DBOOST_NO_SFINAE -LXXX -RYYY -o a.out zzz.o wwww.a -Bdynamic
>> -lrtxxipc-50
>> -lrtipc -lrtutil -lsocket -lrt -Bstatic -lclntsh -lnsl -lthread -lrt
>> -lboost_thread-gcc33-mt -lrtxxipc-50 -lrtipc -lrtutil -lsocket -Bdynamic
>> ld: fatal: library -lrtxxipc-50: not found
>> ld: fatal: library -lclntsh: not found
>> ld: fatal: library -lnsl: not found
>> ld: fatal: library -lthread: not found
>> ld: fatal: library -lrt: not found
>> ld: fatal: library -lrtxxipc-50: not found
>> ld: fatal: library -lrtipc: not found
>> ld: fatal: library -lrtutil: not found
>> ld: fatal: library -lsocket: not found
>> ld: fatal: File processing errors. No output written to a.out
>>
>>
>> >From sun's forum, someone suggest to remove -Bdynamic and -Bstatic
>> http://forums.sun.com/thread.jspa?threadID=5395589, but how can that be
>> done
>> in bjam?
>
> I am afraid you have trimmed this example too much. What is the Jamfiles
> that
> you use? Is XXX the actual value you use for -L option? How is rtxxipc-50
> appearing in the command line? If it's defined using 'lib' target, then
> adding <link>shared requirement to that target will make it linked using
> -Bdynamic as opposed to -Bstatic.
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>

-- 
View this message in context: http://www.nabble.com/Sun-Studio-C%2B%2B---Problem-of-link-with-Sun-Studio-compiler-tp24331915p24378962.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk