You are not logged in.

#1 2022-03-23 16:09:32

archInMarch
Member
Registered: 2022-03-23
Posts: 3

Need some hint in struggling with cups brother package from AUR [SOLVE

Hi all. I am struggling with the issue about making my printer - Brother DCP-T310 work on arch, on Thinkpad X280 laptop. I would try to provide all useful informations, if I miss anything please ask me.
Please let me some hints or just explain shortly what is the issue with the current situation. No ready solution is required, so don't be mad for me.
Note that my goal is to accomplish the complex solution for cups and sane (or any other application that allows printing as well as scanning in acceptable quality), so I can just print my libre office documents and scan the ones into .png files.

This is story what happened:

- installed arch, XFCE, some packages like firefox or libreoffice (all from official repo), customized the whole system, all with success, read tens or more than hundred articles on wiki (it took me few months)

- read wiki for https://wiki.archlinux.org/title/CUPS, https://wiki.archlinux.org/title/CUPS/Troubleshooting

- installed CUPS:

sudo pacman -S cups
first I enabled and started the cups.socket but then I disabled it
systemctl enable cups
systemctl start cups

- verified and built package from AUR:

sudo pacman -S fakeroot a2ps lib32-glibc
download snapshot from https://aur.archlinux.org/packages/brother-dcpt310 extract and enter there
makepkg
sudo pacman -U ./brother-dcpt310-1.0.1-0-x86_64.pkg.tar.zst

Here I got first problem, note that I did not had cupsd.

loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) brother-dcpt310-1.0.1-0
Total Installed Size:  6.92 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                         [#######################################] 100%
(1/1) checking package integrity                                       [#######################################] 100%
(1/1) loading package files                                            [#######################################] 100%
(1/1) checking for file conflicts                                      [#######################################] 100%
(1/1) checking available disk space                                    [#######################################] 100%
:: Processing package changes...
(1/1) installing brother-dcpt310                                       [#######################################] 100%
lpadmin -p DCPT310 -E -v usb://Brother/DCP-T310?serial=E78659G8H147827 -P /usr/share/cups/model/Brother/brother_dcpt310_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
Failed to restart org.cups.cupsd.service: Unit org.cups.cupsd.service not found.
error: command failed to execute correctly
Optional dependencies for brother-dcpt310
    sane: scanning support
    brscan4: making dcpt310 available to sane
    brscan-skey: scankey support if connected via usb
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

- I have added the printer to CUPS via web interface http://localhost:631, but when I found there is already added I have removed the one I have added (neither was working anyway)

- I have changed the LogLevel to Debug and here it is. Note that there is one error that is called like that:

/opt/brother/Printers/dcpt310/lpd/brdcpt310filter: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

The full log for the moment of printing is here:

D [23/Mar/2022:17:54:44 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [23/Mar/2022:17:54:44 +0100] [Client 7] Server address is "/run/cups/cups.sock".
D [23/Mar/2022:17:54:44 +0100] [Client 7] Accepted from localhost (Domain)
D [23/Mar/2022:17:54:44 +0100] [Client 7] Waiting for request.
D [23/Mar/2022:17:54:44 +0100] cupsdAddCert: Adding certificate for PID 0
D [23/Mar/2022:17:54:44 +0100] Report: clients=1
D [23/Mar/2022:17:54:44 +0100] Report: jobs=7
D [23/Mar/2022:17:54:44 +0100] Report: jobs-active=0
D [23/Mar/2022:17:54:44 +0100] Report: printers=1
D [23/Mar/2022:17:54:44 +0100] Report: stringpool-string-count=861
D [23/Mar/2022:17:54:44 +0100] Report: stringpool-alloc-bytes=9384
D [23/Mar/2022:17:54:44 +0100] Report: stringpool-total-bytes=16528
D [23/Mar/2022:17:54:44 +0100] [Client 7] POST / HTTP/1.1
D [23/Mar/2022:17:54:44 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [23/Mar/2022:17:54:44 +0100] [Client 7] Read: status=200, state=6
D [23/Mar/2022:17:54:44 +0100] [Client 7] No authentication data provided.
D [23/Mar/2022:17:54:44 +0100] [Client 7] 2.0 CUPS-Get-Default 37
D [23/Mar/2022:17:54:44 +0100] CUPS-Get-Default
D [23/Mar/2022:17:54:44 +0100] CUPS-Get-Default client-error-not-found: No default printer.
D [23/Mar/2022:17:54:44 +0100] [Client 7] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost.
D [23/Mar/2022:17:54:44 +0100] [Client 7] Content-Length: 113
D [23/Mar/2022:17:54:44 +0100] [Client 7] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/Mar/2022:17:54:44 +0100] [Client 7] con->http=0x563b8c0f4880
D [23/Mar/2022:17:54:44 +0100] [Client 7] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=113, response=0x563b8c01a490(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/Mar/2022:17:54:44 +0100] [Client 7] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/Mar/2022:17:54:44 +0100] [Client 7] bytes=0, http_state=0, data_remaining=113
D [23/Mar/2022:17:54:44 +0100] [Client 7] Flushing write buffer.
D [23/Mar/2022:17:54:44 +0100] [Client 7] New state is HTTP_STATE_WAITING
D [23/Mar/2022:17:54:44 +0100] [Client 7] Waiting for request.
D [23/Mar/2022:17:54:44 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [23/Mar/2022:17:54:44 +0100] [Client 7] POST / HTTP/1.1
D [23/Mar/2022:17:54:44 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [23/Mar/2022:17:54:44 +0100] [Client 7] Read: status=200, state=6
D [23/Mar/2022:17:54:44 +0100] [Client 7] No authentication data provided.
D [23/Mar/2022:17:54:44 +0100] [Client 7] 2.0 CUPS-Get-Printers 38
D [23/Mar/2022:17:54:44 +0100] CUPS-Get-Printers
D [23/Mar/2022:17:54:44 +0100] [Client 7] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost.
D [23/Mar/2022:17:54:44 +0100] [Client 7] Content-Length: 1254
D [23/Mar/2022:17:54:44 +0100] [Client 7] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/Mar/2022:17:54:44 +0100] [Client 7] con->http=0x563b8c0f4880
D [23/Mar/2022:17:54:44 +0100] [Client 7] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1254, response=0x563b8c0fa160(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/Mar/2022:17:54:44 +0100] [Client 7] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/Mar/2022:17:54:44 +0100] [Client 7] bytes=0, http_state=0, data_remaining=1254
D [23/Mar/2022:17:54:44 +0100] [Client 7] Flushing write buffer.
D [23/Mar/2022:17:54:44 +0100] [Client 7] New state is HTTP_STATE_WAITING
D [23/Mar/2022:17:54:44 +0100] [Client 7] Waiting for request.
D [23/Mar/2022:17:54:44 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [23/Mar/2022:17:54:44 +0100] [Client 7] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [23/Mar/2022:17:54:44 +0100] [Client 7] Closing connection.
D [23/Mar/2022:17:54:44 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [23/Mar/2022:17:54:46 +0100] [Client 8] Server address is "/run/cups/cups.sock".
D [23/Mar/2022:17:54:46 +0100] [Client 8] Accepted from localhost (Domain)
D [23/Mar/2022:17:54:46 +0100] [Client 8] Waiting for request.
D [23/Mar/2022:17:54:46 +0100] [Client 8] POST / HTTP/1.1
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [23/Mar/2022:17:54:46 +0100] [Client 8] Read: status=200, state=6
D [23/Mar/2022:17:54:46 +0100] [Client 8] No authentication data provided.
D [23/Mar/2022:17:54:46 +0100] [Client 8] 2.0 Get-Printer-Attributes 39
D [23/Mar/2022:17:54:46 +0100] Get-Printer-Attributes ipp://localhost:631/printers/DCPT310
D [23/Mar/2022:17:54:46 +0100] [Client 8] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost:631/printers/DCPT310) from localhost.
D [23/Mar/2022:17:54:46 +0100] [Client 8] Content-Length: 1254
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] con->http=0x563b8c0f4880
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1254, response=0x563b8c0fc200(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/Mar/2022:17:54:46 +0100] [Client 8] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] bytes=0, http_state=0, data_remaining=1254
D [23/Mar/2022:17:54:46 +0100] [Client 8] Flushing write buffer.
D [23/Mar/2022:17:54:46 +0100] [Client 8] New state is HTTP_STATE_WAITING
D [23/Mar/2022:17:54:46 +0100] [Client 8] Waiting for request.
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [23/Mar/2022:17:54:46 +0100] [Client 8] POST /printers/DCPT310 HTTP/1.1
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [23/Mar/2022:17:54:46 +0100] [Client 8] Read: status=200, state=6
D [23/Mar/2022:17:54:46 +0100] [Client 8] No authentication data provided.
D [23/Mar/2022:17:54:46 +0100] [Client 8] 2.0 Get-Printer-Attributes 40
D [23/Mar/2022:17:54:46 +0100] Get-Printer-Attributes ipp://localhost/printers/DCPT310
D [23/Mar/2022:17:54:46 +0100] [Client 8] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/DCPT310) from localhost.
D [23/Mar/2022:17:54:46 +0100] [Client 8] Content-Length: 17825
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] con->http=0x563b8c0f4880
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=17825, response=0x563b8c0e24a0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/Mar/2022:17:54:46 +0100] [Client 8] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] bytes=0, http_state=0, data_remaining=17825
D [23/Mar/2022:17:54:46 +0100] [Client 8] Flushing write buffer.
D [23/Mar/2022:17:54:46 +0100] [Client 8] New state is HTTP_STATE_WAITING
D [23/Mar/2022:17:54:46 +0100] [Client 8] Waiting for request.
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [23/Mar/2022:17:54:46 +0100] [Client 8] POST /printers/DCPT310 HTTP/1.1
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [23/Mar/2022:17:54:46 +0100] [Client 8] Read: status=200, state=6
D [23/Mar/2022:17:54:46 +0100] [Client 8] No authentication data provided.
D [23/Mar/2022:17:54:46 +0100] [Client 8] 2.0 Create-Job 41
D [23/Mar/2022:17:54:46 +0100] Create-Job ipp://localhost/printers/DCPT310
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [23/Mar/2022:17:54:46 +0100] [Job 9] Applying default options...
D [23/Mar/2022:17:54:46 +0100] add_job: requesting-user-name="x"
D [23/Mar/2022:17:54:46 +0100] Adding default job-sheets values "none,none"...
I [23/Mar/2022:17:54:46 +0100] [Job 9] Adding start banner page "none".
D [23/Mar/2022:17:54:46 +0100] Discarding unused job-created event...
I [23/Mar/2022:17:54:46 +0100] [Job 9] Queued on "DCPT310" by "x".
D [23/Mar/2022:17:54:46 +0100] [Client 8] Returning IPP successful-ok for Create-Job (ipp://localhost/printers/DCPT310) from localhost.
D [23/Mar/2022:17:54:46 +0100] [Client 8] Content-Length: 199
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] con->http=0x563b8c0f4880
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=199, response=0x563b8c0d8e50(IPP_STATE_IDLE), pipe_pid=0, file=-1
D [23/Mar/2022:17:54:46 +0100] [Client 8] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] bytes=0, http_state=0, data_remaining=199
D [23/Mar/2022:17:54:46 +0100] [Client 8] Flushing write buffer.
D [23/Mar/2022:17:54:46 +0100] [Client 8] New state is HTTP_STATE_WAITING
D [23/Mar/2022:17:54:46 +0100] [Client 8] Waiting for request.
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [23/Mar/2022:17:54:46 +0100] [Client 8] POST /printers/DCPT310 HTTP/1.1
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [23/Mar/2022:17:54:46 +0100] [Client 8] Read: status=200, state=6
D [23/Mar/2022:17:54:46 +0100] [Client 8] No authentication data provided.
D [23/Mar/2022:17:54:46 +0100] [Client 8] 2.0 Send-Document 42
D [23/Mar/2022:17:54:46 +0100] [Client 8] Read: status=100, state=6
D [23/Mar/2022:17:54:46 +0100] [Client 8] Read: status=100, state=6
D [23/Mar/2022:17:54:46 +0100] Send-Document ipp://localhost:631/printers/DCPT310
D [23/Mar/2022:17:54:46 +0100] cupsdIsAuthorized: requesting-user-name="x"
D [23/Mar/2022:17:54:46 +0100] [Job 9] Auto-typing file...
D [23/Mar/2022:17:54:46 +0100] [Job 9] Request file type is application/pdf.
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
I [23/Mar/2022:17:54:46 +0100] [Job 9] File of type application/pdf queued by "x".
I [23/Mar/2022:17:54:46 +0100] [Job 9] Adding end banner page "none".
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [23/Mar/2022:17:54:46 +0100] [Job 9] time-at-processing=1648054486
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [23/Mar/2022:17:54:46 +0100] Discarding unused printer-state-changed event...
D [23/Mar/2022:17:54:46 +0100] [Job 9] 2 filters for job:
D [23/Mar/2022:17:54:46 +0100] [Job 9] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [23/Mar/2022:17:54:46 +0100] [Job 9] brother_lpdwrapper_dcpt310 (application/vnd.cups-pdf to printer/DCPT310, cost 0)
D [23/Mar/2022:17:54:46 +0100] [Job 9] job-sheets=none,none
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[0]="DCPT310"
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[1]="9"
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[2]="x"
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[3]="Untitled 1"
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[4]="1"
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[5]="PageSize=A4 job-uuid=urn:uuid:106f36ee-6495-3cc3-6d0f-e42c7642f304 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1648054486 time-at-processing=1648054486 document-name-supplied=KKY0Gs"
D [23/Mar/2022:17:54:46 +0100] [Job 9] argv[6]="/var/spool/cups/d00009-001"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[3]="CUPS_REQUESTROOT=/var/spool/cups"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[5]="CUPS_SERVERROOT=/etc/cups"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[6]="CUPS_STATEDIR=/run/cups"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[7]="HOME=/var/spool/cups/tmp"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[9]="SERVER_ADMIN=root@arch"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[10]="SOFTWARE=CUPS/2.4.1"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[12]="USER=root"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[13]="CUPS_MAX_MESSAGE=2047"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[14]="CUPS_SERVER=/run/cups/cups.sock"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[16]="IPP_PORT=631"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[17]="CHARSET=utf-8"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[18]="LANG=en_US.UTF-8"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[19]="PPD=/etc/cups/ppd/DCPT310.ppd"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[20]="CONTENT_TYPE=application/pdf"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[21]="DEVICE_URI=usb://Brother/DCP-T310?serial=E78659G8H147827"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[22]="PRINTER_INFO=DCPT310"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[23]="PRINTER_LOCATION="
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[24]="PRINTER=DCPT310"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[25]="PRINTER_STATE_REASONS=none"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[26]="CUPS_FILETYPE=document"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[27]="FINAL_CONTENT_TYPE=application/vnd.cups-pdf"
D [23/Mar/2022:17:54:46 +0100] [Job 9] envp[28]="AUTH_I****"
I [23/Mar/2022:17:54:46 +0100] [Job 9] Started filter /usr/lib/cups/filter/pdftopdf (PID 12591)
I [23/Mar/2022:17:54:46 +0100] [Job 9] Started filter /usr/lib/cups/filter/brother_lpdwrapper_dcpt310 (PID 12592)
I [23/Mar/2022:17:54:46 +0100] [Job 9] Started backend /usr/lib/cups/backend/usb (PID 12593)
D [23/Mar/2022:17:54:46 +0100] Discarding unused job-state-changed event...
D [23/Mar/2022:17:54:46 +0100] [Client 8] Returning IPP successful-ok for Send-Document (ipp://localhost:631/printers/DCPT310) from localhost.
D [23/Mar/2022:17:54:46 +0100] [Client 8] Content-Length: 169
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] con->http=0x563b8c0f4880
D [23/Mar/2022:17:54:46 +0100] [Client 8] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=169, response=0x563b8c1079b0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/Mar/2022:17:54:46 +0100] [Client 8] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/Mar/2022:17:54:46 +0100] [Client 8] bytes=0, http_state=0, data_remaining=169
D [23/Mar/2022:17:54:46 +0100] [Client 8] Flushing write buffer.
D [23/Mar/2022:17:54:46 +0100] [Client 8] New state is HTTP_STATE_WAITING
D [23/Mar/2022:17:54:46 +0100] [Client 8] Waiting for request.
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients and dirty files"
D [23/Mar/2022:17:54:46 +0100] [Job 9] Loading USB quirks from \"/usr/share/cups/usb\".
D [23/Mar/2022:17:54:46 +0100] [Job 9] Loaded 118 quirks.
D [23/Mar/2022:17:54:46 +0100] [Job 9] Printing on printer with URI: usb://Brother/DCP-T310?serial=E78659G8H147827
D [23/Mar/2022:17:54:46 +0100] [Job 9] libusb_get_device_list=5
D [23/Mar/2022:17:54:46 +0100] [Job 9] STATE: +connecting-to-device
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Printing jobs and dirty files"
D [23/Mar/2022:17:54:46 +0100] Discarding unused printer-state-changed event...
D [23/Mar/2022:17:54:46 +0100] [Job 9] Switching USB device configuration: 0 -> 1
D [23/Mar/2022:17:54:46 +0100] [Job 9] pdftopdf: Last filter determined by the PPD: brother_lpdwrapper_dcpt310; FINAL_CONTENT_TYPE: application/vnd.cups-pdf => pdftopdf will not log pages in page_log.
D [23/Mar/2022:17:54:46 +0100] [Job 9] PDF interactive form and annotation flattening done via QPDF
D [23/Mar/2022:17:54:46 +0100] [Job 9] pdftopdf: \"print-scaling\" IPP attribute: auto
D [23/Mar/2022:17:54:46 +0100] [Job 9] pdftopdf: Print scaling mode: Do not scale, center, crop if needed
D [23/Mar/2022:17:54:46 +0100] [Job 9] After Cropping: 595.000000 842.000000 595.000000 842.000000
D [23/Mar/2022:17:54:46 +0100] [Job 9] PID 12591 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [23/Mar/2022:17:54:46 +0100] [Job 9] STATE: -connecting-to-device
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Dirty files"
D [23/Mar/2022:17:54:46 +0100] Discarding unused printer-state-changed event...
D [23/Mar/2022:17:54:46 +0100] [Job 9] Device protocol: 2
D [23/Mar/2022:17:54:46 +0100] [Job 9] Sending data to printer.
D [23/Mar/2022:17:54:46 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:46 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [23/Mar/2022:17:54:46 +0100] [Job 9] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [23/Mar/2022:17:54:46 +0100] Discarding unused job-progress event...
D [23/Mar/2022:17:54:46 +0100] Discarding unused printer-state-changed event...
D [23/Mar/2022:17:54:47 +0100] [Job 9] /opt/brother/Printers/dcpt310/lpd/brdcpt310filter: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
D [23/Mar/2022:17:54:49 +0100] [Job 9] Sent 0 bytes...
D [23/Mar/2022:17:54:49 +0100] [Job 9] PID 12592 (/usr/lib/cups/filter/brother_lpdwrapper_dcpt310) exited with no errors.
D [23/Mar/2022:17:54:49 +0100] [Job 9] Waiting for read thread to exit...
D [23/Mar/2022:17:54:49 +0100] [Job 9] PID 12593 (/usr/lib/cups/backend/usb) exited with no errors.
D [23/Mar/2022:17:54:49 +0100] [Job 9] time-at-completed=1648054489
D [23/Mar/2022:17:54:49 +0100] Discarding unused job-completed event...
I [23/Mar/2022:17:54:49 +0100] [Job 9] Job completed.
D [23/Mar/2022:17:54:49 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:49 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [23/Mar/2022:17:54:49 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [23/Mar/2022:17:54:49 +0100] Discarding unused printer-state-changed event...
D [23/Mar/2022:17:54:49 +0100] cupsdMarkDirty(---J-)
D [23/Mar/2022:17:54:49 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [23/Mar/2022:17:54:50 +0100] [Job 9] Unloading...

- I read about the problem. What I understand is that there is some libraries discrepancies. But I cannot understand how to determine what exactly lack and what is the problem?

There is the file from the error under /usr/lib/libstdc++.so.6 as well /lib/libstdc++.so.6 But is it too new or too old or just bits incompatible version? Too new regarding the package from AUR or what? May I just install some package with proper version? Why this wasn't catch during makepkg? I did this on the same machine.

The way I would maybe go is https://wiki.archlinux.org/title/CUPS/P … M_packages, but then I guess I need do much more work rather than use the package I used from AUR. But can someone let me know if I would not encounter same problem?

Also I got information that my printer drivers are deprecated.. but would stop work in some future cups versions (so not yet?).

W [23/Mar/2022:16:35:09 +0100] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103

But I don't get this. They want to change cups technology on the backend, so when you update cups (for example from pacman) then one day all old working drivers would fail at once?

The interesting is that 3 years ago I setup manjaro with same printer with no internet connection (moving same AUR package (in previous version) on the pendrive).

Some other informations that may be helpful:

x@arch ~]$ /usr/lib/libstdc++.so.6
Segmentation fault (core dumped)
[x@arch ~]$ sudo /usr/lib/libstdc++.so.6
[sudo] password for x:
Segmentation fault
[x@arch ~]$

[x@arch ~]$ /usr/lib/libstdc++.so.6 | grep GLIBCXX
[x@arch ~]$

[x@arch ~]$ pacman -Qo /usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6 is owned by gcc-libs 11.2.0-4
[x@arch ~]$ pacman -Qo /lib/libstdc++.so.6
/usr/lib/libstdc++.so.6 is owned by gcc-libs 11.2.0-4
[x@arch ~]$

[x@arch ~]$ pacman -Q | grep gcc
gcc-libs 11.2.0-4
[x@arch ~]$

[x@arch ~]$ lsusb
Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp. Card Reader
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 04f9:040f Brother Industries, Ltd DCP-T310
Bus 001 Device 008: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[x@arch ~]$

[x@arch ~]$ systemctl list-unit-files | grep cups
cups.path                                  enabled         disabled
cups-browsed.service                       disabled        disabled
cups-lpd@.service                          static          -
cups.service                               enabled         disabled
cups-lpd.socket                            disabled        disabled
cups.socket                                enabled         disabled
[x@arch ~]$

-----------------------------

edit:
@moderators @administrators
[SOLVED] cannot be appended fully. I didn't want to erase part of original title. I am not sure what to do in such a situation.

Last edited by archInMarch (2022-04-19 15:48:22)

Offline

#2 2022-03-24 12:10:39

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,205

Re: Need some hint in struggling with cups brother package from AUR [SOLVE

    /opt/brother/Printers/dcpt310/lpd/brdcpt310filter: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

that binary usually comes from gcc-libs / lib32-ggc-libs and should be present.

sudo pacman -S fakeroot a2ps lib32-glibc
https://wiki.archlinux.org/title/Arch_User_Repository#Prerequisites wrote:

Note: Packages in the AUR assume that the base-devel group is installed, i.e. they do not list the group's members as build dependencies explicitly.

base-devel group contains a lot more then just those 3 packages.

install base-devel, then rebuild and install the new version it created.

Report if that solves the issue.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-04-19 15:44:47

archInMarch
Member
Registered: 2022-03-23
Posts: 3

Re: Need some hint in struggling with cups brother package from AUR [SOLVE

Hi the final solution was to install package lib32-gcc-libs explicitly, so:

sudo pacman -S lib32-gcc-libs

then the file /usr/lib32/libstdc++.so.6.0.29 and links (libstdc++.so.6 and libstdc++.so in same directory) to this file have been created.

Offline

Board footer

Powered by FluxBB