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

32-bit libraries for brother-genml1-bin #118

Open
jason-but opened this issue Apr 17, 2023 · 3 comments
Open

32-bit libraries for brother-genml1-bin #118

jason-but opened this issue Apr 17, 2023 · 3 comments

Comments

@jason-but
Copy link

Hello some time (over a year) ago after an upgrade of some sort, printing just stopped working. As I don't print often I could not narrow down which update broke the system.

Every print ended with frustration, asking a Windows user to print, and hoping to get to the bottom of it. Eventually, I was able to sort this out

The error log was reporting

W [Job 69] Grayscale/monochrome printing requested for this job but Poppler is not able to convert to grayscale/monochrome PostScript.
W [Job 69] Use \"pdftops-renderer\" option (see cups-filters README file) to use Ghostscript or MuPDF for the PDF -> PostScript conversion.

But this was not the true error. In the end, it turned out that the filter/backend was failing because it couldn't load the 32-bit libraries.

This issue is referred to here (https://wiki.gentoo.org/wiki/Brother_networked_printer#Generic_LPR_printer_driver_on_amd64_no-multilib), but I do have a multi-lib profile selected: default/linux/amd64/17.1/desktop/plasma

In essence, I did not have to install the 32-bit glibc, but I did have to modify the lpdfilter and cupswrapper file as specified in the Wiki. However I used instead the line:

$ENV{LD_LIBRARY_PATH} = "/lib";

In the files:

  • /opt/brother/Printers/BrGenML1/lpd/filter_BrGenML1
  • /opt/brother/Printers/BrGenML1/cupswrapper/brother_lpdwrapper_BrGenML1

I would suggest it would be great if the ebuild sorted this out automatically

My printer is the Brother MFC-7065dn, however it appears both these files belong to net-print/brother-genml1-bin so a single fix should address all printers

On a separate note, this printer does not appear to support IPP Everywhere, does anyone have any expectation as to what the future will hold?

@stefan-langenmaier
Copy link
Owner

Hi Jason,

thanks for the feedback. If I understand the section in the wiki correctly you need to have at least "some parts" of a 32-bit glibc installed. In the specific example this has been extracted from a Fedora package.

While this seems functioning I assume people install their default 32-bit libc via Gentoo packages.

Please correct me if I have misunderstanding.

@jason-but
Copy link
Author

I think it depends on which profile you have. If you have a no-multilib profile selected, then you get no 32-bit packages. Looking at your ebuild, I think that installation will also abort in these cases.

If you have a multilib profile, then glib gets installed in both 32/64 versions and just the path needs to be updated

@jason-but
Copy link
Author

Hello Stefan

Would be interested to know if a planned patch is coming

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

No branches or pull requests

2 participants