From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14224 invoked by alias); 12 Dec 2002 13:51: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 14203 invoked from network); 12 Dec 2002 13:51:11 -0000 Received: from unknown (HELO mail.cablenet.de) (62.180.107.11) by sources.redhat.com with SMTP; 12 Dec 2002 13:51:11 -0000 Received: from machsim.com (unknown [62.180.110.156]) by mail.cablenet.de (Postfix on SuSE eMail Server 2.0) with ESMTP id BB73ADC4EA for ; Thu, 12 Dec 2002 14:27:37 +0100 (CET) Message-ID: <3DF89216.4050203@machsim.com> Date: Thu, 12 Dec 2002 05:51:00 -0000 From: Max User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Gdb LD_LIBRARY_PATH Problem Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-12/txt/msg00187.txt.bz2 Hi, I have an qt application whichis linked against a home made .so file. While app runs perfectly in the shell, it is not possible to run it in gdb due to the error : error while loading shared libraries: libDCcom.so I have gone thru all the posts in the mailing lists and newsgroups and google, but I still don't have a solution. When I do "set env LD_DEBUG=libs", I find something interesting. Gdb finds all libraries currently till the last one which is libDCcom.so. When gdb starts looking for this, it notices that the application has RPATH ( which is correct ) , searches the RPATHS and can not find it there which is also correct since the .so is not there, it is in the LD_LIBRARY_PATH. After looking for RPATH, gdb searches thru the LD_LIBRARY_PATH but !!!! this time the LD_LIBRARY_PATH is incorrect !!!! For all the searches before this shared object, the correct LD_LIBRARY_PATH is used however for the last .so , the LD_LIBRARY_PATH is broken. Can anybody give me a hint ? Max. Gdb : gdb-5.0-148 Suse 7.3, i386