pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45256: lang/gcc46 not working properly on Solaris

>Number:         45256
>Category:       pkg
>Synopsis:       lang/gcc46 not working properly on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 15 07:45:00 +0000 2011
>Originator:     Jörn Clausen
University of Bielefeld
Building lang/gcc46 on Solaris 10 using the Sun Compiler Studio cc seems to 
work - at first sight. The only problem are shared objects depending on The correct runtime path is missing.

In my case, is installed in


yet this is the runpath of a shared object:

$ dump -Lv /usr/pkgsrc/20110809/lib/ | grep PATH
[11]    RUNPATH         /usr/pkgsrc/20110809/lib
[12]    RPATH           /usr/pkgsrc/20110809/lib

Compare this to gcc34 from an older installation: is installed in


and the runpath is correctly

$ dump -Lv /usr/pkgsrc/20101105/lib/ | grep PATH
[11]    RUNPATH         /usr/pkgsrc/20101105/lib:/usr/pkgsrc/20101105/gcc34/lib
[12]    RPATH           /usr/pkgsrc/20101105/lib:/usr/pkgsrc/20101105/gcc34/lib

After installing lang/gcc46, I reinstalled devel/libtool-base.

And I removed the dependency on devel/binutils, as Solaris' ld is still the 
preferred linker.

A symlink from pkgsrc's standard lib directory to gcc's would be a workaround.

Home | Main Index | Thread Index | Old Index