Error building ruby+nopthreads-1.8.7.248,1

Dominic Fandrey kamikaze at bsdforen.de
Wed Apr 28 11:59:13 UTC 2010


On 28/04/2010 13:33, Paul Macdonald wrote:
> Dominic Fandrey wrote:
>> On 28/04/2010 11:34, Paul Macdonald wrote:
>>  
>>> Dominic Fandrey wrote:
>>>    
>>>> On 28/04/2010 10:55, Paul Macdonald wrote:
>>>>  
>>>>      
>>>>> Same error after a cvs update of ports tree and from deinstalling ruby
>>>>> and an attempted reinstall..
>>>>> Adding the newline in version.h didn;t change the final error.
>>>>>
>>>>> In file included from version.c:14:
>>>>> version.h:29:41: warning: no newline at end of file
>>>>> cc -I/usr/include -O2 -fno-strict-aliasing -pipe  -fPIC   
>>>>> -DRUBY_EXPORT
>>>>> -I. -I. -I/usr/include    -c dmyext.c
>>>>> ar rcu libruby18-static.a array.o  bignum.o  class.o  compar.o  dir.o
>>>>> dln.o  enum.o  enumerator.o  error.o  eval.o  file.o  gc.o  hash.o
>>>>> inits.o  io.o  marshal.o  math.o  numeric.o  object.o  pack.o
>>>>> parse.o process.o  prec.o  random.o  range.o  re.o  regex.o  ruby.o
>>>>> signal.o sprintf.o  st.o  string.o  struct.o  time.o  util.o
>>>>> variable.o version.o   dmyext.o
>>>>> cc -I/usr/include -O2 -fno-strict-aliasing -pipe  -fPIC   
>>>>> -DRUBY_EXPORT
>>>>> -I. -I. -I/usr/include    -c main.c
>>>>> cc -I/usr/include -O2 -fno-strict-aliasing -pipe  -fPIC   
>>>>> -DRUBY_EXPORT
>>>>> -L.  -rpath=/usr/lib:/usr/local/lib -rdynamic   main.o
>>>>> libruby18-static.a -lcrypt -lm -L/usr/lib
>>>>> -rpath=/usr/lib:/usr/local/lib  -o miniruby
>>>>> libruby18-static.a(process.o)(.text+0xb59): In function `proc_exec_v':
>>>>> : undefined reference to `rb_thread_stop_timer_fake'
>>>>> libruby18-static.a(process.o)(.text+0xdc6): In function
>>>>> `rb_proc_exec':
>>>>> : undefined reference to `rb_thread_stop_timer_fake'
>>>>> *** Error code 1
>>>>>
>>>>>             
>>>> Run 'make rmconfig'.
>>>>
>>>>         
>>> no difference for me, i'd tried setting pthreads in the make file anyway
>>> so i'm not sure its that.
>>>     
>>
>> Which version of FreeBSD are you running?
>>
>> What are the contents of /var/db/ports/ruby/options
>>
>> What is the output of
>> # make -VWITHOUT_PTHREADS
>>
>> Regards
>>
>>   
> 
> 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Dec 12 18:06:52 UTC 2007    
> root at ------:/usr/obj/usr/src/sys/IPFW  i386
> #make -VWITHOUT_PTHREADS
> no
> #
> 
> same problem on
> FreeBSD xxx  7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25
> make -VWITHOUT_PTHREADS
> yes

WITHOUT_PTHREADS=no and WITHOUT_PTHREADS=yes have exactly the same
effect. It appears that the variable is not intended to be set by
the user and doing so breaks the internal ports logic.

The first thing you should check is whether it is set anywhere in
your system, e.g. /etc/make.conf, /etc/src.conf, your environment
/var/db/ports/ruby/options ...

It shouldn't be in any of these.

Regards

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 


More information about the freebsd-ports mailing list