From the output you posted, the problem is this:
Code: Select all
* multilib-strict check failed! Code: Select all
FEATURES="-multilib-strict" USE="mx920" emerge =cnijfilter-3.90-r2
Code: Select all
* multilib-strict check failed! Code: Select all
FEATURES="-multilib-strict" USE="mx920" emerge =cnijfilter-3.90-r2
Code: Select all
FEATURES="-multilib-strict" USE="canon_printers_mx920 cups -servicetools" emerge =cnijfilter-3.90-r2



Code: Select all
SRC_URI="http://gdlp01.c-wss.com/gds/1/0100005171/01/${PN}-source-${PV}-1.tar.gz"
Code: Select all
...
make[2]: Leaving directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/pstocanonij/filter'
make[2]: Entering directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/pstocanonij'
make[2]: Leaving directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/pstocanonij'
make[1]: Leaving directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/pstocanonij'
>>> Working in: backend
make -j10 -l8
make all-recursive
make[1]: Entering directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/backend'
Making all in src
make[2]: Entering directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/backend/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -c -o cnij_backend_common.o cnij_backend_common.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -c -o cnij_usb.o cnij_usb.c
cnij_backend_common.c: In function ‘make_lgmon_command’:
cnij_backend_common.c:161:2: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
161 | ppd_file_t *p_ppd;
| ^~~~~~~~~~
| cups_file_t
cnij_backend_common.c:165:15: warning: implicit declaration of function ‘ppdOpenFile’ [-Wimplicit-function-declaration]
165 | if( (p_ppd = ppdOpenFile(p_ppd_name)) == NULL )
| ^~~~~~~~~~~
cnij_backend_common.c:165:13: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
165 | if( (p_ppd = ppdOpenFile(p_ppd_name)) == NULL )
| ^
cnij_backend_common.c:168:11: error: request for member ‘model_number’ in something not a structure or union
168 | if( p_ppd->model_number < 356 ) add_direct = 0;
| ^~
cnij_backend_common.c:169:67: error: request for member ‘model_number’ in something not a structure or union
169 | fprintf(stderr,"DEBUG: (cnijusb)p_ppd->model_number=(%d)\n",p_ppd->model_number);
| ^~
cnij_backend_common.c:170:2: warning: implicit declaration of function ‘ppdClose’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
170 | ppdClose(p_ppd);
| ^~~~~~~~
| pclose
cnij_backend_common.c: In function ‘get_model_name’:
cnij_backend_common.c:215:2: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
215 | ppd_file_t *p_file ;
| ^~~~~~~~~~
| cups_file_t
cnij_backend_common.c:219:17: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
219 | if ( ( p_file = ppdOpenFile( getenv( "PPD" ) ) ) != NULL ) {
| ^
cnij_backend_common.c:221:23: error: request for member ‘product’ in something not a structure or union
221 | if ( strlen( p_file->product ) > 0 ) {
| ^~
cnij_backend_common.c:227:28: error: request for member ‘product’ in something not a structure or union
227 | strncpy( product, p_file->product, MODEL_NAME_STR_LEN - 1 ) ;
| ^~
make[2]: *** [Makefile:407: cnij_backend_common.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/backend/src'
make[1]: *** [Makefile:397: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-print/cnijfilter-3.90/work/cnijfilter-source-3.90-1/backend'
make: *** [Makefile:329: all] Error 2
* ERROR: net-print/cnijfilter-3.90::portage_local failed (compile phase):
That one has disappeared? Can't find it anymore in any 'eix-remote update1; eix -R cnij'.Fitzcarraldo wrote:Code: Select all
FEATURES="-multilib-strict" USE="canon_printers_mx920 cups -servicetools" emerge =cnijfilter-3.90-r2


Code: Select all
./autogen.sh --program-suffix=mx920
make
make installIs net-print/cups-bjnp installed?Massimo B. wrote:I installed the sources from the cnijfilter-source-3.90-1.tar.gz from Canon:That has installed a new binary /usr/local/bin/cifmx920. What can I do now? The cnijnet:/<mac> is not provided yet in cups, even after restart, eventhough I have additionally installed net-print/cnijfilter-3.80 from the calculate overlay.Code: Select all
./autogen.sh --program-suffix=mx920 make make install
Code: Select all
cnijnetprn --search auto
Code: Select all
/usr/sbin/lpadmin -p MX920LAN -m canonmx920.ppd -v cnijnet:/XX-XX-XX-XX-XX-XX -E

Code: Select all
# cnijnetprn --search auto
network cnijnet:/F4-81-39-C0-64-40 "Canon MX920 series" "Canon-MX920-series_F4-81-39-C0-64-40"
Code: Select all
# Printer configuration file for CUPS v2.3.1
# Written by cupsd on 2020-03-23 11:47
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 4
<Printer Canon_Pixma_MX925>
PrinterId 3
UUID urn:uuid:96c00de4-89b6-3f28-4e6e-3a18f7751545
Info
Location Büro
MakeModel Canon PIXMA MX925 - CUPS+Gutenprint v5.3.3
DeviceURI cnijnet:/F4-81-39-C0-64-40
State Stopped
StateMessage page margins overlap
StateTime 1584960423
ConfigTime 1584960416
Reason paused
Type 8425500
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>Code: Select all
E [23/Mar/2020:11:46:42 +0100] [CGI] Unable to execute ippfind utility: No such file or directory
E [23/Mar/2020:11:47:02 +0100] [Job 15] cannot specify model number.
E [23/Mar/2020:11:47:03 +0100] [Job 15] page margins overlap

I recently installed the gutenprint to replace the manufacturer's drive and did not notice any difference in print quality and speed. To make it work via the network I installed the avahi.Massimo B. wrote:The only combination I got some test page printed now is lpd://printer/queue and Gutenprint PPD. After switching to the Canon PPD, printing fails. Switching back to the Gutenprint PPD, test page printing now also fails with "page margins overlap". I need to delete the printer and re-add it. Anyway I remember Gutenprint was slower and worse quality than the manufacturer drivers.
How can I get those working?
Your printer does not support driverless printing?nubiocicarini wrote:I recently installed the gutenprint to ...

You are right. I clean gutenprint and print normal with driveless. Than i said above only avahi was necessary. Thank you.charles17 wrote:Your printer does not support driverless printing?nubiocicarini wrote:I recently installed the gutenprint to ...

Code: Select all
$ lsusb
Bus 001 Device 004: ID 04a9:1721 Canon, Inc. PIXMA MP210
$ sane-find-scanner
could not open USB device 0x04a9/0x1721 at 001:004: Access denied (insufficient permissions)
# sane-find-scanner
found USB scanner (vendor=0x04a9 [Canon], product=0x1721 [MP210 series]) at libusb:001:004

I still often get this failure after updates. Usually I solve it be re-modifying the printer from webinterface and re-selecting the same PPD file eventhough its version is still unchanged.Massimo B. wrote:Code: Select all
E [23/Mar/2020:11:47:03 +0100] [Job 15] page margins overlap

Code: Select all
$ eix -I cnijfilter
[I] net-print/cnijfilter [1]
Available versions: (3) (~)3.20-r3(3/3.20)^m
{canon_printers_ip4700 canon_printers_mp250 canon_printers_mp270 canon_printers_mp490 canon_printers_mp550 canon_printers_mp560 canon_printers_mp640 +cups debug +net servicetools +usb ABI_X86="32"}
Installed versions: 3.20-r3(3/3.20)^m(18:04:57 14/01/24)(canon_printers_mp560 cups net usb -canon_printers_ip4700 -canon_printers_mp250 -canon_printers_mp270 -canon_printers_mp490 -canon_printers_mp550 -canon_printers_mp640 -debug -servicetools ABI_X86="32")
Homepage: https://support-asia.canon-asia.com/content/EN/0100084101.html
Description: Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series)
[1] "local_overlay" /var/db/repos/local
Code: Select all
E [04/Jul/2024:14:19:36 +0200] [Client 11] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/Canon_Pixma_MX925) from localhost.Code: Select all
E [04/Jul/2024:15:06:02 +0200] Unknown directive IdleExitTimeout on line 32 of /etc/cups/cupsd.conf.
...
E [04/Jul/2024:15:06:02 +0200] cupsdLoadBanners: Unable to open banner directory "/usr/share/cups/banners": No such file or directory
...
D [04/Jul/2024:15:06:02 +0200] Queue Canon_Pixma_MX925 uses a printer driver, which is deprecated.
...
D [04/Jul/2024:15:06:02 +0200] FindDeviceById failed: org.freedesktop.ColorManager.NotFound:device id \'cups-Canon_Pixma_MX925\' does not exist
...
D [04/Jul/2024:15:06:52 +0200] CUPS-Get-Default
D [04/Jul/2024:15:06:52 +0200] CUPS-Get-Default client-error-not-found: Kein voreingestellter Drucker.
D [04/Jul/2024:15:06:52 +0200] [Client 2] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost.
...
D [04/Jul/2024:15:06:52 +0200] [Client 1] CGI data ready to be sent.
D [04/Jul/2024:15:06:52 +0200] [Client 1] con->http=0x55c8da32b8f0
D [04/Jul/2024:15:06:52 +0200] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=2147483647, response=(nil)(), pipe_pid=21967, file=12
...
D [04/Jul/2024:15:06:52 +0200] [Client 2] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost.
...
D [04/Jul/2024:15:06:52 +0200] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=21967, file=12
D [04/Jul/2024:15:06:52 +0200] [Client 1] Waiting for CGI data.
D [04/Jul/2024:15:06:52 +0200] [Client 2] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
Code: Select all
[80] 2023-11-20 CUPS no longer directly depends on its filtersCode: Select all
# genlop -u |grep cups-filters |tail -n 1
Fri Jun 14 07:29:40 2024 <<< net-print/cups-filters-2.0.0
Code: Select all
E [25/Jan/2025:09:30:14 +0100] [CGI] Unable to execute ippfind utility: No such file or directory
W [25/Jan/2025:09:30:32 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Canon-Pixma-MX920-Gray..\' already exists
W [25/Jan/2025:09:31:26 +0100] [Job 510] Der Drucker existiert nicht oder ist zurzeit nicht verfügbar.
E [25/Jan/2025:09:32:42 +0100] [CGI] Unable to execute ippfind utility: No such file or directory
E [25/Jan/2025:09:33:08 +0100] [Job 512] Druckerstatus konnte nicht ermittelt werden.Code: Select all
"Spooling job, 85% complete."
Code: Select all
D [25/Jan/2025:09:57:04 +0100] [Job 521] Spooling job, 100% complete.
D [25/Jan/2025:09:57:04 +0100] cupsdMarkDirty(---J-)
D [25/Jan/2025:09:57:04 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:04 +0100] [Job 521] Set job-printer-state-message to "Spooling job, 100% complete.", current level=INFO
D [25/Jan/2025:09:57:04 +0100] Discarding unused job-progress event...
D [25/Jan/2025:09:57:04 +0100] Discarding unused printer-state-changed event...
D [25/Jan/2025:09:57:05 +0100] [Job 521] Data file sent successfully.
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(---J-)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] [Job 521] Set job-printer-state-message to "Data file sent successfully.", current level=INFO
D [25/Jan/2025:09:57:05 +0100] [Job 521] STATE: +cups-waiting-for-job-completed
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(P----)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(---J-)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] Discarding unused job-progress event...
D [25/Jan/2025:09:57:05 +0100] Discarding unused printer-state-changed event...
D [25/Jan/2025:09:57:05 +0100] [Job 521] PID 21488 (/usr/libexec/cups/backend/lpd) exited with no errors.
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(P----)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] [Job 521] time-at-completed=1737795425
D [25/Jan/2025:09:57:05 +0100] Discarding unused job-completed event...
I [25/Jan/2025:09:57:05 +0100] [Job 521] Job completed.
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(---J-)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] Discarding unused printer-state-changed event...
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(---J-)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:05 +0100] cupsdMarkDirty(---J-)
D [25/Jan/2025:09:57:05 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:06 +0100] [Job 521] Unloading...
I [25/Jan/2025:09:57:13 +0100] Saving printers.conf...
I [25/Jan/2025:09:57:13 +0100] Saving job.cache...
D [25/Jan/2025:09:57:13 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Printing jobs and dirty files"
D [25/Jan/2025:09:57:13 +0100] Report: clients=0
D [25/Jan/2025:09:57:13 +0100] Report: jobs=11
D [25/Jan/2025:09:57:13 +0100] Report: jobs-active=0
D [25/Jan/2025:09:57:13 +0100] Report: printers=1
D [25/Jan/2025:09:57:13 +0100] Report: stringpool-string-count=1431
D [25/Jan/2025:09:57:13 +0100] Report: stringpool-alloc-bytes=10304
D [25/Jan/2025:09:57:13 +0100] Report: stringpool-total-bytes=27264

