delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/20/18:56:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Sat, 20 Jan 2001 17:55:28 -0600 (CST)
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
To: Jerome BENOIT <JGMBenoit AT Wanadoo DOT fr>
cc: Cygnus <cygwin AT sourceware DOT cygnus DOT com>
Subject: missing signgam problem [Re: perl/PDL]
In-Reply-To: <3A6A1AD8.4D81C9D8@Wanadoo.fr>
Message-ID: <Pine.HPP.3.96.1010120175004.23114Q-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

On Sun, 21 Jan 2001, Jerome BENOIT wrote:

> dllwrap --dllname Math.dll --driver-name gcc --dlltool dlltool
> --export-all-symb
> ols --as as --output-def libMath.def --output-lib libMath.a \
>  -s -L/usr/local/lib Math.o blas.o eigens.o ndtri.o quiet_nan.o cpoly.o
> simq.o s
> vd.o const.o mtherr.o polevl.o
> /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a -
> L/usr/lib -lm
> dllwrap: no export definition file provided
> dllwrap: creating one, but that may not be what you want
> Math.o(.text+0xb8c2):Math.c: undefined reference to `signgam'
[ ... ]

It's a bug in newlib (Cygwin's C library) math.h header. The variable
signgam was changed to a macro, but the header file doesn't show that.

Please add the following 2 lines *before* signgam is used in the sources
(use grep to find out), and if it works, I'll work up a patch after
I figure out the right way to do this. 

extern __IMPORT struct _reent reent_data;
#define signgam reent_data._new._reent._gamma_signgam

Regards,
Mumit



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019