Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2009 08:18:20 GMT
From:      Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/136407: ruby, -lpthread option need for some libraries
Message-ID:  <200907070818.n678IKd8008397@www.freebsd.org>
Resent-Message-ID: <200907070820.n678K27C060479@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136407
>Category:       ports
>Synopsis:       ruby, -lpthread option need for some libraries
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 07 08:20:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Makoto Kishimoto
>Release:        7.2-STABLE
>Organization:
>Environment:
FreeBSD norikura.localdomain 7.2-STABLE FreeBSD 7.2-STABLE #0 r195130M: Sun Jun 28 17:40:18 JST 2009     ksmakoto@norikura.localdomain:/export/src/sys/amd64/compile/NORIKURA2009Jun28  amd64
>Description:
After change of Jun 19 of lang/ruby18, when compiling (linking) extension module, -lpthread linker option absent.
This cause library that needs threading cannot load.
>How-To-Repeat:
1 update ports tree
2 rebuild and install lang/ruby18
3 rebuild and install japanese/ruby-mecab
4
$ ruby -rMeCab -e 'MeCab::Tagger.new'
/libexec/ld-elf.so.1: /usr/local/lib/ruby/site_ruby/1.8/amd64-freebsd7/MeCab.so: Undefined symbol "_ZN5MeCab12createTaggerEPKc"
>Fix:
This is workaround, may be not fix.

(1) patch Makefile
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/ruby18/Makefile,v
retrieving revision 1.143
diff -u -r1.143 Makefile
--- Makefile    19 Jun 2009 12:42:44 -0000      1.143
+++ Makefile    7 Jul 2009 08:10:43 -0000
@@ -55,6 +55,7 @@
 .endif

 PKGNAMESUFFIX= #empty
+LDFLAGS+=      ${PTHREAD_LIBS}

 .if defined(WITHOUT_PTHREADS)
 CONFIGURE_ARGS+=--disable-pthread

(2) 
in lang/ruby18/files/patch-configure.in

-       c_r)
+       c_r | pthread)

disable this patch

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907070818.n678IKd8008397>