debian l3afpad fails to print/PDF with possible fix below  [Solved]

Message
Author
ghunter
Posts: 202
Joined: Mon May 29, 2023 12:40 am

debian l3afpad fails to print/PDF with possible fix below

#1 Post by ghunter »

EDIT

QSI post 3...prev command was not true QSI

our version of l3afpad comes from Debian

Code: Select all

apt info l3afpad  SNIP
APT-Sources: http://deb.debian.org/debian bookworm/main amd64 Packages
its a gtk3 text editor and abiword also gtk3 prints paper and also prints to a PDF .
When I try to print paper with l3afpad....you choose the printer....and click on print -> which for me immediately kills my GUI app
Ditto if I try to print to PDF.
No errors seen in cups logs.....I suspect because it never gets there?

###########
Possible fix
I recompiled on MX 23 from https://github.com/stevenhoneyman/l3afpad

below are the differences....with no explanation of why my compile prints and the debian variant does not

debian

Code: Select all

readelf -d /usr/bin/l3afpad 

Dynamic section at offset 0x182c8 contains 33 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgtk-3.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libpangocairo-1.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libpango-1.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libcairo.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libgobject-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libglib-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x8000
 0x000000000000000d (FINI)               0x13d44
 0x0000000000000019 (INIT_ARRAY)         0x18ab0
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x18ab8
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x3a0
 0x0000000000000005 (STRTAB)             0x24c8
 0x0000000000000006 (SYMTAB)             0x3e0
 0x000000000000000a (STRSZ)              8200 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x19518
 0x0000000000000002 (PLTRELSZ)           8136 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x5d58
 0x0000000000000007 (RELA)               0x47e0
 0x0000000000000008 (RELASZ)             5496 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags: NOW PIE
 0x000000006ffffffe (VERNEED)            0x4790
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0x44d0
 0x000000006ffffff9 (RELACOUNT)          221
 0x0000000000000000 (NULL)               0x0
fresh compile sitting in /tmp to be re-injected after I post this

Code: Select all

readelf -d /tmp/l3afpad 

Dynamic section at offset 0x17d68 contains 32 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgtk-3.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libpangocairo-1.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libpango-1.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libcairo.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libgobject-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libglib-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x8000
 0x000000000000000d (FINI)               0x1361c
 0x0000000000000019 (INIT_ARRAY)         0x18550
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x18558
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x3a0
 0x0000000000000005 (STRTAB)             0x24b0
 0x0000000000000006 (SYMTAB)             0x3e0
 0x000000000000000a (STRSZ)              8155 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x18fe8
 0x0000000000000002 (PLTRELSZ)           8112 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x5cf0
 0x0000000000000007 (RELA)               0x4778
 0x0000000000000008 (RELASZ)             5496 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffb (FLAGS_1)            Flags: PIE
 0x000000006ffffffe (VERNEED)            0x4748
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0x448c
 0x000000006ffffff9 (RELACOUNT)          221
 0x0000000000000000 (NULL)               0x0
Let me know if you need more info.

I accept that now that I have installed abiword.....I should not be so fussy ;)
but others might find the same defect?

Thanks for reading

slight variantion from source on how I compiled

./autogen.sh
autoupdate # missing from source howto
./configure --prefix=/usr
make -j6 # or whatever you feel ok for your cores
sudo make install # not stripped
Last edited by ghunter on Wed Sep 03, 2025 9:00 am, edited 1 time in total.

User avatar
Eadwine Rose
Administrator
Posts: 15305
Joined: Wed Jul 12, 2006 2:10 am

Re: debian l3afpad fails to print/PDF with possible fix below

#2 Post by Eadwine Rose »

Next time, share the ACTUAL QSI, not a similar command, thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-40amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

ghunter
Posts: 202
Joined: Mon May 29, 2023 12:40 am

Re: debian l3afpad fails to print/PDF with possible fix below

#3 Post by ghunter »

my apols I deleted something a long time ago and thought I had lost it....found in in menu

Code: Select all

