John M Wright
2002-Oct-14 18:27 UTC
[Samba] WIN40 printer driver on Solaris not being installed?
I am having problems with the driver installation for WIN40 (9x machines) in Samba 2.2.5 / Samba 2.2.6pre2 on a Solaris 8 machine. I build binary packages for both debian and solaris environments. For debian 2.2.5, I use the 2.2.5 source with the printing patch provided by Jerry Carter. I use the packaging/Debian/debian systems to build and package the source. For Solaris I use the following command to build the source (2.2.5 and 2.2.6pre2): ./configure --prefix=/usr/local --with-readline \ --with-privatedir=/etc/samba/private \ --with-configdir=/etc/samba \ --with-lockdir=/var/samba/locks \ --localstatedir=/var/samba \ --with-ssl=/usr/local/ssl \ --with-sslinc=/usr/local/ssl/include \ && make I use the following commands to install the printer drivers: smbclient //localhost/print$ -c 'mkdir WIN40;put /usr/company/printdrv/DEFPRTR2.PPD WIN40/APrinter.PPD; put /usr/company/printdrv/ADFONTS.MFM WIN40/ADFONTS.MFM; put /usr/company/printdrv/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV; put /usr/company/printdrv/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP; put /usr/company/printdrv/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD; put /usr/company/printdrv/ICONLIB.DLL WIN40/ICONLIB.DLL; put /usr/company/printdrv/PSMON.DLL WIN40/PSMON.DLL;' rpcclient localhost -c 'adddriver "Windows 4.0" "Printer:ADOBEPS4.DRV:APrinter.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' rpcclient localhost -c 'setdriver Printer "APrinter"' All return successfully with no error conditions (except for "NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40" when not calling for the first time). The debian system works fine (w/ 2.2.5), but the Solaris build does not appear to install the WIN40 driver correctly with either 2.2.5 or 2.2.6pre2. (W32X86 driver works fine with a Win2k client and similar commands as above using 2.2.6pre2). The driver directory looks like this: bash$ ls -lR /etc/samba/drivers/WIN40/ total 775 drwxr-xr-x 2 lpadmin 512 Oct 14 18:01 0 -rw-r--r-- 1 lpadmin 575573 Oct 14 18:01 ADFONTS.MFM -rw-r--r-- 1 lpadmin 13493 Oct 14 18:01 DEFPRTR2.PPD -rw-r--r-- 1 lpadmin 118128 Oct 14 18:01 ICONLIB.DLL -rw-r--r-- 1 lpadmin 57344 Oct 14 18:01 PSMON.DLL /etc/samba/drivers/WIN40/0: total 1446 -rw-r--r-- 1 lpadmin 1211200 Oct 14 18:01 ADOBEPS4.DRV -rw-r--r-- 1 lpadmin 234933 Oct 14 18:01 ADOBEPS4.HLP -rw-r--r-- 1 lpadmin 13493 Oct 14 18:01 APrinter.PPD (under debian, the ADFONTS.MFM, DEFPRTR2.PPD and ICONLIB.DLL files are moved to the WIN40/0 directory). When I attempt to install the driver from the WIN98 client, the client machine directs me to the local driver wizard (prompts me to choose a driver) and the following is shown in the log.smb file (log level 3): [2002/10/14 18:09:17, 3] smbd/lanman.c:api_reply(3344) Got API command 70 of form <zWrLh> <WzzzzzzzzN> (tdscnt=0,tpscnt=33,mdrcnt=1024,mprcnt=6) [2002/10/14 18:09:17, 3] smbd/lanman.c:api_reply(3348) Doing DosPrintQGetInfo [2002/10/14 18:09:17, 3] smbd/lanman.c:api_DosPrintQGetInfo(884) api_DosPrintQGetInfo: uLevel=52 name=PRINTER [2002/10/14 18:09:17, 3] smbd/lanman.c:get_printerdrivernumber(836) Can't determine number of printer driver files [2002/10/14 18:09:17, 3] smbd/lanman.c:api_DosPrintQGetInfo(918) api_DosPrintQGetInfo: Driver files count: 0 [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(656) printerdriver:A Printer: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(657) Driver:ADOBEPS4.DRV: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(658) Data File:APrinter.PPD: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(659) Language Monitor:PSMON.DLL: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(661) lp_driverlocation:\\PRINTERSHARE\print$\WIN40\0: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(664) Data Type:RAW: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(665) Help File:ADOBEPS4.HLP: [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(679) fill_printq_info on <Printer> gave 0 entries [2002/10/14 18:09:17, 3] smbd/process.c:process_smb(878) Transaction 14 of length 113
John M Wright
2002-Oct-18 15:36 UTC
[Samba] WIN40 printer driver on Solaris not being installed?
hello samba gurus: Well, I didn't hear back from anyone, and I haven't had any luck in my own trials. Since my original message, I have built 2.2.6 (final release) and have had the same problem. Does anyone have any ideas, suggestions, pointers that would help me track down this error and resolve it? To recap, the basic problem is this: I built samba 2.2.6 for Solaris and installed it with a printer share. I then used the rpcclient to install the printer drivers. Not all of the driver files get installed into WIN40/0 (they stay in WIN40) and when I attempt to install the drivers from Win98 machine, samba's log begins to list the first few files in the driver then says there are 0 files for this driver. However, this all works fine when I build the package for debian. any assistance would be appreciated thanks ~John On Monday 14 October 2002 01:22 pm, John M Wright wrote:> I am having problems with the driver installation for WIN40 (9x machines) > in Samba 2.2.5 / Samba 2.2.6pre2 on a Solaris 8 machine. I build binary > packages for both debian and solaris environments. For debian 2.2.5, I use > the 2.2.5 source with the printing patch provided by Jerry Carter. I use > the packaging/Debian/debian systems to build and package the source. For > Solaris I use the following command to build the source (2.2.5 and > 2.2.6pre2): > > ./configure --prefix=/usr/local > --with-readline \ > --with-privatedir=/etc/samba/private \ > --with-configdir=/etc/samba \ > --with-lockdir=/var/samba/locks \ > --localstatedir=/var/samba \ > --with-ssl=/usr/local/ssl \ > --with-sslinc=/usr/local/ssl/include \ > && make > > I use the following commands to install the printer drivers: > > smbclient //localhost/print$ -c > 'mkdir WIN40;put /usr/company/printdrv/DEFPRTR2.PPD WIN40/APrinter.PPD; > put /usr/company/printdrv/ADFONTS.MFM WIN40/ADFONTS.MFM; > put /usr/company/printdrv/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV; > put /usr/company/printdrv/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP; > put /usr/company/printdrv/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD; > put /usr/company/printdrv/ICONLIB.DLL WIN40/ICONLIB.DLL; > put /usr/company/printdrv/PSMON.DLL WIN40/PSMON.DLL;' > > rpcclient localhost -c 'adddriver "Windows 4.0" > "Printer:ADOBEPS4.DRV:APrinter.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS. >MFM,DEFPRTR2.PPD,ICONLIB.DLL"' > > rpcclient localhost -c 'setdriver Printer "APrinter"' > > All return successfully with no error conditions (except for > "NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40" when not > calling for the first time). > > The debian system works fine (w/ 2.2.5), but the Solaris build does not > appear to install the WIN40 driver correctly with either 2.2.5 or > 2.2.6pre2. (W32X86 driver works fine with a Win2k client and similar > commands as above using 2.2.6pre2). > > The driver directory looks like this: > bash$ ls -lR /etc/samba/drivers/WIN40/ > total 775 > drwxr-xr-x 2 lpadmin 512 Oct 14 18:01 0 > -rw-r--r-- 1 lpadmin 575573 Oct 14 18:01 ADFONTS.MFM > -rw-r--r-- 1 lpadmin 13493 Oct 14 18:01 DEFPRTR2.PPD > -rw-r--r-- 1 lpadmin 118128 Oct 14 18:01 ICONLIB.DLL > -rw-r--r-- 1 lpadmin 57344 Oct 14 18:01 PSMON.DLL > > /etc/samba/drivers/WIN40/0: > total 1446 > -rw-r--r-- 1 lpadmin 1211200 Oct 14 18:01 ADOBEPS4.DRV > -rw-r--r-- 1 lpadmin 234933 Oct 14 18:01 ADOBEPS4.HLP > -rw-r--r-- 1 lpadmin 13493 Oct 14 18:01 APrinter.PPD > > (under debian, the ADFONTS.MFM, DEFPRTR2.PPD and ICONLIB.DLL files are > moved to the WIN40/0 directory). > > When I attempt to install the driver from the WIN98 client, the client > machine directs me to the local driver wizard (prompts me to choose a > driver) and the following is shown in the log.smb file (log level 3): > > [2002/10/14 18:09:17, 3] smbd/lanman.c:api_reply(3344) > Got API command 70 of form <zWrLh> <WzzzzzzzzN> > (tdscnt=0,tpscnt=33,mdrcnt=1024,mprcnt=6) > [2002/10/14 18:09:17, 3] smbd/lanman.c:api_reply(3348) > Doing DosPrintQGetInfo > [2002/10/14 18:09:17, 3] smbd/lanman.c:api_DosPrintQGetInfo(884) > api_DosPrintQGetInfo: uLevel=52 name=PRINTER > [2002/10/14 18:09:17, 3] smbd/lanman.c:get_printerdrivernumber(836) > Can't determine number of printer driver files > [2002/10/14 18:09:17, 3] smbd/lanman.c:api_DosPrintQGetInfo(918) > api_DosPrintQGetInfo: Driver files count: 0 > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(656) > printerdriver:A Printer: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(657) > Driver:ADOBEPS4.DRV: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(658) > Data File:APrinter.PPD: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(659) > Language Monitor:PSMON.DLL: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(661) > lp_driverlocation:\\PRINTERSHARE\print$\WIN40\0: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(664) > Data Type:RAW: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(665) > Help File:ADOBEPS4.HLP: > [2002/10/14 18:09:17, 3] smbd/lanman.c:fill_printq_info_52(679) > fill_printq_info on <Printer> gave 0 entries > [2002/10/14 18:09:17, 3] smbd/process.c:process_smb(878) > Transaction 14 of length 113-- ============================================================John M Wright ( jwright@wayport.net )