[#44036] [ruby-trunk - Feature #6242][Open] Ruby should support lists — "shugo (Shugo Maeda)" <redmine@...>

20 messages 2012/04/01

[#44084] [ruby-trunk - Bug #6246][Open] 1.9.3-p125 intermittent segfault — "jshow (Jodi Showers)" <jodi@...>

22 messages 2012/04/02

[#44156] [ruby-trunk - Feature #6265][Open] Remove 'useless' 'concatenation' syntax — "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@...>

45 messages 2012/04/06

[#44163] [ruby-trunk - Bug #6266][Open] encoding related exception with recent integrated psych — "jonforums (Jon Forums)" <redmine@...>

10 messages 2012/04/06

[#44303] [ruby-trunk - Feature #6284][Open] Add composition for procs — "pabloh (Pablo Herrero)" <pablodherrero@...>

57 messages 2012/04/12

[#44349] [ruby-trunk - Feature #6293][Open] new queue / blocking queues — "tenderlovemaking (Aaron Patterson)" <aaron@...>

10 messages 2012/04/13

[#44402] [ruby-trunk - Feature #6308][Open] Eliminate delegation from WeakRef — "headius (Charles Nutter)" <headius@...>

20 messages 2012/04/17

[#44403] [ruby-trunk - Feature #6309][Open] Add a reference queue for weak references — "headius (Charles Nutter)" <headius@...>

15 messages 2012/04/17

[#44533] [ruby-trunk - Bug #6341][Open] SIGSEGV: Thread.new { fork { GC.start } }.join — "rudolf (r stu3)" <redmine@...>

24 messages 2012/04/22

[#44630] [ruby-trunk - Feature #6361][Open] Bitwise string operations — "MartinBosslet (Martin Bosslet)" <Martin.Bosslet@...>

31 messages 2012/04/26

[#44648] [ruby-trunk - Feature #6367][Open] #same? for Enumerable — "prijutme4ty (Ilya Vorontsov)" <prijutme4ty@...>

16 messages 2012/04/26

[#44704] [ruby-trunk - Feature #6373][Open] public #self — "trans (Thomas Sawyer)" <transfire@...>

61 messages 2012/04/27

[#44748] [ruby-trunk - Feature #6376][Open] Feature lookup and checking if feature is loaded — "trans (Thomas Sawyer)" <transfire@...>

13 messages 2012/04/28

[ruby-core:44073] [Archive91 - Backport #1964] Compile Issue on Solaris 10

From: "graza (Graham Agnew)" <graham.agnew@...>
Date: 2012-04-02 15:23:06 UTC
List: ruby-core #44073
Issue #1964 has been updated by graza (Graham Agnew).


hasari (Hiro Asari) wrote:
> =begin
>  '-xarch=v9' (or its modern replacement '-m64') appears to be problematic. Without CFLAGS as specified above, Sun's C compiler can create the ruby binary just fine.
>  
>  If I had more time to investigate, I might, but for now, that's the answer to this problem.
> =end

Hi Asari-san,

I was having this problem and took the time to investigate today.

The problem is to do with the extconf.rb file's call to pkg_config('openssl') - the returned linker flags are pointing to the 32-bit libraries by default.  So when it tests for have_func('rb_str_set_len') it fails to compile the test program because the linker path is wrong; it can't link the 32-bit libraries when -m64 is in the CFLAGS.

I've been able to compile and test 64-bit Ruby using native compilers by exporting the following environment variable value:

PKG_CONFIG_PATH=/usr/lib/sparcv9/pkgconfig.

Regards,
Graham.
----------------------------------------
Backport #1964: Compile Issue on Solaris 10
https://bugs.ruby-lang.org/issues/1964#change-25607

Author: btoal (Brian Toal)
Status: Rejected
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category: ext
Target version: 


=begin
 I'm trying to compile ruby-1.9.1-p243 on Solaris 10.
 
 $ uname -a
 SunOS condor 5.10 Generic_141414-01 sun4u sparc SUNW,Sun-Fire-V240
 
 Running make I get the following error:
 
 $ make
 cc -I. -I../../.ext/include/sparc-solaris2.10 -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I/tcg/tcg_app/tools/include -I/tcg/tcg_app/openssl/rel/include   -KPIC -fast -xarch=v9 -xcode=pic32 -g -I/usr/sfw/include    -o ossl_asn1.o -c ossl_asn1.c
 "ossl_asn1.c", line 704: improper member use: ptr
 "ossl_asn1.c", line 704: improper member use: len
 "ossl_asn1.c", line 987: improper member use: ptr
 "ossl_asn1.c", line 987: improper member use: len
 cc: acomp failed for ossl_asn1.c
 make: *** [ossl_asn1.o] Error 2
 
 What does "improper member use" mean and how do I resolve this?
=end



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next