Regarding a recent checkin:
2004-01-15 17:26:41 (grendel) Pike/7.5/src/post_modules/Nettle/configure.in, (+2/-2) (18 lines)
nice. nettle 1.7 had md5_init, 1.8 has nettle_md5_init, you can't win.
Isn't there some #define to set to have nettle not prefix its identifiers with nettle_ (if that is what it would take to win)?
The name md5_init is the advertised name, and that's what the C source files should use. But to the linker the symbol is nettle_md5_init, to avoid collisions with other md5 code that you might happen to link with. There's a
#define md5_init nettle_md5_init
So for configure, one should either test for both nettle_md5_init and md5_init, or test for only md5_init and make sure that the testprogram includes nettle/md5.h.
It's similar to gmp, where mpz_foo really is __gmpz_foo, except that I don't think that number of underscores is appropriate for nettle.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-01-16 13:35: Subject: Nettle and nettle_* identifiers
Regarding a recent checkin:
2004-01-15 17:26:41 (grendel) Pike/7.5/src/post_modules/Nettle/configure.in, (+2/-2) (18 lines)
nice. nettle 1.7 had md5_init, 1.8 has nettle_md5_init, you can't win.
Isn't there some #define to set to have nettle not prefix its identifiers with nettle_ (if that is what it would take to win)?
/ Johan Sundström (Achtung Liebe!)
pike-devel@lists.lysator.liu.se