Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espgs doesn't compile with the sparc driver enabled #24

Closed
michaelrsweet opened this issue Apr 15, 2003 · 2 comments
Closed

espgs doesn't compile with the sparc driver enabled #24

michaelrsweet opened this issue Apr 15, 2003 · 2 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 7.05.6
CUPS.org User: alan.cesma.usb

espgs doesn't compile with the sparc driver enabled.
I have a patch to fix this, but to be able to build it you need the lpviio.h file.
This file is copyrighted by Sun, but it can be found in the software that comes with the printer.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fix applied to CVS, less the change to the location of the header file (which is the correct system location)

@michaelrsweet
Copy link
Collaborator Author

"espgs.diff":

--- src/gdevsppr.c.orig 2003-04-10 15:14:40.268724000 -0400
+++ src/gdevsppr.c 2003-04-10 15:16:30.117539000 -0400
@@ -20,7 +20,8 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioccom.h>
-#include <unbdev/lpviio.h>
+#include <unistd.h>
+#include "lpviio.h"

/*
Thanks to Martin Schulte (schulte@thp.Uni-Koeln.DE) for contributing
@@ -124,10 +125,10 @@
lpvipage.bitmap_width=gdev_mem_bytes_per_scan_line((gx_device _)pdev);
lpvipage.page_width=lpvipage.bitmap_width_8;
lpvipage.page_length=pdev->height;

  • lpvipage.resolution = (pdev->x_pixels_per_inch == 300 ? DPI300 : DPI400);
  • lpvipage.resolution = (pdev->x_pixels_per_inch == 300 ? 300 : 400);
    if (ioctl(fileno(prn),LPVIIOC_SETPAGE,&lpvipage)!=0)
    {
  • errprintf(sparc_print_page: LPVIIOC_SETPAGE failed\n");
  • errprintf("sparc_print_page: LPVIIOC_SETPAGE failed\n");
    return -1;
    }
    out_size=lpvipage.bitmap_width*lpvipage.page_length;
    @@ -137,7 +138,7 @@
    {
    if (ioctl(fileno(prn),LPVIIOC_GETERR,&lpvierr)!=0)
    {
  •  errprintf(sparc_print_page: LPVIIOC_GETERR failed\n");
    
  •  errprintf("sparc_print_page: LPVIIOC_GETERR failed\n");
    
    return -1;
    }
    switch (lpvierr.err_type)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant