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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e11857ea4f39dd6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail From: AJAskey Newsgroups: comp.lang.ada Subject: Re: Trig Function Linking Problems Date: 17 Apr 2007 04:48:55 -0700 Organization: http://groups.google.com Message-ID: <1176810535.086749.51500@q75g2000hsh.googlegroups.com> References: <1176755562.190964.167640@w1g2000hsg.googlegroups.com> <20ejmjj3ci.fsf@hod.lan.m-e-leypold.de> <1176803966.623937.251290@e65g2000hsc.googlegroups.com> NNTP-Posting-Host: 199.46.199.237 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1176810535 4163 127.0.0.1 (17 Apr 2007 11:48:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 17 Apr 2007 11:48:55 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 dfw-gate6.raytheon.com:8080 (Squid/2.4.STABLE7) Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=199.46.199.237; posting-account=CYqfnw0AAAAF1B0yTvpOrbsgro2pqp2d Xref: g2news1.google.com comp.lang.ada:15083 Date: 2007-04-17T04:48:55-07:00 List-Id: On Apr 17, 6:55 am, Markus E Leypold 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