From vova@fbsd.ru  Sun Sep 17 09:29:34 2006
Return-Path: <vova@fbsd.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0ED8E16A40F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Sep 2006 09:29:34 +0000 (UTC)
	(envelope-from vova@fbsd.ru)
Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6559043D53
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Sep 2006 09:29:33 +0000 (GMT)
	(envelope-from vova@fbsd.ru)
Received: from localhost.fbsd.ru ([127.0.0.1] helo=vbook.fbsd.ru)
	by vbook.fbsd.ru with esmtp (Exim 4.63 (FreeBSD))
	(envelope-from <vova@fbsd.ru>)
	id 1GOsxw-0003un-11
	for FreeBSD-gnats-submit@freebsd.org; Sun, 17 Sep 2006 13:29:32 +0400
Message-Id: <1158485372.15052@vbook.fbsd.ru>
Date: Sun, 17 Sep 2006 13:29:32 +0400
From: "Vladimir Grebenschikov" <vova@fbsd.ru>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: security/gnome-ssh-askpass doesn't work: Undefined symbol "pthread_getschedparam"
X-Send-Pr-Version: gtk-send-pr 0.4.7 
X-GNATS-Notify:

>Number:         103322
>Category:       ports
>Synopsis:       security/gnome-ssh-askpass doesn't work: Undefined symbol "pthread_getschedparam"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    alexbl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 17 09:30:20 GMT 2006
>Closed-Date:    Fri Sep 22 08:36:30 GMT 2006
>Last-Modified:  Fri Sep 22 08:36:30 GMT 2006
>Originator:     Vladimir Grebenschikov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
SWsoft 
>Environment:


System: FreeBSD 7.0-CURRENT #8: Sat Sep  2 01:16:05 MSD 2006
    root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK



>Description:


$ gnome-ssh-askpass2
GTK Accessibility Module initialized
/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam"
$



>How-To-Repeat:


ust build security/gnome-ssh-askpass on 7-CURRENT and start it.


>Fix:


workaround:

start it with:
LD_PRELOAD=/usr/lib/libc_r.so

fix:

Index: Makefile
===================================================================
RCS file: /usr/ncvs/ports/security/gnome-ssh-askpass/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile    5 Nov 2005 05:21:48 -0000       1.8
+++ Makefile    17 Sep 2006 09:20:41 -0000
@@ -23,7 +23,11 @@
 USE_X_PREFIX=  yes
 USE_GNOME=     gtk20
 
+.include <bsd.port.pre.mk>
+
 do-install:
        ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gnome-ssh-askpass2 ${PREFIX}/bin
 
-.include <bsd.port.mk>
+CFLAGS+= ${PTHREAD_LIBS}
+
+.include <bsd.port.post.mk>
Index: files/patch-pthread-libs
===================================================================
RCS file: files/patch-pthread-libs
diff -N files/patch-pthread-libs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/patch-pthread-libs    17 Sep 2006 09:22:31 -0000
@@ -0,0 +1,11 @@
+--- contrib/Makefile.orig      Mon Sep 30 04:44:40 2002
++++ contrib/Makefile   Sun Sep 17 13:21:44 2006
+@@ -7,7 +7,7 @@
+               `gnome-config --libs gnome gnomeui`
+ 
+ gnome-ssh-askpass2: gnome-ssh-askpass2.c
+-      $(CC) `pkg-config --cflags gtk+-2.0` \
++      $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` \
+               gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
+               `pkg-config --libs gtk+-2.0`
+ 



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->alexbl 
Responsible-Changed-By: alexbl 
Responsible-Changed-When: Wed Sep 20 19:43:43 UTC 2006 
Responsible-Changed-Why:  
I will take it. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/103322: commit references a PR
Date: Fri, 22 Sep 2006 08:22:20 +0000 (UTC)

 alexbl      2006-09-22 08:22:11 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/gnome-ssh-askpass Makefile 
   Added files:
     security/gnome-ssh-askpass/files patch-contrib_Makefile 
   Log:
   - Add PTHREAD_LIBS to CFLAGS
   
   PR:             103322
   Submitted by:   Vladimir Grebenschikov <vova@fbsd.ru>
   Approved by:    novel (mentor)
   
   Revision  Changes    Path
   1.9       +4 -1      ports/security/gnome-ssh-askpass/Makefile
   1.1       +11 -0     ports/security/gnome-ssh-askpass/files/patch-contrib_Makefile (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: alexbl 
State-Changed-When: Fri Sep 22 08:36:28 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

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