comp.lang.ada
 help / color / mirror / Atom feed
From: AJAskey <AskeyAJ@gmail.com>
Subject: Re: Trig Function Linking Problems
Date: 17 Apr 2007 04:48:55 -0700
Date: 2007-04-17T04:48:55-07:00	[thread overview]
Message-ID: <1176810535.086749.51500@q75g2000hsh.googlegroups.com> (raw)
In-Reply-To: <lsirbvp8x2.fsf@hod.lan.m-e-leypold.de>

On Apr 17, 6:55 am, Markus E Leypold
<development-2006-8ecbb5cc8aREMOVET...@ANDTHATm-e-leypold.de> wrote:

> There are switches to see how (paths and all) the c compiler is called
> behind the scenes. There are switches that can be passed through to
> gcc which make gcc show how it calls the linker and various processing
> stages. Try them.
>
> Try nm and ldd on finished binaires and intermediate object files to
> see linkage, exports and definitions.
>
> If your theory about libm not getting linked right is true, then you
> should see something unusual.
>
> BTW: Your new target is a RH 7. I seem to remember that they were
> still in the process of switching libc and had an experimental egcs
> compiler. So something messed up in linking, calling the right
> compiler stages, assembler or dynmic linking is probably a good first
> gues.
>
> Regards -- Markus

Markus - Thanks for the nm and ldd suggestions.  I was looking for
something like that.  I've tried all the gnatmake, gnatbind, and
gnatlink switches over the past day without much luck.  They told me
useful stuff, but nm and ldd is what I really need.  I've also tried
directly linking to the libraries instead of the -lm -lc -lg2c
switches in the link.  This "changes" something as the output is
different, but it still doesn't work.

I think this version of Red Hat has the libraries messed up.  The
errors occur on two totally independent systems. I was working with
someone last year who had similar problems so that makes three
independent systems.  This Red Hat bundle is old and it may have been
fixed.  Or maybe it was fixed in a subsequent version.  The right
answer is to upgrade, but that is not an immediate option.  If I can't
find anything with nm and ldd, I think I will write my own interface
to a "c" program that does the trig functions as the "c" calls work
well.  I will provide any solution I find back to this thread.

Thanks.
Andy




  reply	other threads:[~2007-04-17 11:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-16 20:32 Trig Function Linking Problems AJAskey
2007-04-16 22:46 ` Jeffrey Creem
2007-04-16 23:39   ` Markus E Leypold
2007-04-17  9:59     ` AJAskey
2007-04-17 10:55       ` Markus E Leypold
2007-04-17 11:48         ` AJAskey [this message]
2007-04-17 12:05           ` Markus E Leypold
2007-04-17 12:32       ` Ludovic Brenta
2007-04-17  0:22 ` Jeffrey R. Carter
2007-04-17 16:58 ` Dirk Heinrichs
2007-04-17 18:54   ` AJAskey
2007-04-17 20:50     ` Ludovic Brenta
replies disabled

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