Compile error rpc_server/srv_spoolss_nt.c

Scott Prather sprather at austin.ibm.com
Tue Feb 6 17:25:54 GMT 2001


With the latest cvs source for 2.2 I am getting the following error when compiling with xlc on AIX

"rpc_server/srv_spoolss_nt.c", line 770.25: 1506-025 (S) Operand must be a
modifiable lvalue.

with gcc on Red Hat 6.2 I get the following message -

rpc_server/srv_spoolss_nt.c:770: warning: assignment of read-only member `access_required'

This appears to be from the PRINTER_ACCESS_USE mapping change made recently - this is the code - 

                /* map an empty access mask to the minimum access mask */
                if (printer_default->access_required == 0x0)
                        printer_default->access_required = PRINTER_ACCESS_USE;


I am not familiar with the printing code, but it appears that a constant is being changed, is this correct behavior?  And is anyone else having compilation problems with this code?

-- 
Scott Prather
AIX PC Interop 
sprather at austin.ibm.com




More information about the samba-technical mailing list