This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
missing signgam problem [Re: perl/PDL]
- To: Jerome BENOIT <JGMBenoit at Wanadoo dot fr>
- Subject: missing signgam problem [Re: perl/PDL]
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Sat, 20 Jan 2001 17:55:28 -0600 (CST)
- cc: Cygnus <cygwin at sourceware dot cygnus dot com>
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