HP scan fails, xsane not installed, tools fails

I am using XFCE on Manjaro and have an HP Color LaserJet Pro MFP M180nw. It has been working and I used to be able to scan with the HP Device Manager, and with Skanpage and Skanlite. No longer.

Skanpage and Skanline will no longer launch.

I can launch HO Device Manager and print. If I ask it to scan, nothing happens. If I click on the tools (to check ink levels), nothing happens.

I uninstalled HP Device Manager and re-installed. I deleted the printer and re-installed it. No change.

The docs say to run in terminal hp-check -t but terminal says not found.

What else can I try? To me it looks like xsane and the hp tools are no longer installed but I cannot tell re-install them (since I already tried re-installing).

My knowledge is quite limited but am willing to follow instructions.

Thank you

Well, my 22 year old HP scanner is still working ok.

Xsane is a GUI front end for Sane. I’d check is whether Sane itself is installed first. Run command:-pamac list | grep sane

If it shows in list then it’s installed.

1 Like

The more detail you can give, the more likely it is that someone can help.

For instance, what happens when you run skanpage from the command line? If there is some output, copy and paste the command and the output. Remember:

  • no screen shots
  • format the output correctly (e.g. highlight the pasted text and click </> in the message toolbar)

the hp tools are no longer installed but I cannot tell re-install them (since I already tried re-installing)

By "the hp tools" do you mean the hplip package? if so, what is the output when you run

sudo pacman -Syu hplip

from the command line (again, copy, paste, and format the command and output).

I think xsane is now in the AUR so only install it if you really need it - my HP scanner works fine without it.

1 Like

The list says:

[steve@steve ~]$ pamac list | grep sane
colord-sane                          1.4.8-1                     extra     32.9 kB
ksanecore                            25.04.3-1                   extra     311.9 kB
libksane                             25.04.3-1                   extra     720.3 kB
sane                                 1.4.0-1                     extra     19.6 MB
sane-airscan                         0.99.35-1                   extra     461.0 kB
[steve@steve ~]$ 

Terminal replies to skanpage command with:

skanpage: error while loading shared libraries: libKF6BreezeIcons.so.6: cannot open shared object file: No such file or directory

running sudo pacman -Syu hplip generates:

[steve@steve ~]$ sudo pacman -Syu hplip
[sudo] password for steve: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 DEB_Arch_Extra                                            10.1 KiB  21.2 KiB/s 00:00 [#################################################] 100%
warning: hplip-1:3.25.2-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) hplip-1:3.25.2-1

