Fix for last night's CVS utils/smbpasswd.c changes - Solaris compile errors

Richard Bollinger rabollinger at attbi.com
Fri Feb 8 07:25:24 GMT 2002


Get compile errors with cc: WorkShop Compilers 5.0 98/12/15 C 5.0 on sparc-sun-solaris2.6:

Compiling utils/smbpasswd.c
"utils/smbpasswd.c", line 75: warning: improper pointer/integer combination: op "="
"utils/smbpasswd.c", line 80: warning: improper pointer/integer combination: op "="
"utils/smbpasswd.c", line 93: warning: improper pointer/integer combination: op "="
"utils/smbpasswd.c", line 174: warning: improper pointer/integer combination: op "="
"utils/smbpasswd.c", line 187: identifier redeclared: strdup_x
current : static function(pointer to const char) returning pointer to char
previous: function() returning int : "utils/smbpasswd.c", line 75
"utils/smbpasswd.c", line 201: identifier redeclared: usage
current : static function(void) returning void
previous: function() returning int : "utils/smbpasswd.c", line 146
"utils/smbpasswd.c", line 594: identifier redeclared: set_line_buffering
current : static function(pointer to struct {int _cnt, pointer to uchar _ptr, pointer to uchar
_base, uchar _flag, uchar _file}) retur...
previous: function() returning int : "utils/smbpasswd.c", line 105
cc: acomp failed for utils/smbpasswd.c
*** Error code 2
make: Fatal error: Command failed for target `utils/smbpasswd.o'

Here's patch to compile cleanly:

*** ../source/utils/smbpasswd.c Fri Feb  8 07:17:38 2002
--- ./utils/smbpasswd.c Fri Feb  8 10:12:38 2002
***************
*** 42,47 ****
--- 42,50 ----
  static char *old_passwd = NULL;
  static char *remote_machine = NULL;
  static pstring servicesf = CONFIGFILE;
+ static char *strdup_x(const char *);
+ static void usage(void);
+ static void set_line_buffering(FILE *);

  #ifdef WITH_LDAP_SAM
  static fstring ldap_secret;


Rich Bollinger, Elliott Company





More information about the samba-technical mailing list