On 2002-11-01 (Friday) at 11:32:26+0100 Niels Möller nisse@lysator.liu.se wrote:
Thanks for testing this.
Not a problem; thanks for all of your work on lsh/nettle.
There seems to be one more problem with that command line: nettle-openssl_p.o should probably not be included in the shared library. It is used only for benchmarking against openssl, and including it in the shared library will make the entire library depend on openssl, which isn't good.
Agreed. (I was a bit surprised when I noticed the dependency, but I wasn't sure why it was there.)
Perhaps the file should simply be moved out of the library and down into the examples directory. The same will apply whenever I add similar glue code for libgcrypt.
That seems like a reasonable solution.
Can you try getting the current nettle from cvs and check if that works?
I found one problem (a simple variable renaming error); the enclosed patch fixes it.
With the patch, as of today, current CVS works fine (with both --enabled-shared and --disabled-shared) on Red Hat Linux 8.0 (x86 architecture; gcc 3.2).
I also tried to compile on Sun Solaris 8 (sparc; SunPro 5.2 2000/09/11), but the SunPro CC doesn't ISO C99 non-constant initializers:
source='des-compat.c' object='des-compat.o' libtool=no \ depfile='.deps/des-compat.Po' tmpdepfile='.deps/des-compat.TPo' \ depmode=none /bin/bash ./depcomp \ /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I. -g -c `test -f 'des-compat.c' || echo './'`des-compat.c "des-compat.c", line 64: non-constant initializer: op "NAME" "des-compat.c", line 64: non-constant initializer: op "NAME" "des-compat.c", line 64: non-constant initializer: op "NAME" "des-compat.c", line 145: non-constant initializer: op "NAME" "des-compat.c", line 145: non-constant initializer: op "NAME" "des-compat.c", line 145: non-constant initializer: op "NAME" cc: acomp failed for des-compat.c *** Error code 2 make: Fatal error: Command failed for target `des-compat.o' Current working directory /tmp/qralston/nettle.CVS-2002-11-07 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /tmp/qralston/nettle.CVS-2002-11-07 *** Error code 1 make: Fatal error: Command failed for target `all'
If compatibility with SunPro CC is desired, I'll go ahead and construct a patch to work around its limitation; let me know.
(You may not want to install it, I won't promise that the current nettle is compatible with 1.6 nor with the next released version).
Thanks for the warning. (I don't plan to use it in production; I was mostly just interested in testing it out.)
Regards, James