Bug 146112 - lang/ruby18 +nopthreads build error with WITHOUT_PTHREADS
Summary: lang/ruby18 +nopthreads build error with WITHOUT_PTHREADS
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stanislav Sedov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-28 12:30 UTC by Paul Shepel
Modified: 2010-04-28 20:20 UTC (History)
0 users

See Also:


Attachments
file.txt (18.29 KB, text/plain)
2010-04-28 12:30 UTC, Paul Shepel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Shepel 2010-04-28 12:30:02 UTC
While building port lang/ruby18 without pthreads error occurs:

cc -I/usr/include -O2 -pipe -fno-strict-aliasing  -fPIC    -DRUBY_EXPORT -L.  -rpath=/usr/lib:/usr/local/lib -rdynamic   main.o  libruby18-static.a -lrt -lcrypt -lm -L/usr/lib  -rpath=/usr/lib:/usr/local/lib  -o miniruby
libruby18-static.a(process.o)(.text+0x1f40): In function `proc_exec_v':
: undefined reference to `rb_thread_stop_timer_fake'
libruby18-static.a(process.o)(.text+0x2a92): In function `rb_proc_exec':
: undefined reference to `rb_thread_stop_timer_fake'
*** Error code 1

full log in attachment

Fix: Do not set WITHOUT_PTHREADS 

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/lang/ruby18
env WITHOUT_PTHREADS=yes make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-04-28 12:30:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stas

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Paul Shepel 2010-04-28 12:52:47 UTC
Also this error appears in FreeBSD 7.3 and 6.4, but in 6.4 ruby can't
be built with pthreads
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-04-28 20:10:36 UTC
stas        2010-04-28 19:10:28 UTC

  FreeBSD ports repository

  Modified files:
    lang/ruby18/files    patch-process.c 
  Log:
  - Fix build without pthreads.
  
  PR:             ports/146112
  Reported by:    Paul <Paul.Shepel@gmail.com>
  
  Revision  Changes    Path
  1.4       +7 -4      ports/lang/ruby18/files/patch-process.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Stanislav Sedov freebsd_committer freebsd_triage 2010-04-28 20:10:48 UTC
State Changed
From-To: open->closed

Fixed.