From owner-freebsd-gnome@FreeBSD.ORG Thu Mar 25 10:29:26 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 5521716A4CE; Thu, 25 Mar 2004 10:29:26 -0800 (PST) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B30E643D1D; Thu, 25 Mar 2004 10:29:23 -0800 (PST) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.11]) by lakemtao06.cox.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP id <20040325182923.JOKA18400.lakemtao06.cox.net@mezz.mezzweb.com>; Thu, 25 Mar 2004 13:29:23 -0500 To: Joe Marcus Clarke References: <4062F0C4.9000100@FreeBSD.org> <1080237916.781.46.camel@gyros> <1080238908.781.51.camel@gyros> Message-ID: From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 25 Mar 2004 12:29:43 -0600 In-Reply-To: <1080238908.781.51.camel@gyros> User-Agent: Opera7.23/Linux M2 build 518 cc: Alexander Nedotsukov cc: freebsd-gnome@freebsd.org Subject: Re: Time to put ${PTHREAD_LIBS} in the x11/xscreensaver-gnome? 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: Thu, 25 Mar 2004 18:29:26 -0000 On Thu, 25 Mar 2004 13:21:48 -0500, Joe Marcus Clarke wrote: > On Thu, 2004-03-25 at 13:17, Jeremy Messenger wrote: >> On Thu, 25 Mar 2004 13:05:16 -0500, Joe Marcus Clarke >> wrote: >> >> > On Thu, 2004-03-25 at 12:52, Jeremy Messenger wrote: >> >> On Thu, 25 Mar 2004 23:46:28 +0900, Alexander Nedotsukov >> >> wrote: >> >> >> >> > Jeremy Messenger wrote: >> >> > >> >> >> Hello, >> >> >> >> >> >> I do think that GNOME team should add the ${PTHREAD_LIBS} in the >> >> >> x11/xscreensaver-gnome at LDFLAGS line. There are few people have >> the >> >> >> same problem, so it's not just a Nvidia driver issue. Updated to >> 4.15 >> >> >> must have changed something, because the older version doesn't >> >> >> required the ${PTHREAD_LIBS}. >> >> > >> >> > Guys, >> >> > >> >> > I don't think it's good idea because of two reasons: >> >> > 1. I have xscreensaver-demo properly linked and running just fine >> >> here. >> >> > Plus since I have nvidia GL library installed when all GL hacks and >> >> > gl-helper mapped through libmap to use libc_r they also runs fine. >> >> > 2. xscreensaver do not make any use of threading at all. >> >> > Even the way you proposing may fix situation on your side this is >> not >> >> > the right thing. I fact for nvidia users it will be better not to >> link >> >> > against any threading library at all. This is the way things also >> >> works >> >> > fine on my side. >> >> >> >> If I downgrade to 4.14 or below, then compile it without the >> >> ${PTHREAD_LIBS} and the xscreensaver-gnome works fine. >> >> >> >> > Speaking about incorrect linking. To proove this is the case it's >> >> > necessary to found at least one object wich make use of pthreads >> API >> >> but >> >> > do not linked against it or two objects linked against different >> >> > threading libraries. As I said I don't see any. >> >> > Well to be constructive can people (not only once who currently >> >> > expirince a problem with xscreensaver) try the patch attached and >> >> report >> >> >> >> See the 'xscreensaver-gnome & threads' thread. We have three people >> that >> >> who aren't using Nvidia driver. >> >> >> >> We have the same issue, but different video card: >> >> >> >> -Nvidia driver >> >> -ATI radeon 7000 w/ DRI enable >> >> -Radeon 9000 in dual head without DRI >> >> -Unknown, but he doesn't has any Nvidia driver >> >> >> >> > two things is: it works and what is your GL library Nvidia/Mesa? >> >> >> >> Ok, I will test your patch this afternoon. >> >> >> >> > Thanks, >> >> > Alexander. >> >> > ps. Btw, others better follow my advise to figure out what is wrong >> >> with >> >> > your installation. >> >> >> >> I doubt there's something wrong with my installtion. Around two to >> three >> >> weeks ago, I formatted my HD and did the clean installtion of >> >> 5.2-CURRENT, >> >> then went right straight to update ports tree and grab MarcusCOM CVS >> for >> >> GNOME 2.5.x. After that, all I did was add debug in the >> /etc/make.conf >> >> and >> >> do the 'make install' then install Nvidia driver and the >> >> xscreensaver-gnome doesn't even work by default installtion. >> >> >> >> All above made me believe that there is a new bug in the >> >> xscreensaver-gnome 4.15. >> > >> > The commonality is all affected users are using libc_r on -CURRENT >> > instead of libpthread. There was a change in xscreensaver 4.15 so >> that >> > libpthread is linked in if found and you're using MesaGL. The problem >> > is, only the GL modules are linked with libpthread.so. This is fine >> if >> > you're talking about libpthread.so. However, if you're talking about >> > libc_r, then the main binary also has to be linked to libc_r, or you >> get >> > the DTP. That said, modifying configure to link ${PTHREAD_LIBS} into >> > all xscreensaver executables should fix this. >> >> Weird, I thought libmap.conf can override this when it runs but I guess >> not. I saw you have committed a fix, so thanks! > > It wasn't a fix, it was just some housekeeping. What happened with > bland's patch? I haven't test both of them yet, but I will this afternoon. Soon, I will be out then do the paint in my sister's room. :-) Cheers, Mezz > Joe > >> >> Cheers, >> Mezz >> >> > Joe >> > >> >> >> >> >> Cheers, >> >> >> Mezz -- bsdforums.org 's moderator, mezz.