From owner-freebsd-gnome@FreeBSD.ORG Sun Aug 15 20:48:46 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92D0916A4CE; Sun, 15 Aug 2004 20:48:46 +0000 (GMT) Received: from lakermmtao04.cox.net (lakermmtao04.cox.net [68.230.240.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09EA243D55; Sun, 15 Aug 2004 20:48:46 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz ([68.103.32.140]) by lakermmtao04.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040815204843.KUFQ5215.lakermmtao04.cox.net@mezz>; Sun, 15 Aug 2004 16:48:43 -0400 Date: Sun, 15 Aug 2004 15:48:35 -0500 To: "Joe Marcus Clarke" References: <1092600723.73556.14.camel@shumai.marcuscom.com> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <1092600723.73556.14.camel@shumai.marcuscom.com> User-Agent: Opera M2/7.54 (Linux, build 751) cc: knu@freebsd.org cc: freebsd-gnome@freebsd.org Subject: Re: glib20 vs ruby-gtktrayicon, PTHREAD_(CFLAGS|LIBS) issue? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 20:48:46 -0000 On Sun, 15 Aug 2004 16:12:04 -0400, Joe Marcus Clarke 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@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org