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-Thread: 103376,ec31fb6eda682268 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: James Alan Farrell Newsgroups: comp.lang.ada Subject: Re: STORAGE_ERROR in adainit Date: Thu, 12 Aug 2004 11:55:12 -0400 Message-ID: References: <2nvktgF5530iU1@uni-berlin.de> <1092320616.398812@edh3> X-Newsreader: Forte Free Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: fw.grammatech.com X-Trace: newsfeed.slurp.net 1092326177 209.4.89.67 (12 Aug 2004 10:56:17 -0500) X-Original-NNTP-Posting-Host: 209.4.89.67 Path: g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!newsfeed.slurp.net!not-for-mail Xref: g2news1.google.com comp.lang.ada:2693 Date: 2004-08-12T11:55:12-04:00 List-Id: Sorry for my ignorance, what does top-posting mean? I've tried changing the order that the libraries appear in the gcc -o command. Will that change the link order? (I never make assumptions like that) Changing that order did not make a difference. To follow up on my last post: I created a small program with an ada library with one procedure that does a Put_Line("I am in the ada library"); and two C libraries, one with void lib1_func(void) { printf("I am in C library1\n"); } And the other with void lib2_func(void) { printf("I am in C library2, calling C library1\n"); lib1_func(); } (each library has one object file with one procedure/function each) Built everything and linked it all together and it worked fine. I then replaced the ada library with the one we are developing (libada_interface.a) and it still worked fine. Then I replaced the C libraries with the ones for the production program and I once again got the error. Finally I replaced the ada library back to the simple test library, and I STILL got the error. Conclusion: Since the same problem showed up with both ada libraries and only with the production C libraries, not the test C libraries, there is something funky with one or more of our production C libraries. I have already tried to find any compiler/linker switches that are different for these libraries than what I would expect but found nothing. I will continue to pursue this however. Thank you, James Alan Farrell GrammaTech, inc. On Thu, 12 Aug 2004 14:20:45 +0000 (UTC), Frode Tenneboe wrote: >James Alan Farrell wrote: > >> This suggests to me that I need to create a small simple C lib with >> one object file in it, then a second simple C lib that calls the >> first. Then a C main that calls Adainit then a function in the second >> lib. I'll report back later today on the results of that experiment. > >Could you try linking the libraries in a different order? I know X >libraries had/has some issues in which order they were linked on >some platforms. Perhaps this is a similar issue? > > -Frode > >PS: Please don't top-post.