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/ 
>PKGSRC_COMPILER=sunpro
>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
>Release:        
>Organization:
>Environment:
>Description:
Ruby modules cannot be compiled on Solaris w/ sunprocc.
>How-To-Repeat:
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 readline.so             
    
*** Error code 1


>Fix:
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
 LDFLAGS.SunOS+=        -L${SUNWSPROBASE}/lib -Wl,-R${SUNWSPROBASE}/lib
-MAKE_FLAGS+=   LDSHARED="${CC} -G"
+CONFIGURE_ENV+=        LDSHARED="${CC} -G"
 .else
 LIBS.SunOS+=   -lm
 .endif
cvs diff: Diffing files
cvs diff: Diffing patches





Home | Main Index | Thread Index | Old Index