SunPro compiler and rpath


#1

e$B$3$s$P$s$O!#e(B

Solarise$B$Ge(BSunProe$B$Ne(Bcompilere$B$r;H$&$H!"3HD%%i%$%V%i%j$,8+$D$+$i$J$$$H$$$&e(B
e$BJs9p$rLc$$$^$7$?!#e(BRubye$B$Oe(B1.8.4e$B$G$9!#e(B

% ldd /usr/pkg/lib/ruby/1.8/sparc-solaris2/pty.so
libruby18.so => (file not found)
libdl.so.1 => /lib/libdl.so.1
libm.so.1 => /lib/libm.so.1
libc.so.1 => /lib/libc.so.1
/usr/platform/FJSV,GPUZC-M/lib/sparcv9/libc_psr.so.1

e$B6PL3@h$K$"$ke(B Solaris 8 e$B$G!“e(BSun Studio
11e$B$K4^$^$l$ke(BSunProe$B$N%3%s%Q%$%i$Ge(B
e$B:F8=$G$-$^$7$?!#e(Bconfigure.ine$B$r8+$F$$$k$He(B 1229
e$B9T$”$?$j$+$i!"e(B

solaris*)
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)'
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY) 

lib$(RUBY_SO_NAME).so’
if test “$GCC” = yes; then
LIBRUBY_DLDFLAGS="$DLDFLAGS “’-Wl,-h,$(@F)’
else
enable_rpath=no
fi
XLDFLAGS=”$XLDFLAGS "’-R${libdir}’
;;

e$B$H$$$C$?$3$H$,=q$+$l$F$$$^$9!#$I$&$b!"$3$3$Ne(B

else
    enable_rpath=no

e$B$r:o=|$9$k$H=u$+$k$h$&$G$9!#e(B

% ldd /usr/pkg/lib/ruby/1.8/sparc-solaris2/pty.so
libruby18.so => /usr/pkg/lib/libruby18.so
libdl.so.1 => /usr/lib/64/libdl.so.1
libm.so.1 => /usr/lib/64/libm.so.1
libc.so.1 => /usr/lib/64/libc.so.1
/usr/platform/FJSV,GPUZC-M/lib/sparcv9/libc_psr.so.1

e$B$3$NItJ,$O!"$I$N$h$&$J7P0^$GF~$C$?$N$G$7$g$&e(B? e$B%m%0$K$O!"e(B
[ruby-dev:25035]
e$B$,;2>H$5$l$F$$$^$9$,!"e(Benable_rpathe$B$rL@<(E*$Ke(B no e$B$H$7e(B
e$B$F$$$kItJ,$O$o$+$j$^$;$s$G$7$?!#e(B


#2

In message removed_email_address@domain.invalid
on Mon, 20 Mar 2006 01:13:19 +0900,
Takahiro K. removed_email_address@domain.invalid wrote:

e$B$H$$$C$?$3$H$,=q$+$l$F$$$^$9!#$I$&$b!"$3$3$Ne(B

else
enable_rpath=no

e$B$r:o=|$9$k$H=u$+$k$h$&$G$9!#e(B
e$B$(!<!"Nc$K$h$C$Fe(Bpkgsrce$B$JCf$G$NF0:n$G!“D>@%3%s%Q%$%k$7$?>l9g$G$O$”$j$^e(B
e$B$;$s!#e(B(e$B$^$!!"e(BSolarise$B$K4X$7$F$O!"D>@$NJQ99$O$7$F$$$^$;$s$,!#e(B)


#3

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28440] SunPro compiler and rpath”
on Mon, 20 Mar 2006 01:13:19 +0900, Takahiro K.
removed_email_address@domain.invalid writes:

|e$B$I$&$b!"$3$3$Ne(B
|
| else
| enable_rpath=no
|
|e$B$r:o=|$9$k$H=u$+$k$h$&$G$9!#e(B
|
|% ldd /usr/pkg/lib/ruby/1.8/sparc-solaris2/pty.so
| libruby18.so => /usr/pkg/lib/libruby18.so
| libdl.so.1 => /usr/lib/64/libdl.so.1
| libm.so.1 => /usr/lib/64/libm.so.1
| libc.so.1 => /usr/lib/64/libc.so.1
| /usr/platform/FJSV,GPUZC-M/lib/sparcv9/libc_psr.so.1
|
|e$B$3$NItJ,$O!"$I$N$h$&$J7P0^$GF~$C$?$N$G$7$g$&e(B? e$B%m%0$K$O!"e(B
|[ruby-dev:25035] e$B$,;2>H$5$l$F$$$^$9$,!"e(Benable_rpathe$B$rL@<(E*$Ke(B no e$B$H$7e(B
|e$B$F$$$kItJ,$O$o$+$j$^$;$s$G$7$?!#e(B

e$B$(!<$H!"$I$3$+$+$i@Z$jD%$j$7$F$-$?$b$N$Ge(BSubProe$B%3%s%Q%$%i$G3Ne(B
e$BG’$7$?$3$H$O0lEY$b$J$$$H;W$$$^$9!#$G$9$+$i!"$3$l$r30$7$?$iF0e(B
e$B$/$H$$$&$3$H$G$7$?$i@Q6KE*$K30$9$Y$-$@$H;W$$$^$9!#e(B

e$BD>$7$F$*$-$^$9$M!#e(B


#4

æ¡?æ?でã?ã??

|
|ã??å??é?¤ã?ã??とå?©ã?ã??ã??ã?でã?ã??
|

ç?´ã?てã?きまã?ねã??

ã?ã??ã??å??é?¤ã?ã??とã?ã?ちã??でのç?´æ?¥ã?³ã?³ã??ã?¤ã?«æ??にã?ext/bigdecimalでã?ªã?³ã?¯
ã?¨ã?©ã?¼ã«ãªã£ã¦ã?まã?まã?ã?ã??[ruby-dev:27603]と現象はå?ã?でã?ã??

調べてみã??とã?enable_rpath=yesのときã?LIBRUBYARG_SHAREDに
-Wl,-R -Wl,$(libdir)
ã??設å®?ã?てã?ã??å??æ??ã?ã?っã?のでã?
-R $(libdir)
にã?ã?とã?ã?ã?å?é¡?なくé??ã??まã?ã?ã??

とã??ã?ã?ã?ã?GCC=noのときに-R $(libdir)にã?ã??ã??ã??ã?ã??æ·»ä»?ã?まã?ã??


#5

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28443] Re: SunPro compiler and rpath”
on Mon, 20 Mar 2006 11:21:21 +0900, e$B7,B<?5:He(B
removed_email_address@domain.invalid writes:

|> e$BD>$7$F$*$-$^$9$M!#e(B
|
|e$B$3$l$r:o=|$9$k$H!"$3$A$i$G$ND>@%3%s%Q%$%k;~$K!"e(Bext/bigdecimale$B$G%j%s%/e(B
|e$B%(%i!<$K$J$C$F$7$^$$$^$7$?!#e(B[ruby-dev:27603]e$B$H8=>]$OF1$8$G$9!#e(B

e$B$U$&$`!#e(B

|e$BD4$Y$F$_$k$H!"e(Benable_rpath=yese$B$N$H$-!“e(BLIBRUBYARG_SHAREDe$B$Ke(B
| -Wl,-R -Wl,$(libdir)
|e$B$r@_Dj$7$F$$$k8D=j$,$”$C$?$N$G!"e(B
| -R $(libdir)
|e$B$K$7$?$H$3$m!“LdBj$J$/DL$j$^$7$?!#e(B
|
|e$B$H$j$”$($:!"e(BGCC=noe$B$N$H$-$Ke(B-R $(libdir)e$B$K$9$k%Q%C%A$rE:IU$7$^$9!#e(B

e$B$3$N%Q%C%A$r<h$j9~$_$^$9!#e(B