Head Compile Errors in rpc_server/srv_reg_nt.c on sparc-sun-solaris2.8 cc: WorkShop Compilers 5.0 98/12/15 C 5.0

Richard Bollinger rabollinger at attbi.com
Sun Jul 7 09:06:02 GMT 2002


on sparc-sun-solaris2.8 cc: WorkShop Compilers 5.0 98/12/15 C 5.0

Compiling rpc_server/srv_reg_nt.c
"rpc_server/srv_reg_nt.c", line 77: cannot do pointer arithmetic on operand of unknown size
"rpc_server/srv_reg_nt.c", line 82: cannot do pointer arithmetic on operand of unknown size
"rpc_server/srv_reg_nt.c", line 93: cannot do pointer arithmetic on operand of unknown size
"rpc_server/srv_reg_nt.c", line 157: cannot do pointer arithmetic on operand of unknown size
cc: acomp failed for rpc_server/srv_reg_nt.c
*** Error code 2
make: Fatal error: Command failed for target `rpc_server/srv_reg_nt.o'


Fix is:

--- ../source/rpc_server/srv_reg_nt.c Sat Jul  6 07:15:40 2002
+++ ./rpc_server/srv_reg_nt.c Sun Jul  7 11:47:07 2002
@@ -58,7 +58,8 @@
 static BOOL store_reg_keys( TDB_CONTEXT *tdb, char *keyname, char **subkeys, uint32
um_subkeys  )
 {
  TDB_DATA kbuf, dbuf;
- void *buffer, *tmpbuf;
+ char *buffer;
+ void *tmpbuf;
  int i = 0;
  uint32 len, buflen;
  BOOL ret = True;
@@ -121,7 +122,7 @@
  pstring path;
  uint32 num_items;
  TDB_DATA dbuf;
- void *buf;
+ char *buf;
  uint32 buflen, len;
  int i;
  char *s;


Rich Bollinger, Elliott Company






More information about the samba-technical mailing list