[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gs6.01 sparcprinter solaris7
From: |
Juergen Marenda |
Subject: |
Re: gs6.01 sparcprinter solaris7 |
Date: |
Wed, 25 Oct 2000 21:06:24 +0200 |
Thus wrote i:
> i try to print from a freshly installed SparcStation 2 to my
> Sparprinter.
> Solaris 7 FCS is installed.
>
> When i try to use gs-6.01 (compiled with gcc-2.95.2 or 2.8.1 - no
> differencs) to print to it, i get errormessage about
> incorrect parameters in the ioctl setting pageresolution.
>
> When i use gs-5.10 - compiled with gcc-2.8.1 under Solaris 2.6 -
> (running on the SS2 with Solaris 7) it prints like expected.
>
> Does anyone know what is going on here ???
>
> Juergen Marenda.
First, i thought it may have something to do with 64 versus 32 Bit Data
types corrupting lpvi* structures in size and layout, but that was not
the case.
I then found out that doing the following change to gsdevsppr.c
----- FROM:
lpvipage.resolution = (pdev->x_pixels_per_inch == 300 ? DPI300 :
DPI400);
----- TO:
lpvipage.resolution = (pdev->x_pixels_per_inch == 300 ? 300 : 400);
-----
helps - it now prints fine!
(even this is contrary to the manpage of lpvi ...)
> ---SNIP ---
> # gs -sDEVICE=sparc -sOutputFile=/dev/lpvi0 golfer.ps
> Aladdin Ghostscript 6.01 (2000-03-17)
> Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights
> reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> sparc_print_page: LPVIIOC_SETPAGE failed
> Error: /unknownerror in --.outputpage--
> Operand stack:
> 1 true
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-
> - 2 %stopped_push --nostringval-- --nostringval--
> --nostringval-- fa
> lse 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop
> runexec
> 2 --nostringval-- --nostringval-- --nostringval-- 2
> %stopped_push --
> nostringval-- 0 3 %oparray_pop --nostringval--
> --nostringval-- --nos
> tringval-- --nostringval--
> Dictionary stack:
> --dict:931/983(ro)(G)-- --dict:0/20(G)-- --dict:66/200(L)--
> Current allocation mode is local
> Last OS error: 22
> Current file position is 25499
> Aladdin Ghostscript 6.01: Unrecoverable error, exit code 1
> #
> --- SNIP ---
> # truss gs -sDEVICE=sparc -sOutputFile=/dev/lpvi0 golfer.ps
> [...]
> open("/dev/lpvi0", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
> ioctl(4, 0x40187A05, 0xEFFFEA00) = 0
> ioctl(4, 0x80187A04, 0xEFFFEA00) Err#22 EINVAL
> write(2, " s p a r c _ p r i n t _".., 41) = 41
> write(1, " E r r o r : / u n k n".., 20) = 20
> write(1, " i n - - . o u t p u".., 19) = 19
> write(1, "\n", 1) = 1
> [...]
> #
--
address@hidden