From: David L. <dav...@cs...> - 2001-06-12 13:39:01
|
On Tue, 12 Jun 2001, Isabelle Moullet typed thusly: > >Try downloading a source code release (1.10alpha3 is okay) and building it > >in the same environment you want to run it. > I have in fact downloaded the source code release (1.10alpha3 ) and > installed it on my platform (Solaris 8 machine) following the README > instructions(configure, make, make install). Is there something I > should change in the Makefile to make it run ? maybe a patch like that below would help. because solaris might have ldap_init_templates() but not ldap_name2template(). if all else fails, undefine HAVE_LDAP_INIT_TEMPLATES in config.h and re-make all the .o files d Index: configure.in =================================================================== RCS file: /cvsroot/python-ldap/python-ldap/configure.in,v retrieving revision 1.14 diff -u -r1.14 configure.in --- configure.in 2001/05/16 17:03:57 1.14 +++ configure.in 2001/06/12 13:17:49 @@ -207,7 +207,8 @@ AC_DEFINE(LDAP_TYPE_IS_OPAQUE) fi -AC_CHECK_FUNCS(ldap_modrdn2_s ldap_modrdn2 ldap_init_templates) +AC_CHECK_FUNCS(ldap_modrdn2_s ldap_modrdn2) +AC_CHECK_FUNCS(ldap_init_templates ldap_name2template) AC_CHECK_HEADERS(disptmpl.h) dnl Index: Modules/template.c =================================================================== RCS file: /cvsroot/python-ldap/python-ldap/Modules/template.c,v retrieving revision 1.9 diff -u -r1.9 template.c --- Modules/template.c 2001/05/12 08:08:39 1.9 +++ Modules/template.c 2001/06/12 13:18:07 @@ -235,6 +235,7 @@ return ret; } +#ifdef HAVE_LDAP_NAME2TEMPLATE /* retrieve a template by name */ static PyObject * Templates_name2template(self, args) @@ -257,6 +258,7 @@ static char Templates_name2template_doc[] = "name2template(name) -> template\n" "Do stuff."; +#endif /* HAVE_LDAP_NAME2TEMPLATE */ /* retrieve a template by objectClass */ static PyObject * @@ -307,8 +309,10 @@ "Do stuff."; static PyMethodDef Templates_methods[] = { +#ifdef HAVE_LDAP_NAME2TEMPLATE { "name2template", (PyCFunction)Templates_name2template, METH_VARARGS, Templates_name2template_doc }, +#endif /* HAVE_LDAP_NAME2TEMPLATE */ { "oc2template", (PyCFunction)Templates_oc2template, METH_VARARGS, Templates_oc2template_doc }, { NULL, NULL } -- David Leonard Dav...@ds... DSTC Room:78-632 Ph:+61 7 336 58358 The University of Queensland http://www.dstc.edu.au/ QLD 4072 AUSTRALIA B73CD65FBEF4C089B79A8EBADF1A932F13EA0FC8 The entire history of the world is the triumph of the heartless over the mindless. - Sir Humphrey Appleby, Yes Minister. |