From pinux@lrz.is-a-geek.org  Fri Mar 28 10:29:36 2003
Return-Path: <pinux@lrz.is-a-geek.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 77EF137B407
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Mar 2003 10:29:36 -0800 (PST)
Received: from lrz.is-a-geek.org (217-117-54-155.teledisnet.be [217.117.54.155])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 05ED943FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Mar 2003 10:29:27 -0800 (PST)
	(envelope-from pinux@lrz.is-a-geek.org)
Received: from pinux by lrz.is-a-geek.org with local (Exim 3.33 #1)
	id 18yzpW-000P3W-00
	for FreeBSD-gnats-submit@freebsd.org; Fri, 28 Mar 2003 19:47:58 +0000
Message-Id: <E18yzpW-000P3W-00@lrz.is-a-geek.org>
Date: Fri, 28 Mar 2003 19:47:58 +0000
From: Laurent Sansonetti <laurent@datarescue.be>
Sender: "pinux@arrakis" <pinux@lrz.is-a-geek.org>
Reply-To: Laurent Sansonetti <laurent@datarescue.be>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: glib20 port: pthread_getschedparam is missing from libgthread-2.0.so 	
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50402
>Category:       ports
>Synopsis:       glib20 port: pthread_getschedparam is missing from libgthread-2.0.so
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 28 10:30:10 PST 2003
>Closed-Date:    Fri Nov 21 04:44:53 JST 2003
>Last-Modified:  Fri Nov 21 04:44:53 JST 2003
>Originator:     Laurent Sansonetti
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
/	
>Environment:
System: FreeBSD natalie 5.0-RELEASE FreeBSD 5.0-RELEASE #1: Wed Mar 19 16:31:59 CET 2003 pinux@natalie:/usr/src/sys/i386/compile/NATALIE i386

The problem seems to exist as well under 4.7-STABLE.

>Description:
	The pthread_getschedparam() symbol is missing from the libgthread-2.0.so dynamic library. 
	The static library (libgthread-2.0.a) contains this symbol, so it seems there is a link issue 
	somewhere in the glib20 port.

>How-To-Repeat:
	Just use any software which load libgthread-2.0.so.
	As instance, any ruby-gnome2 example:

		# portinstall ruby-gnome2
		# cd /usr/local/share/examples/ruby/gnome2/test-gnome
		# ruby test-gnome.rb
		/usr/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.200: Undefined symbol "pthread_getschedparam"
  
>Fix:

	I tried to fix the glib-20 makefile, without success.  
	Nevertheless, I found a quick-and-dirty workaround: comment calls to pthread_getschedparam()
	in gthread-posix.c ;-)  

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->knu 
Responsible-Changed-By: marcus 
Responsible-Changed-When: Fri Mar 28 11:37:19 PST 2003 
Responsible-Changed-Why:  
This is acutally a bug with ruby-gnome2.  This port must be linked against 
${PTHREAD_LIBS} to resolve this issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50402 

From: Kimura Fuyuki <fuyuki@hadaly.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/50402: glib20 port: pthread_getschedparam is missing from libgthread-2.0.so
Date: Mon, 28 Apr 2003 17:08:18 +0900

 I think this is because the following hack in glib20/Makefile isn't
 working. glib12/files/patch-ae is required to make this trick work.
 
 		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}"
 
 $ uname -srm
 FreeBSD 5.0-RELEASE-p7 i386
 $ pkg-config --cflags --libs gthread
 -D_THREAD_SAFE -I/usr/local/include/glib12  -L/usr/local/lib -lgthread -lc_r -lglib12
 $ pkg-config --cflags --libs gthread-2.0
 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  -pthread -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -liconv
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Fri Nov 21 04:43:42 JST 2003 
State-Changed-Why:  
Seems the proposed patch was added to devel/glib20 months ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50402 
>Unformatted:
