Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
Eli Zaretskii writes: > Did you try declaring the prototype of that function with > '__attribute__((dllexport))' when compiling the DLL, and with > '__attribute__((dllimport)' when linking against the DLL? No. But I think I've found a solution. I need to do like gcc and add .def_net

Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: > Some questions remain. Why didn't the other tests of functions with > assembly implementation, in particular md5-test and sha1-test, fail in > the same way? Hmm. That's most likely because the involved assembly function, _nettle_md5_compress, is calle

Re: Problem with w32 shared libraries

2014-05-31 Thread Eli Zaretskii
> Date: Fri, 30 May 2014 18:47:37 +0300 > From: Eli Zaretskii > Cc: nettle-bugs@lists.lysator.liu.se > > > Is it possible for you to do a git checkout? > > Yes. > > > For the cross-compile case, it would be > > > > git clone git://git.lysator.liu.se/nettle/nettle.git > > cd nettle > > ./

Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
Eli Zaretskii writes: > I can confirm that the shared-library version crashes on Windows. Thanks for testing. Just so I know, was that a native build or did you cross compile? > Let me know if I can help you further. Hopefully, there should be a new version later today. Regards, /Niels -- N

Re: Problem with w32 shared libraries

2014-05-31 Thread Eli Zaretskii
> From: ni...@lysator.liu.se (Niels Möller) > Cc: nettle-bugs@lists.lysator.liu.se > Date: Sat, 31 May 2014 09:58:18 +0200 > > Eli Zaretskii writes: > > > I can confirm that the shared-library version crashes on Windows. > > Thanks for testing. Just so I know, was that a native build or did you

Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
Eli Zaretskii writes: >> From: ni...@lysator.liu.se (Niels Möller) >> Hopefully, there should be a new version later today. > > OK, I will try that when it's available. I just pushed a fix to the git repo. 32-bit windows builds, with shared libraries, now work for me, using the mingw cross compi

Re: Problem with w32 shared libraries

2014-05-31 Thread Eli Zaretskii
> From: ni...@lysator.liu.se (Niels Möller) > Cc: nettle-bugs@lists.lysator.liu.se > Date: Sat, 31 May 2014 13:54:55 +0200 > > Eli Zaretskii writes: > > >> From: ni...@lysator.liu.se (Niels Möller) > >> Hopefully, there should be a new version later today. > > > > OK, I will try that when it's a

Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
Eli Zaretskii writes: > Sorry, it still crashes for me in the same way. That's disappointing... Does the new configure test work right for you? You should get define(, )dnl define(, )dnl in config.m4, and a prologue like .globl _nettle_arcfour_crypt .def _nettle_arcfour_crypt .scl 2

Re: Problem with w32 shared libraries

2014-05-31 Thread Eli Zaretskii
> From: ni...@lysator.liu.se (Niels Möller) > Cc: nettle-bugs@lists.lysator.liu.se > Date: Sat, 31 May 2014 21:01:55 +0200 > > Eli Zaretskii writes: > > > Sorry, it still crashes for me in the same way. > > That's disappointing... Does the new configure test work right for you? > You should get

Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
Eli Zaretskii writes: >> From: ni...@lysator.liu.se (Niels Möller) >> You should get >> >> define(, )dnl >> define(, )dnl >> >> in config.m4 > > That's what I get, yes. Good. >> in the preprocessed assembler files, e.g, arcfour-crypt.s. > > I don't have this file; how do I create it? It

Re: Problem with w32 shared libraries

2014-05-31 Thread Eli Zaretskii
> From: ni...@lysator.liu.se (Niels Möller) > Cc: nettle-bugs@lists.lysator.liu.se > Date: Sat, 31 May 2014 21:48:15 +0200 > > In my windows cross-build, I don't have gmp available. I could try to > cross build gmp too, to try to reproduce the problem, but probably not > soon. If you wan't to trac

Re: Problem with w32 shared libraries

2014-05-31 Thread Niels Möller
Eli Zaretskii writes: >> From: ni...@lysator.liu.se (Niels Möller) >> When you configure nettle with --disable-public-key, do both 32-bit and >> 64-bit windows builds work? > > Only 32-bit. I don't have a 64-bit development environment here. Noted. Thanks for testing, /Niels -- Niels Möller.