SAMBA_3_0 CVS compile error in nsswitch/wbinfo.c on sparc-sun-solaris2.8
Richard Bollinger
rabollinger at attbi.com
Mon Jan 6 15:15:00 GMT 2003
cc: WorkShop Compilers 5.0 98/12/15 C 5.0 sparc-sun-solaris2.8
Compiling nsswitch/wbinfo.c
"nsswitch/wbinfo.c", line 586: left operand must be modifiable lvalue: op "="
cc: acomp failed for nsswitch/wbinfo.c
*** Error code 2
make: Fatal error: Command failed for target `nsswitch/wbinfo.o'
Problem appears to be a recent change to the declaration for variable "password" to type const char
*.
Fix is to drop the "const" (see below)..
Thanks, Rich B
--- ../source/nsswitch/wbinfo.c Fri Jan 3 07:15:27 2003
+++ ./nsswitch/wbinfo.c Mon Jan 6 10:08:32 2003
@@ -573,7 +573,7 @@
static BOOL wbinfo_set_auth_user(char *username)
{
- const char *password;
+ char *password;
fstring user, domain;
/* Separate into user and password */
More information about the samba-technical
mailing list