[krbdev.mit.edu #7074] AutoReply: Another Solaris 8 incompatibility (krb5-1.9.1)

Richard Basch via RT rt-comment at krbdev.mit.edu
Sat Jan 14 12:24:36 EST 2012


This is a slightly revised patch...

--- 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-14
12:23:13.000000000 -0500
@@ -40,9 +40,15 @@
 #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 */
+#if !defined(isblank)
+#define isblank isspace
+#endif
+#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=

-----Original Message-----
From: krb5 [mailto:rt at krbdev.mit.edu] 
Sent: Friday, January 13, 2012 6:43 PM
To: basch at alum.mit.edu
Subject: [krbdev.mit.edu #7074] AutoReply: Another Solaris 8 incompatibility
(krb5-1.9.1) 


Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
	"Another Solaris 8 incompatibility (krb5-1.9.1)", 
a summary of which appears below.

There is no need to reply to this message right now.  Your ticket has been
assigned an ID of [krbdev.mit.edu #7074].

Please include the string:

         [krbdev.mit.edu #7074]

in the subject line of all future correspondence about this issue. To do so,

you may reply to this message.

                        Thank you,
                        

-------------------------------------------------------------------------
In addition to the prior bug I reported with ksu (setenv), there is another
compilation issue with Solaris 8.
This one occurs if you attempt to compile with --with-ldap.

Isblank() is not defined, but the code assumes the function exists and
merely is lacking a prototype. This fix is more of a workaround to use the
isspace() function if isblank() does not exist. Unfortunately, isspace()
will match additional characters such as \r and \n, whereas isblank() should
only match \t and 0x20 (space).

I still have some testing to do, but at least things are progressing
further.

-Richard







More information about the krb5-bugs mailing list