[krbdev.mit.edu #7057] Krb5 1.9.x does not build on Solaris 8 - Implicit function declaration error

Richard Basch via RT rt-comment at krbdev.mit.edu
Tue Dec 27 14:23:10 EST 2011


Kerberos 1.9.x does not build on Solaris 8, using gcc.  I trace the problem
down to the build now setting the gcc flag
-werror-implicit-function-declaration, which it did not previously include
in Kerberos 1.8.x builds. 'ksu' still has an implicit function declaration
for strcpy and memcpy because Solaris lacks a setenv() function in libc and
thus includes the offending code.

Enclosed is the patch...


--- src/clients/ksu/setenv.c.orig	2009-10-30 20:48:38.000000000 -0400
+++ src/clients/ksu/setenv.c	2011-12-27 14:03:05.000000000 -0500
@@ -21,6 +21,7 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "autoconf.h"
 
 static char *_findenv(char *, int *);




More information about the krb5-bugs mailing list