[krbdev.mit.edu #7075] FW:
Richard Basch via RT
rt-comment at krbdev.mit.edu
Fri Jan 13 18:42:49 EST 2012
My prior patch was flawed in the #ifdef logic... As I mentioned in my prior
email, compiling with --with-ldap on Solaris 8 fails because isblank() is a
relatively recent addition to libc (present in Solaris 10).
The attached patch is a bit closer to what is required, though to be
completely accurate, isblank() should be properly emulated since isspace()
will also match \r and \n in addition to \t and \040 (space).
-Richard
-----Original Message-----
From: Richard Basch [mailto:probe at k9.internal.bright-prospects.com]
Sent: Thursday, January 12, 2012 9:36 AM
To: probe at k9.internal.bright-prospects.com
Subject:
--- krb5-1.9.1/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c.orig 2010-07-15
00:18:00.000000000 -0400
+++ krb5-1.9.1/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c 2012-01-12
09:23:26.000000000 -0500
@@ -40,9 +40,13 @@
#include <kdb5.h>
#include <kadm5/admin.h>
-#if defined(NEED_ISBLANK_PROTO) && !defined(isblank)
+#if !defined(isblank) && defined(HAVE_ISBLANK)
+#if defined(NEED_ISBLANK_PROTO)
extern int isblank();
#endif
+#else /* isblank missing */
+#define isblank isspace
+#endif
krb5_error_code
krb5_ldap_get_db_opt(char *input, char **opt, char **val)
--- krb5-1.9.1/src/configure.in.orig 2010-11-01 16:36:17.000000000 -0400
+++ krb5-1.9.1/src/configure.in 2012-01-11 20:35:47.000000000 -0500
@@ -214,7 +214,7 @@
AC_PROG_LEX
AC_C_CONST
AC_HEADER_DIRENT
-AC_CHECK_FUNCS(strdup setvbuf inet_ntoa inet_aton seteuid setresuid
setreuid setegid setresgid setregid setsid flock fchmod chmod strftime
strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64
mkstemp getusershell access getcwd srand48 srand srandom stat strchr
strerror strerror_r)
+AC_CHECK_FUNCS(strdup setvbuf inet_ntoa inet_aton seteuid setresuid
setreuid setegid setresgid setregid setsid flock fchmod chmod strftime
strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64
mkstemp getusershell access getcwd srand48 srand srandom stat strchr
strerror strerror_r isblank)
AC_CHECK_FUNC(mkstemp,
[MKSTEMP_ST_OBJ=
More information about the krb5-bugs
mailing list