comp.lang.ada
 help / color / mirror / Atom feed
* Help: why static link fails?
@ 2002-05-29 16:38 Mário Amado Alves
  0 siblings, 0 replies; only message in thread
From: Mário Amado Alves @ 2002-05-29 16:38 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-29 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-29 16:38 Help: why static link fails? Mário Amado Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox