This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: export signgam


Charles Wilson wrote:

> Charles Wilson wrote:
> 
>> It seems that some packages (especially plotutils) assume that if 
>> gamma, lgamma, j0, and erf all exist, then signgam does too. This 
>> breaks on cygwin, since signgam exists but is not exported.  However 
>> the assumption is not unreasonable, so here's a patch to export the 
>> symbol.
>>
> 
> scratch that.  It seemed so "obviously correct" -- but it ain't. 
> building new-cygwin1.dll fails with "Cannot export signgam: symbol not 
> defined." Oops.
> 
> signgam is a global variable; math.h #defines it as
> #define signgam (*__signgam())
> 
> More research required....  :-(


The following revised patch compiles successfully (and I'm running that 
kernel now).  Also, plotutils linked. :-)

--Chuck



--- cygwin.din~	Thu Jul 26 16:06:33 2001
+++ cygwin.din	Thu Jul 26 16:06:44 2001
@@ -6,6 +6,7 @@
 __errno
 __infinity
 __main
+__signgam
 __srget
 __swbuf
 _check_for_executable DATA

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]