Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Jerome BENOIT cc: Cygnus Subject: missing signgam problem [Re: perl/PDL] In-Reply-To: <3A6A1AD8.4D81C9D8@Wanadoo.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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