[Bug 280388] print/epson-inkjet-printer-escpr2: when DEFAULT_VERSIONS+= linux=rl9, printing is not possible

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 26 Jul 2024 05:54:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280388

--- Comment #1 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
If the two executable binaries installed in
/compat/linux/opt/epson-inkjet-printer-escpr2/cups/lib/filter try to be
executed directly, the following error will occur

ELF interpreter /lib64/ld-lsb-x86-64.so.3 not found, error 2
Abort

The way to solve this is to create a symlink that I have already mentioned, but
this affects all Linux binary ports.
The question is by what port this symlink should be created on.

If an individual port attempts to resolve this issue, it can also be done in
the following ways

Install patchelf(sysutils/patchelf).
Use the following command to rewrite the ELF header.

patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 \

/compat/linux/opt/epson-inkjet-printer-escpr2/cups/lib/filter/epson-escpr-wrapper2
\
 /compat/linux/opt/epson-inkjet-printer-escpr2/cups/lib/filter/epson-escpr2

This makes the binary executable again, but it is interesting that the result
of readelf -l has been changed not only to rewrite INTERP...

-- 
You are receiving this mail because:
You are the assignee for the bug.