[bug-notifications] [ruby 0003909]: Problem compiling FFI against Ruby
Mantis Bug Tracker
noreply at opencsw.org
Sat Sep 19 11:51:27 CEST 2009
A NOTE has been added to this issue.
======================================================================
http://www.opencsw.org/mantis/view.php?id=3909
======================================================================
Reported By: dam
Assigned To: bwalton
======================================================================
Project: ruby
Issue ID: 3909
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: acknowledged
======================================================================
Date Submitted: 2009-09-18 22:40 CEST
Last Modified: 2009-09-19 11:51 CEST
======================================================================
Summary: Problem compiling FFI against Ruby
Description:
When compiling the xapian-bindings for Ruby against the current Ruby I get
/bin/bash ../libtool --tag=CXX --mode=compile
/opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I..
-I/opt/csw/lib/ruby/1.8/sparc-solaris2.8
-I/opt/csw/lib/ruby/1.8/sparc-solaris2.8 -I/opt/csw/include
-library=stlport4 -features=tmplife -I/opt/csw/include -xO3 -xarch=v8
-I/opt/csw/include -c -o xapian_wrap.lo xapian_wrap.cc
mkdir .libs
/opt/studio/SOS11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I..
-I/opt/csw/lib/ruby/1.8/sparc-solaris2.8
-I/opt/csw/lib/ruby/1.8/sparc-solaris2.8 -I/opt/csw/include
-library=stlport4 -features=tmplife -I/opt/csw/include -xO3 -xarch=v8
-I/opt/csw/include -c xapian_wrap.cc -KPIC -DPIC -o .libs/xapian_wrap.o
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/config.h", line 15: Warning
(Anachronism): Attempt to redefine _FILE_OFFSET_BITS without using #undef.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 567: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 567: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 567: Error: There
must be an identifier to declare.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 568: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 568: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 568: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 569: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 569: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 569: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 570: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 570: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 570: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 571: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 571: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 571: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 572: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 572: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 572: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 573: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 573: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 573: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 592: Error: Multiple
declaration for __attribute__.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 592: Error: noreturn
is not defined.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 592: Error: Badly
formed expression.
"/opt/csw/lib/ruby/1.8/sparc-solaris2.8/ruby.h", line 592: Error: A
declaration does not specify a tag or an identifier.
Compilation aborted, too many Error messages.
gmake[6]: *** [xapian_wrap.lo] Error 1
gmake[6]: Leaving directory
`/home/dam/mgar/pkg/xapian-bindings/trunk/work/build-isa-sparcv8/xapian-bindings-1.0.11/ruby'
This does not look correct.
======================================================================
----------------------------------------------------------------------
(0006724) dam (reporter) - 2009-09-19 11:51
http://www.opencsw.org/mantis/view.php?id=3909#c6724
----------------------------------------------------------------------
Xapian is compiled with Sun Studio and it looks like the GCC-compiled Ruby
bindings can't link properly:
gmake[6]: Entering directory
`/home/dam/mgar/pkg/xapian-bindings/trunk/work/build-isa-sparcv8-binding-ruby/xapian-bindings-1.0.11/ruby'
.libs/_xapian.so: ld.so.1: ruby: fatal: relocation error: file
.libs/_xapian.so: symbol _ZTVN6Xapian13SimpleStopperE: referenced symbol
not found - .libs/_xapian.so (LoadError)
from ./xapian.rb:40
from ./smoketest.rb:27:in `require'
from ./smoketest.rb:27
FAIL: smoketest.rb
=======================================
1 of 1 tests failed
Please report to http://xapian.org/bugs
=======================================
If I build xapian with GCC I can no longer link to Sun Studio compiled
Python :-P Any chance to build Ruby with Sun Studio?
More information about the bug-notifications
mailing list