[Samba] Printer issues with Samba 4.0.3 and compile time warnings

Benedict White Benedict.White at cse-ltd.co.uk
Wed Feb 6 08:43:40 MST 2013


I have some issues with Samba 4, setting up printer shares and was wondering if they were due to compile time warnings, in particular I am getting errors like:

../source3/rpc_server/spoolss/srv_spoolss_nt.c:1734(_spoolss_OpenPrinterEx)
Feb 06 13:00:42 linuxSBS smbd[647]: _spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\server-name

I have this on a new build Arch linux system, and get some warnings at build time, for example:

./source4/heimdal/lib/com_err/parse.c:537:16: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
../source4/heimdal/lib/com_err/parse.c:561:13: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
/home/benedict/abs/local/samba4-2/src/samba-4.0.3/librpc/idl/ntprinting.idl:153: warning: helper() is pidl-specific and deprecated. Use `include' instead
../source4/librpc/rpc/dcerpc.c:460:11: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]

There are also many bits "not found" during the config check though the system appears to have all the required compile time for example:

Checking for int16 typedef included by rpc/rpc.h                                                : not found
Checking for uint16 typedef included by rpc/rpc.h                                               : not found
Checking for int32 typedef included by rpc/rpc.h                                                : not found
Checking for uint32 typedef included by rpc/rpc.h                                               : not found
Checking for _acl                                                                               : not found
Checking for __acl                                                                              : not found
Checking for _chdir                                                                             : not found
Checking for __chdir                                                                            : not found
Checking for chflags                                                                            : not found
Checking for _close                                                                             : not found
Checking for _closedir                                                                          : not found
Checking for __closedir                                                                         : not found
Checking for crypt16                                                                            : not found
Checking for devnm                                                                              : not found
Checking for DNSServiceRegister                                                                 : not found

How do I tell what's important or possibly work out what is missing?

(As a note, lots of things do seem to work rather well, including using the MS DNS tool to edit DNS)



Kindest regards,

Benedict White


More information about the samba mailing list