Sun Solaris Compile Problem with nsswitch/wbinfo.c in SVN 13625
source
Richard Bollinger
rabollinger at gmail.com
Wed Feb 22 18:35:12 GMT 2006
Compiling nsswitch/wbinfo.c
"nsswitch/wbinfo.c", line 1296: non-constant initializer: op "NAME"
"nsswitch/wbinfo.c", line 1374: cannot recover from previous errors
cc: acomp failed for nsswitch/wbinfo.c
*** Error code 2
make: Fatal error: Command failed for target `nsswitch/wbinfo.o'
Here's a quick patch to get past it:
--- ../source/nsswitch/wbinfo.c Fri Feb 3 17:25:37 2006
+++ ./nsswitch/wbinfo.c Wed Feb 22 13:30:28 2006
@@ -1293,13 +1293,14 @@
WBFLAG_PAM_INFO3_TEXT;
fstring tok;
int i;
- const char *arg[] = { string_arg, NULL };
+ const char *arg[] = { NULL, NULL };
const char *cctypes[] = { "FILE",
"KCM",
"KCM:0",
"Garbage",
NULL,
"0"};
+ arg[0] = string_arg;
while (next_token(arg, tok, LIST_SEP, sizeof(tok))) {
More information about the samba-technical
mailing list