Subject: Re: bug#16068: 24.3; Printing doesn't work

From: Eli Zaretskii <[email-masked]>
Date: Sat, 07 Dec 2013 15:03:55 +0200

> From: Андрей Парамонов <[email-masked]>
> Date: Sat, 7 Dec 2013 16:40:24 +0400
> Cc: [email-masked]
> 
> I got the following output:
> 
> (gdb) print *ppi2
> $1 = {pServerName = 0x0, pPrinterName = 0x38a0136
> <__register_frame_info+59375926> "RICOH Aficio 2018D PCL 6",
>   pShareName = 0x38a0134 <__register_frame_info+59375924> "", pPortName =
> 0x38a0118 <__register_frame_info+59375896> "82.97.201.165",
>   pDriverName = 0x38a00e6 <__register_frame_info+59375846> "RICOH Aficio
> 2018D PCL 6", pComment = 0x38a00e4 <__register_frame_info+59375844> "",
>   pLocation = 0x38a00e2 <__register_frame_info+59375842> "", pDevMode =
> 0x389f1c0 <__register_frame_info+59371968>,
>   pSepFile = 0x38a00e0 <__register_frame_info+59375840> "", pPrintProcessor
> = 0x38a00ce <__register_frame_info+59375822> "winprint",
>   pDatatype = 0x38a00c6 <__register_frame_info+59375814> "RAW", pParameters
> = 0x38a00c4 <__register_frame_info+59375812> "",
>   pSecurityDescriptor = 0x389f088 <__register_frame_info+59371656>,
> Attributes = 576, Priority = 1, DefaultPriority = 0, StartTime = 0,
>   UntilTime = 0, Status = 0, cJobs = 0, AveragePPM = 0}
> 
> I see that pServerName, pShareName are not set, which confuses
> Fdefault_printer_name big time (e.g. it thinks the printer is local).

Yes, that's true.  But even if pServerName were non-NULL, it would not
have helped, since pShareName is empty.  The "AFICIO2018D" that you
needed to add to get printing correctly configured is nowhere to be
seen.

It would be interesting to see what does "net share" print on the
machine which exports the printer.