From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28346 invoked from network); 4 May 1999 18:31:56 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 4 May 1999 18:31:56 -0000 Received: from mail11.digital.com (mail11.digital.com [192.208.46.10]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA05154 for ; Tue, 4 May 1999 13:59:48 -0400 Received: from perf.zko.dec.com (perf.zko.dec.com [16.31.144.83]) by mail11.digital.com (8.9.2/8.9.2/WV2.0g) with ESMTP id OAA14267; Tue, 4 May 1999 14:02:13 -0400 (EDT) Received: from localhost by perf.zko.dec.com (8.8.8/1.1.10.5/07Mar97-1056AM) id NAA0000007452; Tue, 4 May 1999 13:59:35 -0400 (EDT) Date: Tue, 4 May 1999 13:59:34 -0400 (EDT) From: Phillip Ezolt To: axp-list@redhat.com, scr@iis.fhg.de cc: jaffe@zko.dec.com Subject: Re: CPML linkage problem In-Reply-To: <372F03E9.794BDF32@iis.fhg.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Stefan, As a temporary work-a-round, you can also compile in the GNU libm. It will resolve the symbol. If you put cpml first on the command all cpml routines will beat out the GNU libm routines. I know people are working on fixing this internally for the next release. --Phil Digital/Compaq: HPSD/Benchmark Performance Engineering Phillip.Ezolt@compaq.com ezolt@perf.zko.dec.com On Tue, 4 May 1999, Stefan Schroepfer wrote: > Hi! > > I have problems when linking against a static lib that > uses atan () from CPML (and CPML itself): the linker > stops with "undefined reference to `__atan2'". > > Using all other functions (including atan2 ()) implemeted > in CPML I came across in that fashion works, as well as > using CPML's atan () in code linked in as object files > (not in a lib). > > System is RH 5.1 with binutils from RH 5.2 (GNU ld 2.9.1, > binutils-2.9.1.0.15-1), egcs 1.1.2, CPML V0.1. > > Anyone else who had this problem? Is it linker or > CPML related? > > Thanks in advance, > Stefan Schroepfer > scr@iis.fhg.de