glib20 vs ruby-gtktrayicon, PTHREAD_(CFLAGS|LIBS) issue?

Jeremy Messenger mezz7 at cox.net
Sun Aug 15 13:48:46 PDT 2004


On Sun, 15 Aug 2004 16:12:04 -0400, Joe Marcus Clarke  
<marcus at marcuscom.com> wrote:

> On Sun, 2004-08-15 at 14:00, Jeremy Messenger wrote:
>> Hello,
>>
>> I am about to take the ruby-gtktrayicon as maintaiership, but I seem  
>> can't
>> reproduce the same problem as what Kris's cluster build is having. I  
>> have
>> tried change lib_r and pthread by via the libmap.conf and I am still  
>> able
>> to install it. Is it already fixed recently or so?
>>
>> Kris has marked it as broke last July 11th. The fail build log looks  
>> like:
>>
>> =========================================
>> ===>  Configuring for ruby18-gtktrayicon-0.1.0
>> ===>  Running extconf.rb to configure
>> checking for GCC... yes
>> checking for rb_define_alloc_func()... yes
>> checking for rb_block_proc()... yes
>> checking for new allocation framework... yes
>> checking for attribute assignment... yes
>> checking for gtk+-2.0... /libexec/ld-elf.so.1:
>> /usr/local/lib/libgthread-2.0.so.400: Undefined symbol
>> "pthread_getschedparam"
>> *** Error code 1
>>
>> Stop in /a/ports/x11/ruby-gtktrayicon.
>> =========================================
>>
>> I have searched and I have found three sources:
>>
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50402
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=51533
>> http://sourceforge.net/mailarchive/message.php?msg_id=5714355
>>
>> Is it safe for me to remove the broke line from Makefile since I can't
>> reproduce this problem?
>
> Looks to me like these ports may need RUBY_WITH_PTHREAD=yes.  From what
> I can tell, a simple "require gtk2" causes the undefined symbol error.

The problem is that 'RUBY_WITH_PTHREAD' is only for FreeBSD 4.x and is  
NULL on 5.x. The fail build is on both 4.x and 5.x w/ same error.

bsd.ruby.mk (192 line):
====================================
# PORTDIRNAME is not defined yet
_IS_RUBY_R_PORT=	${.CURDIR:M*_r}
.if ${OSVERSION} >= 501000 && empty(_IS_RUBY_R_PORT)
.undef RUBY_WITH_PTHREAD
.endif
====================================

All I need is to use 'USE_RUBY_EXTCONF', but looks like it's ingored by  
ruby-gtktrayicon's extconf.rb?

bsd.ruby.mk (327 line):
====================================
# extconf.rb
.if defined(USE_RUBY_EXTCONF)
USE_RUBY=		yes

RUBY_EXTCONF?=		extconf.rb
CONFIGURE_ARGS+=	--with-opt-dir="${LOCALBASE}" \
			--with-pthread-cflags="${PTHREAD_CFLAGS}" \
			--with-pthread-libs="${PTHREAD_LIBS}"
[...more lines for PTHREAD_*...]
====================================

I will CC'ing to knu to see if he knows anything else.

Cheers,
Mezz

> Joe
>
>>
>> Cheers,
>> Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org


More information about the freebsd-gnome mailing list