Hello there,
Seems that Pike 7.5 is not compatible with nettle 1.7... because it look for nettle_md5_init() and since it doesn't exist on Nettle 1.7.... It fails...
Ok, now this is bad that 1.8 has some api changes.... and/or that Pike 7.5 cannot cope with Nettle 1.7 ;(
My question is why do pike doen't support both api ???
/Xavier
Wasn't this discussed just some weeks ago?
Text 11218950 (don't know the message id), from 2004-01-16:
: 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-02-06 14:58: Subject: Nettle 1.7 and pike 7.5
Hello there,
Seems that Pike 7.5 is not compatible with nettle 1.7... because it look for nettle_md5_init() and since it doesn't exist on Nettle 1.7.... It fails...
Ok, now this is bad that 1.8 has some api changes.... and/or that Pike 7.5 cannot cope with Nettle 1.7 ;(
My question is why do pike doen't support both api ???
/Xavier
/ Brevbäraren
Then, could you update the configure script?
/ Martin Nilsson (saturator)
Previous text:
2004-02-06 15:07: Subject: Nettle 1.7 and pike 7.5
Wasn't this discussed just some weeks ago?
Text 11218950 (don't know the message id), from 2004-01-16:
: 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)
Yeah, I can do that. But in general, I think it's better if someone that experiences the problem make such changes, then it's easier to verify that they really work.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-02-06 15:12: Subject: Nettle 1.7 and pike 7.5
Then, could you update the configure script?
/ Martin Nilsson (saturator)
They should start a Xenofarm client...
While at it, could you add a configure rule that checks if both idea.c and idea.h is in the source directory. I would like it possible to just delete these files and still be able to build the Nettle glue (without IDEA support of course).
/ Martin Nilsson (saturator)
Previous text:
2004-02-06 15:24: Subject: Nettle 1.7 and pike 7.5
Yeah, I can do that. But in general, I think it's better if someone that experiences the problem make such changes, then it's easier to verify that they really work.
/ Niels Möller (vässar rödpennan)
I've checked in a new configure.in now. Hope it works for anybody else.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-02-06 15:26: Subject: Nettle 1.7 and pike 7.5
They should start a Xenofarm client...
While at it, could you add a configure rule that checks if both idea.c and idea.h is in the source directory. I would like it possible to just delete these files and still be able to build the Nettle glue (without IDEA support of course).
/ Martin Nilsson (saturator)
Actually, I'm not sure it works even for myself... I get HAVE_LIBNETTLE properly defined in nettle_config.h, but I get no such module with make run_hilfe.
I'm a little lost here.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-02-06 16:09: Subject: Nettle 1.7 and pike 7.5
I've checked in a new configure.in now. Hope it works for anybody else.
/ Niels Möller (vässar rödpennan)
-lnettle and -lgmp are missing in MODULE_LDFLAGS.
/ Martin Nilsson (saturator)
Previous text:
2004-02-06 16:38: Subject: Nettle 1.7 and pike 7.5
Actually, I'm not sure it works even for myself... I get HAVE_LIBNETTLE properly defined in nettle_config.h, but I get no such module with make run_hilfe.
I'm a little lost here.
/ Niels Möller (vässar rödpennan)
Looking in the config.log it looks like it succeeds with the first AC_CHECK_LIB test and then continues with the second one and fails.
How do you check your changes in configure.in without deleting the entire build tree?
/ Martin Nilsson (saturator)
Previous text:
2004-02-06 16:46: Subject: Nettle 1.7 and pike 7.5
And what's the right way to fix that?
/ Niels Möller (vässar rödpennan)
Hmm, there's a typo in one of the tests.
I run make, relying on the autoconf-related rules to do the right thing. Works sometimes.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-02-06 16:58: Subject: Nettle 1.7 and pike 7.5
Looking in the config.log it looks like it succeeds with the first AC_CHECK_LIB test and then continues with the second one and fails.
How do you check your changes in configure.in without deleting the entire build tree?
/ Martin Nilsson (saturator)
I think the configure stuff is working properly now. But the generated moduile.so is fishy. It should be linked statically to my /usr/local/lib/libnettle.a. nm on it says that it defines nettle_init_md5.
But the module picked up by make run_hilfe is still broken. Now IO don't get link errors anymore, by I get an empty Nettle module.
I'm giving up for now, perhaps a nuke of the build tree will sort things out, or perhaps someone more familiar with the pike build system should have a look at it.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-02-06 16:38: Subject: Nettle 1.7 and pike 7.5
Actually, I'm not sure it works even for myself... I get HAVE_LIBNETTLE properly defined in nettle_config.h, but I get no such module with make run_hilfe.
I'm a little lost here.
/ Niels Möller (vässar rödpennan)
nettle_config.h contains
/* Define to 1 if you have the `nettle' library (-lnettle). */ #define HAVE_LIBNETTLE 1
nettle.cmod and nettle.c contain
#include "nettle_config.h"
#ifdef HAVE_LIBNETTLE
... code...
And still, it seems the code is not compiled at all (nm says it doesn't refer to any globals whatsoever). *sigh*
/ Niels Möller (vässar rödpennan)
Previous text:
2004-02-06 17:13: Subject: Nettle 1.7 and pike 7.5
I think the configure stuff is working properly now. But the generated moduile.so is fishy. It should be linked statically to my /usr/local/lib/libnettle.a. nm on it says that it defines nettle_init_md5.
But the module picked up by make run_hilfe is still broken. Now IO don't get link errors anymore, by I get an empty Nettle module.
I'm giving up for now, perhaps a nuke of the build tree will sort things out, or perhaps someone more familiar with the pike build system should have a look at it.
/ Niels Möller (vässar rödpennan)
Works fine for me (deleted build tree).
/ Martin Nilsson (saturator)
Previous text:
2004-02-06 17:35: Subject: Nettle 1.7 and pike 7.5
nettle_config.h contains
/* Define to 1 if you have the `nettle' library (-lnettle). */ #define HAVE_LIBNETTLE 1
nettle.cmod and nettle.c contain
#include "nettle_config.h"
#ifdef HAVE_LIBNETTLE
... code...
And still, it seems the code is not compiled at all (nm says it doesn't refer to any globals whatsoever). *sigh*
/ Niels Möller (vässar rödpennan)
pike-devel@lists.lysator.liu.se