From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f354fdf91117572,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-29 09:38:21 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: maa@liacc.up.pt (=?ISO-8859-1?Q?M=E1rio_Amado_Alves?=) Newsgroups: comp.lang.ada Subject: Help: why static link fails? Date: 29 May 2002 09:38:20 -0700 Organization: http://groups.google.com/ Message-ID: <4a4de33a.0205290838.3066c488@posting.google.com> NNTP-Posting-Host: 193.137.36.168 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022690301 18226 127.0.0.1 (29 May 2002 16:38:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 May 2002 16:38:21 GMT Xref: archiver1.google.com comp.lang.ada:24943 Date: 2002-05-29T16:38:21+00:00 List-Id: 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.