2_2 CVS Fails to Compile - rpc_server/srv_spoolss_nt.c

Richard Bollinger rabollinger at attbi.com
Tue Apr 1 14:00:15 GMT 2003


Compiling rpc_server/srv_spoolss_nt.c
rpc_server/srv_spoolss_nt.c: In function `open_printer_hnd':
rpc_server/srv_spoolss_nt.c:512: structure has no member named `ctx'
make: *** [rpc_server/srv_spoolss_nt.o] Error 1

Looks like something from 3_0 crept in... that version does define a member "ctx" within the Printer
structure... this one does not.  Maybe that inserted code needs to go (or more infrastructure needs
to be added)?

Thanks, Rich B

Possible fix:

--- ../source/rpc_server/srv_spoolss_nt.c Tue Apr  1 07:15:19 2003
+++ ./rpc_server/srv_spoolss_nt.c Tue Apr  1 08:51:44 2003
@@ -509,12 +509,6 @@

  new_printer->notify.option=NULL;

- if ( !(new_printer->ctx = talloc_init_named("Printer Entry [0x%x]", (uint32)hnd)) ) {
- DEBUG(0,("open_printer_hnd: talloc_init() failed!\n"));
- close_printer_handle(p, hnd);
- return False;
- }
-
  if (!set_printer_hnd_printertype(new_printer, name)) {
  close_printer_handle(p, hnd);
  return False;



More information about the samba-technical mailing list