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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab9849bc5abe7c7d,start X-Google-Attributes: gid103376,public From: "LDRA Technical Support" Subject: Statically Linking with GNU Ada Date: 1999/07/20 Message-ID: <932483088.23402.0.nnrp-14.9e9817ab@news.demon.co.uk>#1/1 X-Deja-AN: 503151673 X-NNTP-Posting-Host: ldra.demon.co.uk:158.152.23.171 X-Trace: news.demon.co.uk 932483088 nnrp-14:23402 NO-IDENT ldra.demon.co.uk:158.152.23.171 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 1999-07-20T00:00:00+00:00 List-Id: Hi, We have a user who is experiencing the following problem when trying to run one of our Ada modules on their SGI platform. 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: ada__io_exceptions__device_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: ada__io_exceptions__use_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: ada__io_exceptions__data_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: ada__io_exceptions__end_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: ada__io_exceptions__name_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: constraint_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: ada__io_exceptions__status_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Error: unresolvable symbol in /home/grubbs/Ada_CD/adastat: storage_errorEX 9002481:/home/grubbs/Ada_CD/adastat: rld: Fatal Error: this executable has unresolvable symbols We have assumed that this is due to the fact that the module is not statically linked and have therefore put our efforts in this direction. The module itself is built with SGI's Ada '95 compiler. Our user has the ACT gnat/Ada95 compiler installed on their SGI node. The spec and body files are compiled into a library with the following command: gcc -static Using this library, the executable is then built with gnatmake as follows: gnatmake -o We would be grateful if someone could: a) Confirm our diagnosis of the problem b) Provide details of how we can generate a statically linked Ada executable with GNU Ada. TIA, Ian. ijh@ldra.com