Boost logo

Boost-Build :

Subject: Re: [Boost-build] Sun Studio C++ - Problem of link with Sun Studio compiler
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-07-04 04:58:22


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


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