From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <aditya@iitk.ac.in>
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_12_24,
	DMARC_MISSING,MAILING_LIST_MULTI,RDNS_NONE autolearn=no
	autolearn_force=no version=4.0.0
Received: from mail.iitk.ac.in (unknown [203.200.95.130])
	by chiba.3jane.net (Postfix) with ESMTP id BEBD6ABD8F
	for <gentoo-dev@gentoo.org>; Tue,  4 Jun 2002 22:40:18 -0500 (CDT)
Received: from antivirus.cc.iitk.ac.in (antivirus.cc.iitk.ac.in [172.31.1.102])
	by mail.iitk.ac.in (8.9.3+Sun/8.9.3) with SMTP id JAA26393
	for <gentoo-dev@gentoo.org>; Wed, 5 Jun 2002 09:10:25 +0530 (IST)
Received: (from thunderbird [172.31.77.197])
 by antivirus.cc.iitk.ac.in (NAVGW 2.5.2.9) with SMTP id M2002060509370016100
 for <gentoo-dev@gentoo.org>; Wed, 05 Jun 2002 09:37:00 +0530
Date: Tue, 4 Jun 2002 09:17:00 +0530 (IST)
From: Prashanth Aditya Susarla <aditya@iitk.ac.in>
X-X-Sender: aditya@thunderbird.junta.iitk.ac.in
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] libGLcore error
In-Reply-To: <200206051014.50467.lars.pechan@paradise.net.nz>
Message-ID: <Pine.LNX.4.44.0206040910430.1842-100000@thunderbird.junta.iitk.ac.in>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: gentoo-dev-admin@gentoo.org
Errors-To: gentoo-dev-admin@gentoo.org
X-BeenThere: gentoo-dev@gentoo.org
X-Mailman-Version: 2.0.6
Precedence: bulk
Reply-To: gentoo-dev@gentoo.org
List-Help: <mailto:gentoo-dev-request@gentoo.org?subject=help>
List-Post: <mailto:gentoo-dev@gentoo.org>
List-Subscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>,
	<mailto:gentoo-dev-request@gentoo.org?subject=subscribe>
List-Id: Gentoo Linux developer list <gentoo-dev.gentoo.org>
List-Unsubscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>,
	<mailto:gentoo-dev-request@gentoo.org?subject=unsubscribe>
List-Archive: <http://lists.gentoo.org/pipermail/gentoo-dev/>
X-Archives-Salt: 0f3ea5ee-6898-454c-ac71-d2bb98f8ea7f
X-Archives-Hash: 0765148389e996e0b9253ff9cc25db0d

> Two phased workaround:
> 
> At linktime, i.e when building/doing emerges:
> Make sure xfree's opengl implementation is active, i.e. that the libGL.so 
> symlink points to xfree's libGL.so, not nvidia's. 
> 
> opengl-update xfree
> emerge pkg
> opengl-update nvidia 
> 
> (using LDFLAGS=-lgcc_s emerge pkg should also work). 

If you look at the nvidia-glx package, it contains precompiled libraries 
which you just install to their respective locations. So this part doesn't 
make any difference.

> At runtime:
> Either add /lib/libgcc_s.so.1 to /etc/ld.so.preload or use LD_PRELOAD on 
> libgcc_s. If you go for the ld.so.preload option you need to make sure you 
> re-enter the line of text after doing an rsync as rsync overwrites it

I did this using /etc/ld.so.preload and ran glxgears after switching to 
the nvidia interface. glxgears segfaulted. It was runnng fine otherwise.
mplayer *seems* to be working fine. (I don't have a video file immediately 
at hand). I also use another library which I load with LD_PRELOAD. I hope 
that the two don't *clash* or something. Is it possible to preload multiple 
libraries? And if so, how.


Regards,
Prashanth Aditya Susarla