From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4756 invoked by alias); 8 Mar 2010 21:54:58 -0000 Received: (qmail 4740 invoked by uid 22791); 8 Mar 2010 21:54:57 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog101.obsmtp.com (HELO eu1sys200aog101.obsmtp.com) (207.126.144.111) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Mar 2010 21:54:53 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKS5VyKqAUzcMwi2E9Y+Tb4anoBRq6vYmx@postini.com; Mon, 08 Mar 2010 21:54:52 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E70E976; Mon, 8 Mar 2010 21:54:49 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [10.65.7.198]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 864C1FAE; Mon, 8 Mar 2010 21:54:49 +0000 (GMT) Received: from [10.65.4.89] (bri1017.bri.st.com [10.65.4.89]) by mail1.bri.st.com (MOS 3.8.7a) with ESMTP id CNS53110 (AUTH antony); Mon, 8 Mar 2010 21:54:48 GMT Message-ID: <4B957228.1040105@st.com> Date: Thu, 11 Mar 2010 07:01:00 -0000 From: Antony KING User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: insight@sourceware.org Cc: gdb@sourceware.org Subject: How can I build Insigh/GDB so that it is statically linked with the itcl packages ? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00028.txt.bz2 Hi, I am trying to build a usable Insight/GDB (from the gdb_7_1-branch) using the in-tree Tcl, Tk and Itcl packages with the --disable-shared option. Everything is built correctly, i.e. the Tcl, Tk and Itcl libraries are all built as static libraries. Unfortunately GDB is no longer (since Insight/GDB 6.8 :-( ) linked with the itcl libraries and instead it is assuming that they are dynamic and are loaded at run-time. This, of cause, fails since the libraries are static: Error: couldn't load file "/lib/itcl3.3/libitcl3.3.a": /lib/itcl3.3/libitcl3.3.a: invalid ELF header Is there a patch available which allows me to build Insight/GDB and its libraries fully statically (I could not find one) ? If not, would it be possible for me to re-instate this capability in GDB by reverting some (or all) of the patches applied below: http://sourceware.org/ml/gdb-patches/2008-07/msg00454.html resulting from these changes: http://sources.redhat.com/ml/insight/2008-q3/msg00010.html http://sources.redhat.com/ml/insight/2008-q3/msg00018.html Or is there more to it :-) ? Thanks in advance, Antony.