This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[khan@NanoTech.Wisc.EDU: missing signgam problem [Re: perl/PDL]]
- To: newlib at sources dot redhat dot com
- Subject: [khan@NanoTech.Wisc.EDU: missing signgam problem [Re: perl/PDL]]
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sat, 20 Jan 2001 19:02:48 -0500
Should this be fixed in newlib?
cgf
----- Forwarded message from Mumit Khan <khan@NanoTech.Wisc.EDU> -----
From: Mumit Khan <khan@NanoTech.Wisc.EDU>
To: Jerome BENOIT <JGMBenoit@Wanadoo.fr>
cc: Cygnus <cygwin@sourceware.cygnus.com>
Subject: missing signgam problem [Re: perl/PDL]
Date: Sat, 20 Jan 2001 17:55:28 -0600 (CST)
In-Reply-To: <3A6A1AD8.4D81C9D8@Wanadoo.fr>
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
----- End forwarded message -----
--
cgf@cygnus.com Red Hat, Inc.
http://sources.redhat.com/ http://www.redhat.com/