pkgsrc-Bugs archive

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

pkg/37771: Ruby modules cannot be compiled on Solaris w/ PKGSRC_COMPILER=sunpro

>Number:         37771
>Category:       pkg
>Synopsis:       Ruby modules cannot be compiled on Solaris w/ 
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 16 17:15:00 +0000 2008
>Originator:     Naoto Morishima
Ruby modules cannot be compiled on Solaris w/ sunprocc.
Compile lang/ruby18-base and devel/ruby-readline on Solaris w/ sunprocc, and
you will see errors like following:

ld: fatal: library -lsunmath: not found
ld: fatal: File processing errors. No output written to             
*** Error code 1

The change at 2007/11/05 by grant made lang/ruby18-baseruby compiled with
libsunmath linked statically.  This requires LDSHRED="gcc -G" to avoid calling
liker directly, but rbconfig.rb still has CONFIG["LDSHARED"]="ld -G" line.

The following patch will fix this problem.

Index: Makefile
RCS file: /cvsroot/pkgsrc/lang/ruby18-base/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- Makefile    4 Jan 2008 15:42:34 -0000       1.40
+++ Makefile    16 Jan 2008 17:09:03 -0000
@@ -35,7 +35,7 @@
 .if !empty(PKGSRC_COMPILER:Msunpro)
 LIBS.SunOS+=   -B static -lsunmath -B dynamic -lm
 LIBS.SunOS+=   -lm
cvs diff: Diffing files
cvs diff: Diffing patches

Home | Main Index | Thread Index | Old Index