Project

General

Profile

Actions

Bug #9329

closed

./configure --enable-shared --enable-relocatable && make fails

Added by postmodern (Hal Brodigan) about 10 years ago. Updated about 10 years ago.

Status:
Closed
Target version:
-
[ruby-core:59426]

Description

Steps to Reproduce:

$ ./configure --enable-shared --enable-relocatable
$ make

Actual Result:

compiling ./enc/encdb.c
linking encoding encdb.so
/usr/bin/ld: cannot find -l-lpthread
collect2: error: ld returned 1 exit status

Updated by nobu (Nobuyoshi Nakada) about 10 years ago

  • Status changed from Open to Feedback

What's your platform?

Updated by nobu (Nobuyoshi Nakada) about 10 years ago

Not --enable-relocatable, --enable-load-relative.

Updated by postmodern (Hal Brodigan) about 10 years ago

I can reproduce this with ./configure --enable-shared. My platform is Fedora Linux 19 x86-64.

Updated by phasis68 (Heesob Park) about 10 years ago

I can reproduce this with Ubuntu 9.04 also.

Here is a patch:

diff --git a/enc/Makefile.in b/enc/Makefile.in
index a64785d..378f4a5 100644
--- a/enc/Makefile.in
+++ b/enc/Makefile.in
@@ -28,6 +28,7 @@ BUILTIN_ENCS = ascii.c us_ascii.c
BUILTIN_TRANSES = newline.trans

RUBY_SO_NAME = @RUBY_SO_NAME@
+RUBY_BASE_NAME = @RUBY_BASE_NAME@
LIBRUBY = @LIBRUBY@
LIBRUBYARG_SHARED = @LIBRUBYARG_SHARED@
LIBRUBYARG_STATIC = $(LIBRUBYARG_SHARED)

Actions #5

Updated by nobu (Nobuyoshi Nakada) about 10 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r44469.
Hal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


mkmf.rb: expand RUBY_SO_NAME

  • lib/mkmf.rb (RbConfig): expand RUBY_SO_NAME for extensions
    backward compatibility. [ruby-core:59426] [Bug #9329]

Updated by usa (Usaku NAKAMURA) about 10 years ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: REQUIRED

Updated by naruse (Yui NARUSE) about 10 years ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: REQUIRED to 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: DONE

r45082.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0