From: maa@liacc.up.pt (Mário Amado Alves)
Subject: Help: why static link fails?
Date: 29 May 2002 09:38:20 -0700
Date: 2002-05-29T16:38:21+00:00 [thread overview]
Message-ID: <4a4de33a.0205290838.3066c488@posting.google.com> (raw)
My_Program builds fine (*) with a 'vanilla' gnatmake call, and runs
fine in the development system (Linux, GNAT 3.14p).
But a static link fails!
Indeed I need to make a statically linked version of My_Program to run
it on another system (also Linux) which has no dynamically loadable
libraries (actually with outdated libraries, I think from GNAT 3.13p,
but I want to assume none).
But when I do
gnatmake -f my_program -largs --static
the link fails after complaining about undefined references to
_IO_stdin_, _IO_stdout_ and _IO_stderr in functions translate_address,
bfd_nonfatal and fatal.
Help!
Thanks a lot,
--MAA
__________
(*) Well, not terribly fine. The linker warns about the use of tmpnam
and mktemp in functions __gnat_tmp_name and make_tempname being
"dangerous, better use mkstemp". This happens with a lot of my
programs since I've installed GNAT 3.14p . However my programs do not
know about those items. Tips on this are also welcome.
reply other threads:[~2002-05-29 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox