Package gimp-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gimp-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gimp-2.0' found
Package gimpui-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gimpui-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gimpui-2.0' found
ar: creating liblib.a
sanei_wire.c: In function ‘sanei_w_array’:
sanei_wire.c:213:23: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  213 |               DBG (0, "sanei_w_array: DECODE: maximum amount of allocated memory "
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  214 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
  215 |                    MAX_MEM, len * element_size, MAX_MEM + len * element_size);
      |                             ~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 size_t {aka long unsigned int}
sanei_wire.c:214:59: note: format string is defined here
  214 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
      |                                                          ~^
      |                                                           |
      |                                                           unsigned int
      |                                                          %lu
sanei_wire.c:213:23: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  213 |               DBG (0, "sanei_w_array: DECODE: maximum amount of allocated memory "
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sanei_wire.c:214:70: note: format string is defined here
  214 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
      |                                                                     ~^
      |                                                                      |
      |                                                                      unsigned int
      |                                                                     %lu
sanei_wire.c: In function ‘sanei_w_ptr’:
sanei_wire.c:291:23: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  291 |               DBG (0, "sanei_w_ptr: DECODE: maximum amount of allocated memory "
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  292 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
  293 |                    MAX_MEM, value_size, (w->allocated_memory + value_size));
      |                             ~~~~~~~~~~
      |                             |
      |                             size_t {aka long unsigned int}
sanei_wire.c:292:59: note: format string is defined here
  292 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
      |                                                          ~^
      |                                                           |
      |                                                           unsigned int
      |                                                          %lu
sanei_wire.c:291:23: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  291 |               DBG (0, "sanei_w_ptr: DECODE: maximum amount of allocated memory "
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  292 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
  293 |                    MAX_MEM, value_size, (w->allocated_memory + value_size));
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                              |
      |                                                              size_t {aka long unsigned int}
sanei_wire.c:292:70: note: format string is defined here
  292 |                    "exceeded (limit: %u, new allocation: %u, total: %u bytes)\n",
      |                                                                     ~^
      |                                                                      |
      |                                                                      unsigned int
      |                                                                     %lu
ar: creating libsanei.a
scanadf.c: In function ‘scan_it_raw’:
scanadf.c:987:13: warning: case value ‘10’ not in enumerated type ‘SANE_Frame’ [-Wswitch]
  987 |             case SANE_FRAME_TEXT:
      |             ^~~~
scanadf.c:988:13: warning: case value ‘11’ not in enumerated type ‘SANE_Frame’ [-Wswitch]
  988 |             case SANE_FRAME_JPEG:
      |             ^~~~
scanadf.c:989:13: warning: case value ‘12’ not in enumerated type ‘SANE_Frame’ [-Wswitch]
  989 |             case SANE_FRAME_G31D:
      |             ^~~~
scanadf.c:990:13: warning: case value ‘13’ not in enumerated type ‘SANE_Frame’ [-Wswitch]
  990 |             case SANE_FRAME_G32D:
      |             ^~~~
scanadf.c:991:13: warning: case value ‘14’ not in enumerated type ‘SANE_Frame’ [-Wswitch]
  991 |             case SANE_FRAME_G42D:
      |             ^~~~
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 ./gtkglue.h:6,
                 from xscanimage.c:35:
/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 /usr/include/gtk-2.0/gtk/gtk.h:32:
/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
      |        ^~~~~~~~~
xscanimage.c:448:1: warning: ‘get_resolution’ defined but not used [-Wunused-function]
  448 | get_resolution (SANE_Handle dev)
      | ^~~~~~~~~~~~~~
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 progress.c:23:
/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 /usr/include/gtk-2.0/gtk/gtk.h:32:
/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/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 gtkglue.h:6,
                 from preview.c:78:
/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 /usr/include/gtk-2.0/gtk/gtk.h:32:
/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
      |        ^~~~~~~~~
preview.c: In function ‘input_available’:
preview.c:603:25: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
  603 |               snprintf (buf, sizeof (buf), "Error during read: %s.",
      |                         ^~~
      |                         |
      |                         u_char * {aka unsigned char *}
In file included from /usr/include/features.h:524,
                 from /usr/include/assert.h:35,
                 from preview.c:68:
/usr/include/bits/stdio2.h:65:1: note: expected ‘char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
   65 | __NTH (snprintf (char *__restrict __s, size_t __n,
      | ^~~~~
preview.c:605:26: warning: pointer targets in passing argument 1 of ‘gsg_error’ differ in signedness [-Wpointer-sign]
  605 |               gsg_error (buf);
      |                          ^~~
      |                          |
      |                          u_char * {aka unsigned char *}
gtkglue.h:99:32: note: expected ‘gchar *’ {aka ‘char *’} but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
   99 | extern void gsg_error (gchar * error_message);
      |                        ~~~~~~~~^~~~~~~~~~~~~
preview.c:823:13: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign]
  823 |   snprintf (buf, sizeof (buf), "Preview cannot handle depth %d.",
      |             ^~~
      |             |
      |             u_char * {aka unsigned char *}
/usr/include/bits/stdio2.h:65:1: note: expected ‘char *’ but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
   65 | __NTH (snprintf (char *__restrict __s, size_t __n,
      | ^~~~~
preview.c:825:14: warning: pointer targets in passing argument 1 of ‘gsg_error’ differ in signedness [-Wpointer-sign]
  825 |   gsg_error (buf);
      |              ^~~
      |              |
      |              u_char * {aka unsigned char *}
gtkglue.h:99:32: note: expected ‘gchar *’ {aka ‘char *’} but argument is of type ‘u_char *’ {aka ‘unsigned char *’}
   99 | extern void gsg_error (gchar * error_message);
      |                        ~~~~~~~~^~~~~~~~~~~~~
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 gtkglue.h:6,
                 from gtkglue.c:38:
/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 /usr/include/gtk-2.0/gtk/gtk.h:32:
/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
      |        ^~~~~~~~~
gtkglue.c: In function ‘button_update’:
gtkglue.c:406:33: warning: variable ‘opt’ set but not used [-Wunused-but-set-variable]
  406 |   const SANE_Option_Descriptor *opt;
      |                                 ^~~
gtkglue.c: In function ‘gsg_get_filename’:
gtkglue.c:338:7: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  338 |       getcwd (cwd, len + 1);
      |       ^~~~~~~~~~~~~~~~~~~~~
gtkglue.c: In function ‘panel_build’:
gtkglue.c:1010:9: warning: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
 1010 |         strncpy (title, opt->title, sizeof (title));
      |         ^
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 gtkglue.h:6,
                 from xcam.c:48:
/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 /usr/include/gtk-2.0/gtk/gtk.h:32:
/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
      |        ^~~~~~~~~
xcam.c:328:9: warning: ‘CHAR_WIDTH’ redefined
  328 | #define CHAR_WIDTH   6
      |         ^~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.0/include/limits.h:210,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.0/include/syslimits.h:9,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.0/include/limits.h:34,
                 from xcam.c:32:
/usr/include/limits.h:147:11: note: this is the location of the previous definition
  147 | #  define CHAR_WIDTH 8
      |           ^~~~~~~~~~
xcam.c: In function ‘input_available’:
xcam.c:1112:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
 1112 |                "xcam: input_available fps count=%d, frame_time * 30 = %2.3f,  fps=%2.3f, fps_av=%2.3f\n",
      |                                                 ~^
      |                                                  |
      |                                                  int
      |                                                 %ld
 1113 |                win.f_count, frame_time, win.fps, win.fps_av);
      |                ~~~~~~~~~~~                        
      |                   |
      |                   long int
xcam.c: In function ‘main’:
xcam.c:1602:51: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
 1602 |   DBG (DBG_debug, "xcam.main: buf_backend_size 0x%x\n", win.buf_backend_size);
      |                                                  ~^     ~~~~~~~~~~~~~~~~~~~~
      |                                                   |        |
      |                                                   |        size_t {aka long unsigned int}
      |                                                   unsigned int
      |                                                  %lx
xcam.c: In function ‘load_settings’:
xcam.c:502:3: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  502 |   read (fd, buf, sizeof (buf));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcam.c: In function ‘save_settings’:
xcam.c:319:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  319 |   write (fd, dialog->dev_name, strlen (dialog->dev_name));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xcam.c:320:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  320 |   write (fd, "\n", 1);
      |   ^~~~~~~~~~~~~~~~~~~
xcam.c: In function ‘load_defaults’:
xcam.c:545:6: warning: ‘fd’ may be used uninitialized [-Wmaybe-uninitialized]
  545 |   if (fd < 0)
      |      ^
xcam.c:539:7: note: ‘fd’ was declared here
  539 |   int fd;
      |       ^~
mkdir /var/pisi/sane-frontends-1.0.14-6/install
mkdir /var/pisi/sane-frontends-1.0.14-6/install/usr
mkdir /var/pisi/sane-frontends-1.0.14-6/install/usr/bin
mkdir /var/pisi/sane-frontends-1.0.14-6/install/usr/share
mkdir /var/pisi/sane-frontends-1.0.14-6/install/usr/share/sane
mkdir /var/pisi/sane-frontends-1.0.14-6/install/usr/share/man
mkdir /var/pisi/sane-frontends-1.0.14-6/install/usr/share/man/man1