Bill Allombert on Mon, 06 May 2019 12:01:30 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PATCH: support install() on Win: [Re: Please test pari-2.11.2 prerelease 1]


On Sun, May 05, 2019 at 02:07:42AM +0200, Bill Allombert wrote:
> On Sat, May 04, 2019 at 05:06:25AM -0700, Ilya Zakharevich wrote:
> > Sorry, I thought that this is self-explanatory.  To load a function,
> > you need a handle to a loaded ???image??? (DLL or EXE).  The ???old??? code
> > hardwires the name of the PARI DLL.  This cannot work (neither on
> > Unix, nor on Windows;?????????but I do not know how to fix it on Unix). 
> > 
> > There are 3 typical cases:
> > 
> > a) "addii" is in the EXE file (such as a static build of GP).
> > b) "addii" is in the libPARI.DLL (such as something dynamically linked
> >    with libPARI).
> > c) "addii" is in a DLL statically linked with libPARI (such as in
> >    Math::Pari DLL?????????which is by default statically linked with [a
> >    custom build of] libPARI).
> > 
> > The ???old??? implementation supports only the case ???b???.
> 
> The issue is that the function does not know whether addii is in the EXE
> file or libPARI.DLL, so it should try both.
> 
> In any case, thanks a lot for the solution to this problem which is
> about 20 years old now.

This should be fixed in GIT commit cf6c4836ebd.
A snapshot is available at
https://pari.math.u-bordeaux.fr/pub/pari/windows/snapshots/gp-gmp-gitcf6c4836eb.exe
Please test!

Thank for your patch!
Bill.