From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25034 invoked by alias); 19 Sep 2002 12:35:13 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25024 invoked from network); 19 Sep 2002 12:35:09 -0000 Received: from unknown (HELO mail.hks.com) (63.125.197.5) by sources.redhat.com with SMTP; 19 Sep 2002 12:35:09 -0000 Received: from gimli.hks.com (fw.hks.com [63.125.196.1]) by mail.hks.com (Postfix) with ESMTP id 2524177C48 for ; Thu, 19 Sep 2002 07:37:21 -0400 (EDT) Received: from cheetah.hks.com (cheetah.hks.com [172.16.2.9]) by gimli.hks.com (Postfix) with ESMTP id ED5C124ADC5; Thu, 19 Sep 2002 08:35:08 -0400 (EDT) Received: from hks.com (localhost [127.0.0.1]) by cheetah.hks.com (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id g8JCZAK16214; Thu, 19 Sep 2002 08:35:11 -0400 Message-ID: <3D89C47E.91945A67@hks.com> Date: Thu, 19 Sep 2002 05:35:00 -0000 From: Robert Schweikert Organization: Hibbit, Karlsson & Sorensen X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Cc: rjschwei@hks.com Subject: Shared library problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00274.txt.bz2 I am trying to debug code that has lost of shared libraries and I cannot make gdb and/or the code find the libraries. When I run the code and then attach gdb I get stuff like this (gdb) attach 22736 Attaching to process 22736 0x4644747e in ?? () When I try to run the code from within gdb I get stull like this Starting program: fullPath/myExecutable fullPath/myExecutable: error while loading shared libraries: libPyX11.so: cannot open shared object file: No such file or directory But this is a lie. (gdb) show env LD_LIBRARY_PATH LD_LIBRARY_PATH = /var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/exec/lbr:/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr: /var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/External:/usr/6-0/object/linux32/exec/lbr:/usr/6-0/object/linux32/Python/Obj/lbr: /usr/6-0/object/linux32/External:/usr/5-adb/object/linux32/exec/lbr:/usr/5-adb/object/linux32/External And then ls /var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr/libPyX11.so /var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr/libPyX11.so So the library is in a directory that's on the LD_LIBRARY_PATH, the same path is on PYTHONPATH and the environment is set the same when I attach to the process. Any help in getting this to work is greatly appreciated. Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU (Robert.Schweikert@hks.com) LINUX