Problem with ruby-gtk2 on FreeBSD

hi everyone,

i installed ruby-gtk2 on my laptop running FreeBSD-4.8-RELEASE
yesterday, but it won’t work:

nachtalp@thanatos:~$ irb
irb(main):001:0> require ‘gtk2’
/usr/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.200:
Undefined symbol “pthread_getschedparam”

does anyone have suggestions or a solution to this problem? Probably
it’s a little too OS-specific for this list, but i figured maybe
somebody here had a similar or even the very same problem.

regards,

-Maxi Karasz

Maximilian Karasz wrote:

hi everyone,

i installed ruby-gtk2 on my laptop running FreeBSD-4.8-RELEASE
yesterday, but it won’t work:

nachtalp@thanatos:~$ irb
irb(main):001:0> require ‘gtk2’
/usr/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.200:
Undefined symbol “pthread_getschedparam”

does anyone have suggestions or a solution to this problem? Probably
it’s a little too OS-specific for this list, but i figured maybe
somebody here had a similar or even the very same problem.

regards,

-Maxi Karasz

I send a pr about this a few days ago 1. It seems it is a bug in the
ruby-gnome2 port, you have to recompile the port using -lc_r instead of
-pthread.

I still have the hacked version at home, I can send it to you by e-mail
if you want.

Cheers,

···


Laurent

Maximilian Karasz nachtalp@thoraxx.de:

i installed ruby-gtk2 on my laptop running FreeBSD-4.8-RELEASE
yesterday, but it won’t work:

nachtalp@thanatos:~$ irb
irb(main):001:0> require ‘gtk2’
/usr/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.200:
Undefined symbol “pthread_getschedparam”

a compilation problem with gtk? note that most software is written
for linux: they use -lthreads or the like in the link step, whereas
freebsd needs the -pthread compiler option. in cases like this,
simply doing “man ” clues you up.

clemens

hi there,

I send a pr about this a few days ago [1]. It seems it is a bug in the
ruby-gnome2 port, you have to recompile the port using -lc_r instead of
-pthread.

hmm, i guess i’ll give that a try :slight_smile:

I still have the hacked version at home, I can send it to you by e-mail
if you want.

that would be very nice as well in case i don’t succed with the first
alternative :wink:

Thanks a lot, it’s good to know that this problem is not related to my
system in particular :slight_smile:

greets,

-Maxi