Total Installed Size:  38.74 MiB
Net Upgrade Size:       0.00 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) reinstalling hplip                                                              [#################################################] 100%
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Restarting marked services...
(3/5) Reloading device manager configuration...
(4/5) Arming ConditionNeedsUpdate...
(5/5) Updating the desktop file MIME type cache...

I did try installing the xsane with pamac but it failed. The message said (sorry, but it is long)

Preparing...
Cloning xsane build files...
Generating xsane information...
Checking xsane dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building xsane...
==> Making package: xsane 0.999-7 (Wed 16 Jul 2025 11:57:42 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found xsane_0.999.orig.tar.gz
  -> Found xsane-0.995-xdg-open.patch
  -> Found 0165-xsane-0.999-lcms2.patch
  -> Found 0001-lcms2_configure.patch
  -> Found xsane-preview-selection.patch
  -> Found configure-add-stdlib-to-conftest.patch
==> Validating source files with sha512sums...
    xsane_0.999.orig.tar.gz ... Passed
    xsane-0.995-xdg-open.patch ... Passed
    0165-xsane-0.999-lcms2.patch ... Passed
    0001-lcms2_configure.patch ... Passed
    xsane-preview-selection.patch ... Passed
    configure-add-stdlib-to-conftest.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting xsane_0.999.orig.tar.gz with bsdtar
==> Starting prepare()...
patching file src/xsane.h
patching file configure.in
patching file include/config.h.in
patching file src/xsane-preview.c
Hunk #1 succeeded at 6347 (offset 1 line).
Hunk #2 succeeded at 6356 (offset 1 line).
patching file src/xsane-save.c
Hunk #1 succeeded at 830 (offset -2 lines).
Hunk #2 succeeded at 841 (offset -2 lines).
Hunk #3 succeeded at 890 (offset -2 lines).
Hunk #4 succeeded at 2904 (offset -10 lines).
Hunk #5 succeeded at 2920 (offset -10 lines).
Hunk #6 succeeded at 2943 (offset -10 lines).
Hunk #7 succeeded at 2956 (offset -10 lines).
Hunk #8 succeeded at 2972 (offset -10 lines).
Hunk #9 succeeded at 4359 (offset -19 lines).
Hunk #10 succeeded at 4373 (offset -19 lines).
patching file src/xsane-viewer.c
patching file src/xsane.h
patching file configure
patching file src/xsane-preview.c
patching file configure
==> Removing existing $pkgdir/ directory...
==> Starting build()...

**************************************************************************

checking whether GTK+-2.0 is requested... yes
checking whether GIMP plugin is requested... yes
checking whether GIMP-2.0 is requested... yes
checking whether JPEG support is requested... yes
checking whether PNG support is requested... yes
checking whether TIFF support is requested... yes
checking whether LCMS (color management) support is requested... yes

**************************************************************************

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for ANSI C header files... (cached) yes
checking for windows.h... (cached) no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking for size_t... yes
checking for pid_t... yes
checking for ssize_t... yes
checking for u_char... yes
checking for u_int... yes
checking for u_long... yes
checking for sqrt in -lm... yes
checking for deflateInit_ in -lz... yes
checking for jpeg_start_decompress in -ljpeg... yes
checking for TIFFOpen in -ltiff... yes
checking for library containing cmsOpenProfileFromFile... -llcms2
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for atexit... yes
checking for mkdir... yes
checking for sigprocmask... yes
checking for strdup... yes
checking for strndup... yes
checking for strftime... yes
checking for strstr... yes
checking for strsep... yes
checking for strtod... yes
checking for snprintf... yes
checking for usleep... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for lstat... yes
checking for ranlib... ranlib
checking for off_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... (cached) yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN
checking for sane-config... /usr/bin/sane-config
checking for SANE - version >= 1.0.0... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GIMP - version >= 1.3.23... 
*** Could not run GIMP test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GIMP is incorrectly installed.
*** When gimp-2.0 is not installed but gimp-1.x is installed then you can
*** ignore this error message.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.24.33)
checking for gimp-config... no
checking for gimptool... /usr/bin/gimptool
checking for GIMP - version >= 1.0.0... no

*** Could not run GIMP test program, checking why...
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_info_struct in -lpng... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating intl/Makefile
config.status: WARNING:  'intl/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating po/Makefile
config.status: creating lib/Makefile
config.status: WARNING:  'lib/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: WARNING:  'src/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating include/Makefile
config.status: creating doc/Makefile
config.status: WARNING:  'doc/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating xsane.spec
config.status: creating include/config.h
****************************************************************
*                                                              *
* XSANE configure status:                                      *
* -----------------------                                      *
* - NLS activated (external)                                   *
* - GIMP plugin  deactivated                                   *
* - JPEG support activated                                     *
* - TIFF support activated                                     *
* - PNG  support activated                                     *
* - LCMS (color management) support activated (lcms2)          *
*                                                              *
****************************************************************
*                                                              *
* To compile XSANE:                                            *
* -----------------                                            *
*   make                                                       *
*   make install                                               *
*                                                              *
* ------------------------------------------------------------ *
* ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... *
* ------------------------------------------------------------ *
****************************************************************

 NEWS:

  Due to changes in the configuration file routines
  you have to enter some data in preferences->setup.

  In general there is nothing special you have to care
  about to get xsane to work.
  Read xsane.CHANGES if you are interested in details of
  what has changed.

  If you experience any problems after you upgraded xsane 
  it may help to remove the setup and preferences files
  of xsane:

  rm -rf ~/.sane/xsane


for subdir in lib  src po doc; do		\
  target=`echo all-recursive | sed s/-recursive//`; \
  echo making $target in $subdir;	\
  (cd $subdir && make $target)	\
   || case "-j2 --jobserver-auth=fifo:/tmp/GMfifo26142" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$fail"
making all in lib
make[1]: Entering directory '/var/tmp/pamac-build-steve/xsane/src/xsane-0.999/lib'
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread alloca.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread getopt.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread getopt1.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread strndup.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread strdup.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread strsep.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread snprintf.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread usleep.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread md5.c
md5.c: In function ‘md5_init_ctx’:
md5.c:63:1: warning: old-style function definition [-Wold-style-definition]
   63 | md5_init_ctx (ctx)
      | ^~~~~~~~~~~~
md5.c: In function ‘md5_read_ctx’:
md5.c:81:1: warning: old-style function definition [-Wold-style-definition]
   81 | md5_read_ctx (ctx, resbuf)
      | ^~~~~~~~~~~~
md5.c: In function ‘md5_finish_ctx’:
md5.c:99:1: warning: old-style function definition [-Wold-style-definition]
   99 | md5_finish_ctx (ctx, resbuf)
      | ^~~~~~~~~~~~~~
md5.c: In function ‘md5_stream’:
md5.c:130:1: warning: old-style function definition [-Wold-style-definition]
  130 | md5_stream (stream, resblock)
      | ^~~~~~~~~~
md5.c: In function ‘md5_buffer’:
md5.c:187:1: warning: old-style function definition [-Wold-style-definition]
  187 | md5_buffer (buffer, len, resblock)
      | ^~~~~~~~~~
md5.c: In function ‘md5_process_bytes’:
md5.c:206:1: warning: old-style function definition [-Wold-style-definition]
  206 | md5_process_bytes (buffer, len, ctx)
      | ^~~~~~~~~~~~~~~~~
md5.c: In function ‘md5_process_block’:
md5.c:264:1: warning: old-style function definition [-Wold-style-definition]
  264 | md5_process_block (buffer, len, ctx)
      | ^~~~~~~~~~~~~~~~~
ar r liblib.a alloca.o getopt.o getopt1.o strndup.o strdup.o strsep.o snprintf.o usleep.o md5.o
ar: creating liblib.a
ranlib liblib.a
make[1]: Leaving directory '/var/tmp/pamac-build-steve/xsane/src/xsane-0.999/lib'
making all in src
make[1]: Entering directory '/var/tmp/pamac-build-steve/xsane/src/xsane-0.999/src'
gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include  -I/usr/local/include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-back-gtk.c
gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include  -I/usr/local/include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-front-gtk.c
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from xsane.h:70,
                 from xsane-back-gtk.c:25:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      | ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from xsane.h:69:
/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here
  725 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from xsane.h:70,
                 from xsane-front-gtk.c:25:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      | ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from xsane.h:69:
/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here
  725 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30:
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30:
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
xsane-back-gtk.c: In function ‘xsane_back_gtk_button_update’:
xsane-back-gtk.c:1836:32: warning: variable ‘opt’ set but not used [-Wunused-but-set-variable]
 1836 |  const SANE_Option_Descriptor *opt;
      |                                ^~~
xsane-back-gtk.c: In function ‘xsane_back_gtk_range_display_value_right_callback’:
xsane-back-gtk.c:1971:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1971 |  int digits = (int) data;
      |               ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:30:
xsane-back-gtk.c: In function ‘xsane_back_gtk_range_new’:
xsane-back-gtk.c:2019:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 2019 |     g_signal_connect(elem->data, "value_changed", (GtkSignalFunc) xsane_back_gtk_range_display_value_right_callback, (void *) digits);
      |                                                                                                                      ^
/usr/include/glib-2.0/gobject/gsignal.h:549:73: note: in definition of macro ‘g_signal_connect’
  549 |     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
      |                                                                         ^~~~
xsane-front-gtk.c: In function ‘xsane_set_all_resolutions’:
xsane-front-gtk.c:351:6: warning: variable ‘printer_resolution’ set but not used [-Wunused-but-set-variable]
  351 |  int printer_resolution;
      |      ^~~~~~~~~~~~~~~~~~
xsane-front-gtk.c: In function ‘xsane_range_display_value_right_callback’:
xsane-front-gtk.c:1110:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1110 |  int digits = (int) data;
      |               ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:30:
xsane-front-gtk.c: In function ‘xsane_range_new’:
xsane-front-gtk.c:1147:104: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1147 |     g_signal_connect(*data, "value_changed", (GtkSignalFunc) xsane_range_display_value_right_callback, (void *) digits);
      |                                                                                                        ^
/usr/include/glib-2.0/gobject/gsignal.h:549:73: note: in definition of macro ‘g_signal_connect’
  549 |     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
      |                                                                         ^~~~
xsane-front-gtk.c: In function ‘xsane_range_new_with_pixmap’:
xsane-front-gtk.c:1239:104: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1239 |     g_signal_connect(*data, "value_changed", (GtkSignalFunc) xsane_range_display_value_right_callback, (void *) digits);
      |                                                                                                        ^
/usr/include/glib-2.0/gobject/gsignal.h:549:73: note: in definition of macro ‘g_signal_connect’
  549 |     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
      |                                                                         ^~~~
xsane-front-gtk.c: In function ‘xsane_filename_counter_step_callback’:
xsane-front-gtk.c:1382:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1382 |   preferences.filename_counter_step = (int) data;
      |                                       ^
xsane-front-gtk.c: In function ‘xsane_outputfilename_new’:
xsane-front-gtk.c:1527:134: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1527 |     g_signal_connect(GTK_OBJECT(xsane_filename_counter_step_item), "activate", (GtkSignalFunc) xsane_filename_counter_step_callback, (void *) j);
      |                                                                                                                                      ^
/usr/include/glib-2.0/gobject/gsignal.h:549:73: note: in definition of macro ‘g_signal_connect’
  549 |     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
      |                                                                         ^~~~
xsane-front-gtk.c: In function ‘xsane_eula_delete_event’:
xsane-front-gtk.c:1894:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1894 |   eula_accept_flag = (int) data;
      |                      ^
xsane-front-gtk.c: In function ‘xsane_eula_button_callback’:
xsane-front-gtk.c:1906:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1906 |   eula_accept_flag = (int) data;
      |                      ^
xsane-front-gtk.c: In function ‘xsane_front_gtk_getname_button_callback’:
xsane-front-gtk.c:2413:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2413 |   xsane_front_gtk_getname_button = (int) data;
      |                                    ^
gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include  -I/usr/local/include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-gamma.c
gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include  -I/usr/local/include -D_GNU_SOURCE 	  -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread xsane-preview.c
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from xsane.h:70,
                 from xsane-gamma.c:25:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      | ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from xsane.h:69:
/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here
  725 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from xsane.h:70,
                 from xsane-preview.c:75:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
  236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
      | ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from xsane.h:69:
/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here
  725 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30:
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30:
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
xsane-gamma.c: In function ‘xsane_slider_hold_event’:
xsane-gamma.c:581:70: error: passing argument 2 of ‘gtk_timeout_add’ from incompatible pointer type [-Wincompatible-pointer-types]
  581 |     xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0);
      |                                                                      ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                      |
      |                                                                      gint (*)(void) {aka int (*)(void)}
In file included from /usr/include/gtk-2.0/gtk/gtk.h:121:
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected ‘GtkFunction’ {aka ‘int (*)(void *)’} but argument is of type ‘gint (*)(void)’ {aka ‘int (*)(void)’}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:570:13: note: ‘xsane_slider_hold_event’ declared here
  570 | static gint xsane_slider_hold_event()
      |             ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: ‘GtkFunction’ declared here
   51 | typedef gboolean (*GtkFunction)     (gpointer      data);
      |                    ^~~~~~~~~~~
xsane-gamma.c: In function ‘xsane_slider_callback’:
xsane-gamma.c:679:74: error: passing argument 2 of ‘gtk_timeout_add’ from incompatible pointer type [-Wincompatible-pointer-types]
  679 |         xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0);
      |                                                                          ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                          |
      |                                                                          gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected ‘GtkFunction’ {aka ‘int (*)(void *)’} but argument is of type ‘gint (*)(void)’ {aka ‘int (*)(void)’}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:570:13: note: ‘xsane_slider_hold_event’ declared here
  570 | static gint xsane_slider_hold_event()
      |             ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: ‘GtkFunction’ declared here
   51 | typedef gboolean (*GtkFunction)     (gpointer      data);
      |                    ^~~~~~~~~~~
xsane-gamma.c:693:61: error: passing argument 2 of ‘gtk_timeout_add’ from incompatible pointer type [-Wincompatible-pointer-types]
  693 |       xsane.slider_timer = gtk_timeout_add(XSANE_HOLD_TIME, xsane_slider_hold_event, 0);
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected ‘GtkFunction’ {aka ‘int (*)(void *)’} but argument is of type ‘gint (*)(void)’ {aka ‘int (*)(void)’}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:570:13: note: ‘xsane_slider_hold_event’ declared here
  570 | static gint xsane_slider_hold_event()
      |             ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: ‘GtkFunction’ declared here
   51 | typedef gboolean (*GtkFunction)     (gpointer      data);
      |                    ^~~~~~~~~~~
xsane-gamma.c:593:18: warning: variable ‘motion_event’ set but not used [-Wunused-but-set-variable]
  593 |  GdkEventMotion *motion_event;
      |                  ^~~~~~~~~~~~
xsane-gamma.c: In function ‘xsane_enhancement_by_gamma’:
xsane-gamma.c:1966:82: error: passing argument 2 of ‘gtk_timeout_add’ from incompatible pointer type [-Wincompatible-pointer-types]
 1966 |   xsane.batch_scan_gamma_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME * 4, xsane_batch_scan_gamma_event, 0);
      |                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                  |
      |                                                                                  gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected ‘GtkFunction’ {aka ‘int (*)(void *)’} but argument is of type ‘gint (*)(void)’ {aka ‘int (*)(void)’}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:556:13: note: ‘xsane_batch_scan_gamma_event’ declared here
  556 | static gint xsane_batch_scan_gamma_event()
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktypeutils.h:51:20: note: ‘GtkFunction’ declared here
   51 | typedef gboolean (*GtkFunction)     (gpointer      data);
      |                    ^~~~~~~~~~~
xsane-preview.c: In function ‘preview_create_batch_icon_from_file’:
xsane-preview.c:2102:9: warning: variable ‘bytes_read’ set but not used [-Wunused-but-set-variable]
 2102 |  size_t bytes_read;
      |         ^~~~~~~~~~
xsane-preview.c:2096:6: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
 2096 |  int c;
      |      ^
xsane-preview.c: In function ‘preview_restore_image_from_file’:
xsane-preview.c:2455:9: warning: variable ‘nread’ set but not used [-Wunused-but-set-variable]
 2455 |  size_t nread;
      |         ^~~~~
xsane-preview.c: In function ‘preview_create_preset_area_menu’:
xsane-preview.c:4115:68: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 4115 |     gtk_object_set_data(GTK_OBJECT(preset_area_item), "Selection", (void *) i);
      |                                                                    ^
xsane-preview.c: In function ‘preview_new’:
xsane-preview.c:4471:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 4471 |     gtk_object_set_data(GTK_OBJECT(rotation_item), "Selection", (void *) rot);
      |                                                                 ^
make[1]: *** [Makefile:63: xsane-gamma.o] Error 1
make[1]: *** Waiting for unfinished jobs....
xsane-preview.c: In function ‘preview_preset_area_rename_callback’:
xsane-preview.c:5714:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5714 |   selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection");
      |               ^
xsane-preview.c:5721:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5721 |   old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection");
      |                   ^
xsane-preview.c: In function ‘preview_preset_area_add_callback’:
xsane-preview.c:5764:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5764 |   selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection");
      |               ^
xsane-preview.c:5769:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5769 |   old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection");
      |                   ^
xsane-preview.c: In function ‘preview_preset_area_delete_callback’:
xsane-preview.c:5815:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5815 |   selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection");
      |               ^
xsane-preview.c:5835:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5835 |     old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection");
      |                     ^
xsane-preview.c: In function ‘preview_preset_area_move_up_callback’:
xsane-preview.c:5864:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5864 |   selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection");
      |               ^
xsane-preview.c:5880:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5880 |     old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection");
      |                     ^
xsane-preview.c: In function ‘preview_preset_area_move_down_callback’:
xsane-preview.c:5909:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5909 |   selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection");
      |               ^
xsane-preview.c:5926:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5926 |     old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection");
      |                     ^
xsane-preview.c: In function ‘preview_preset_area_context_menu_callback’:
xsane-preview.c:5957:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 5957 |   selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection");
      |               ^
xsane-preview.c: In function ‘preview_preset_area_callback’:
xsane-preview.c:6034:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 6034 |   selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection");
      |               ^
