public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Antony KING <antony.king@st.com>
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 ?
Date: Thu, 11 Mar 2010 07:01:00 -0000	[thread overview]
Message-ID: <4B957228.1040105@st.com> (raw)

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 "<root>/lib/itcl3.3/libitcl3.3.a":
<root>/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.

                 reply	other threads:[~2010-03-08 21:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B957228.1040105@st.com \
    --to=antony.king@st.com \
    --cc=gdb@sourceware.org \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).