comp.lang.ada
 help / color / mirror / Atom feed
From: James Alan Farrell <anonymous@anonymous.com>
Subject: Re: STORAGE_ERROR in adainit
Date: Thu, 12 Aug 2004 11:55:12 -0400
Date: 2004-08-12T11:55:12-04:00	[thread overview]
Message-ID: <b54nh095ie43kpbtabj1o8n7rvi9ersnln@4ax.com> (raw)
In-Reply-To: 1092320616.398812@edh3

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
<ft@alne.edh.ericsson.se> wrote:

>James Alan Farrell <anonymous@anonymous.com> 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.




  reply	other threads:[~2004-08-12 15:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 21:31 STORAGE_ERROR in adainit James Alan Farrell
2004-08-11 22:29 ` Marc A. Criley
2004-08-12 13:35   ` James Alan Farrell
2004-08-12 14:20     ` Frode Tenneboe
2004-08-12 15:55       ` James Alan Farrell [this message]
2004-08-12 21:17         ` Björn Persson
2004-08-12 19:28 ` James Alan Farrell
2004-08-12 19:42   ` Ludovic Brenta
2004-08-12 22:10     ` Stephen Leake
2004-08-12 21:15   ` Björn Persson
2004-08-13 13:36     ` James Alan Farrell
2004-08-17 21:37       ` Björn Persson
2004-08-18 14:00         ` James Alan Farrell
2004-08-18 15:57           ` Björn Persson
2004-08-18 19:44           ` Simon Wright
2004-08-18 21:13             ` James Alan Farrell
replies disabled

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