ports/136407: ruby, -lpthread option need for some libraries

Makoto Kishimoto ksmakoto at dd.iij4u.or.jp
Tue Jul 7 08:20:03 UTC 2009


>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 at 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:



More information about the freebsd-ports-bugs mailing list