System:
  Kernel: 6.15.11-1-liquorix-amd64 [6.15-12~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable amd_pstate=disable BOOT_IMAGE=/boot/vmlinuz-6.15.11-1-liquorix-amd64
    root=/dev/sda1 ro quiet
  Desktop: IceWM v: 3.3.1 vt: 7 dm: LightDM v: 1.32.0 Distro: MX-23.6_fluxbox_x64 Libretto
    October 15 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 GAMING PLUS MAX (MS-7B86) v: 3.0
    serial: <superuser required> BIOS: American Megatrends LLC. v: H.N0 date: 03/21/2025
CPU:
  Info: model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 gen: 4
    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80)
    stepping: 0 microcode: 0xA500014
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1761 high: 2994 min/max: 1400/4465 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 2994 2: 1400 3: 2394 4: 1700 5: 1879 6: 2365
    7: 1400 8: 1400 9: 1400 10: 1400 11: 1400 12: 1400 bogomips: 93420
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: ghostwrite status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: always-on; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsa mitigation: Clear CPU buffers
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series] driver: amdgpu v: kernel
    arch: GCN-5 code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    ports: active: HDMI-A-1 empty: DVI-D-1,HDMI-A-2 bus-ID: 30:00.0 chip-ID: 1002:1638
    class-ID: 0300 temp: 24.0 C
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: amdgpu unloaded: modesetting
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22") s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: LG (GoldStar) FULL HD built: 2016 res: 1920x1080
    hz: 60 dpi: 102 gamma: 1.2 size: 480x270mm (18.9x10.63") diag: 551mm (21.7") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 25.0.7-2~mx23ahs renderer: AMD Radeon Graphics (radeonsi renoir ACO
    DRM 3.63 6.15.11-1-liquorix-amd64) direct-render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Micro-Star MSI driver: N/A
    alternate: snd_hda_intel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 30:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD Family 17h/19h/1ah HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 30:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.15.11-1-liquorix-amd64 status: kernel-api with: apulse type: pulse-emulator
    tools: alsamixer,amixer
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    RTL8111/8168/8411 driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 894.26 GiB used: 25.9 GiB (2.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37480G size: 447.13 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: B1D1 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT480BX500SSD1 size: 447.13 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: R022 scheme: MBR
Partition:
  ID-1: / raw-size: 223.52 GiB size: 218.95 GiB (97.96%) used: 6.49 GiB (3.0%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda2
    maj-min: 8:2
Sensors:
  System Temperatures: cpu: 27.0 C mobo: N/A gpu: amdgpu temp: 24.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 1697 libs: 938 tools: apt,apt-get,nala pm: rpm pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirror.datamossa.io/mxlinux/mx/repo/ bookworm main non-free
    2: deb http://mirror.datamossa.io/mxlinux/mx/repo/ bookworm ahs
Info:
  Processes: 302 Uptime: 5m wakeups: 1 Memory: 60.73 GiB used: 1.39 GiB (2.3%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
AVLinux
Posts: 3201
Joined: Wed Jul 15, 2020 1:15 am

Re: debian l3afpad fails to print/PDF with possible fix below

#4 Post by AVLinux »

Hi, obviously we all have our preferences but why leafpad over Mousepad which is also lightweight and GTK3 and native to XFCE4?

ghunter
Posts: 202
Joined: Mon May 29, 2023 12:40 am

Re: debian l3afpad fails to print/PDF with possible fix below

#5 Post by ghunter »

I do not prefer XFCE but IceWM and ice preferred to Fluxbox
I have deleted as much xfce packages as possible so I get no hits for (and ditto exo)

Code: Select all

dpkg -l | grep libxfce*
BTW I have no problem with my request being denied......I have already commented that I now have abiword so it can do its job....as I am not going to uninstall that deb pkg
why leafpad over Mousepad
I am not sure if you meant leafpad.....gtk2 or l3afpad gtk3.....it makes no diff to my above comments.......except Debian no longer has leafpad in the repo

cheers

ghunter
Posts: 202
Joined: Mon May 29, 2023 12:40 am

Re: debian l3afpad fails to print/PDF with possible fix below  [Solved]

#6 Post by ghunter »

However, now that AVLinux has questioned my motives.....I will take it that the MX team see no merit in having a MX pkg in AHS or the like.

So I will attempt to send an email to the debian maintainer to see if he has time to verify my printing fail claim or not.

I won't post his email address here but its visible by the nala show <pkg> or apt info <pkg> command

User avatar
AVLinux
Posts: 3201
Joined: Wed Jul 15, 2020 1:15 am

Re: debian l3afpad fails to print/PDF with possible fix below

#7 Post by AVLinux »

ghunter wrote: Wed Sep 03, 2025 9:36 pm However, now that AVLinux has questioned my motives.....I will take it that the MX team see no merit in having a MX pkg in AHS or the like.

So I will attempt to send an email to the debian maintainer to see if he has time to verify my printing fail claim or not.

I won't post his email address here but its visible by the nala show <pkg> or apt info <pkg> command
I wasn't questioning your motives at all, you should use whatever you prefer. When you mentioned GTK3 it made me wonder if Mousepad was an option, that is all. I have no influence over what the MX Packaging team does so your original question about the difference between the package and your compiled version is still a good question.

Post Reply

Return to “Package Requests - MX-23”