xsane-preview.c: In function ‘preview_rotation_callback’:
xsane-preview.c:6058:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 6058 |   rot = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection");
      |         ^
xsane-preview.c: In function ‘preview_create_batch_icon_from_file’:
xsane-preview.c:2126:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2126 |   fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xsane-preview.c: In function ‘preview_restore_image_from_file’:
xsane-preview.c:2482:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2482 |   fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/var/tmp/pamac-build-steve/xsane/src/xsane-0.999/src'
make: *** [Makefile:63: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Looks like /usr/lib/libKF6BreezeIcons.so.6 is owned by breeze-icons so you could try this and again report any problems by copying and pasting:

sudo pacman -Syu breeze-icons

And if it installs something, try skanpage from the command line again, and report any new problem.

Edited to include note about xsane:

As I said before, only install xsane if you really need it. If that is the case, you will see some discussion of the problem you have in the AUR page. I don’t use it myself, so can’t offer much help with understanding the suggested fix:

https://aur.archlinux.org/packages/xsane

2 Likes

It does no harm anymore, but this repo should be removed.
(tend to .pacnew files)

This could be a problem - it is not a Manjaro repo.
Remove/disable it - at least for the time being.
Incompatible stuff could have been pulled in from that repo.
How to check? I don’t know.

2 Likes

skanpage now works, but here is the terminal output:

[steve@steve ~]$ sudo pacman -Syu breeze-icons
[sudo] password for steve: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 DEB_Arch_Extra                                            10.1 KiB  25.2 KiB/s 00:00 [#################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) breeze-icons-6.15.0-1

Total Installed Size:  58.94 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 breeze-icons                                                         [#################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating icon theme caches...
[steve@steve ~]$ skanpage
Fontconfig warning: using without calling FcInit()
kf.kirigami.platform: Failed to find a Kirigami platform plugin for style "Fusion"

HP Device Manager still does not.

I tried this but no removal

[steve@steve ~]$ sudo pacman -Rns DEB_Arch_Extra
[sudo] password for steve: 
error: target not found: DEB_Arch_Extra

Thank you for the xsane link but it is over my head.

That is not how you remove a repository.
You do that by editing /etc/pacman.conf
or by using the pamac-manager GUI, perhaps - I don’t know how you added this.

I’m not saying that this IS the problem - but it could be.
It’s a non standard repo with who knows what in it …

1 Like

Where do I find /etc/pacman.conf? I did a search with FSearch but came up empty.

That is, literally, the PATH to it.
That is where that file is.
In the /etc directory, the file name is pacman.conf

Perhaps you can use the GUI (pamac-manager) to remove it - that is probably what you used to add it.

To view the file content:
less /etc/pacman.conf

To edit it:
sudo nano /etc/pacman.conf
(for example - be very careful … use any editor you like)

1 Like

Can you copy & paste the command you are running and the output?

Thank you for the xsane link but it is over my head.

What do you need xsane for?

1 Like

My user home directory does not show a subdirectory /etc
Neither does root

I tried the nano command and saw this section:

###REPO for MEGA###
[DEB_Arch_Extra]
SigLevel = Required TrustedOnly
Server = https://mega.nz/linux/repo/Arch_Extra/$arch
###END REPO for MEGA###

Is this what I should delete?

Of course not.

Your user directory is under /home

ls -hl /home

But under / (root) - it is definitely there:

ls -hl /

ls -hl /etc

I didn’t want to open a false tangent here - but this could indeed be part of the problem. :man_shrugging:

1 Like

I thought xsane was needed for scanning. HP used to ask me to let it find it online and download it, but it no longer asks. The tools do not work and I cannot scan. The program runs (I use the icon which generates the command hp-toolbox)

I don’t think xsane is essential - you did say skanpage now worked, so I’d ignore xsane until you know you need it.

Can you run hp-toolbox from the command line and copy & paste any output.

When you say it does not work, does it fail to start, or does it display a window but something else is wrong?

If skanpage works, do you need the hp-toolbox for something else?

2 Likes

not using Thunar - strange

Nemo does show it.

No idea where I got it.

as for editting, not sure what to take out and I appear to have to run in root to do it.

Paste the contents of the file here, between two lines of three backticks (```).

1 Like