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,
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
Search Criteria
Package Details: xsane 0.999-7
Package Actions
Git Clone URL: | https://aur.archlinux.org/xsane.git (read-only, click to copy) |
---|---|
Package Base: | xsane |
Description: | A GTK-based X11 frontend for SANE and plugin for Gimp. |
Upstream URL: | https://gitlab.com/sane-project/frontend/xsane |
Licenses: | GPL2 |
Submitter: | gromit |
Maintainer: | Dreick |
Last Packager: | Dreick |
Votes: | 29 |
Popularity: | 1.67 |
First Submitted: | 2024-08-13 11:22 (UTC) |
Last Updated: | 2024-08-14 00:54 (UTC) |
Dependencies (12)
- gtk2 (gtk2-patched-filechooser-icon-viewAUR)
- lcms2 (lcms2-ff-gitAUR, lcms2-gitAUR, lcms2-ffAUR)
- libjpeg (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR, libjpeg-turbo)
- sane (sane-gitAUR)
- zlib (zlib-gitAUR, zlib-ng-compat-gitAUR, zlib-ng-compat)
- gimp (gimp-develAUR, gimp-devel-noconflictAUR, gimp-gitAUR, gimp-2AUR) (make)
- gtk2 (gtk2-patched-filechooser-icon-viewAUR) (make)
- lcms2 (lcms2-ff-gitAUR, lcms2-gitAUR, lcms2-ffAUR) (make)
- libjpeg (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR, libjpeg-turbo) (make)
- sane (sane-gitAUR) (make)
- zlib (zlib-gitAUR, zlib-ng-compat-gitAUR, zlib-ng-compat) (make)
- xsane-gimpAUR (xsane-gimp-gitAUR) (optional) – for gimp plugin support
Required by (6)
- lexmark-network-scan (optional)
- scangearmp-mg8100series (optional)
- xsane-gimp
- xsane-gimp-git
- xsane2tess
- yagf (optional)
Sources (6)
simona commented on 2025-06-10 08:15 (UTC)
andreasgoebel72 commented on 2025-06-05 06:12 (UTC)
Neither xsane nor xsane-git built for me. I checked out from git and got it to build with autoreconf --install --force ./configure make (sudo make install)
It needs libxml2-legacy to run, though.
Maybe you can somehow integrate that to the pkgbuild.
eliran commented on 2025-05-18 20:16 (UTC)
didn't compile (same issues as @maderlos) had to resort to xsane-git
Mackin_cheese commented on 2025-05-07 01:28 (UTC)
@maderios regardless if the old gtk2 version is no longer being maintained, this should still be able to be built, so the package maintainer here has to either make some patches to make it build or delete the package.
As it stands, this cannot build in a clean CHROOT, so the package maintainer should be making changes to the PKGBUILD or adding patches
maderios commented on 2025-05-05 09:34 (UTC)
@moormaster Old gtk2 xsane is no more maintained by devs. They're working on future gtk3 version
https://gitlab.com/sane-project/frontend/xsane/-/commits/master
moormaster commented on 2025-05-04 17:31 (UTC)
Doesn't build for me
xsane-scan.c:905:3: error: too many arguments to function 'xsane_cancel_save'; expected 0, have 1
905 | xsane_cancel_save(&xsane.cancel_save);
| ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
In file included from xsane-scan.c:31:
xsane-save.h:53:13: note: declared here
53 | extern void xsane_cancel_save();
| ^~~~~~~~~~~~~~~~~
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: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)}
xsane-save.c:155:6: error: conflicting types for 'xsane_cancel_save'; have 'void(int *)'
155 | void xsane_cancel_save(int *cancel_save)
| ^~~~~~~~~~~~~~~~~
In file included from xsane-save.c:28:
xsane-save.h:53:13: note: previous declaration of 'xsane_cancel_save' with type 'void(void)'
53 | extern void xsane_cancel_save();
| ^~~~~~~~~~~~~~~~~
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()
| ^~~~~~~~~~~~~~~~~~~~~~~
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()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
maderios commented on 2025-01-14 10:05 (UTC)
@sowieso It builds for me. Anyway, gtk2 is going to be dropped upstream. Look here
https://gitlab.com/sane-project/frontend/xsane/-/issues/66
sowieso commented on 2025-01-13 12:07 (UTC) (edited on 2025-01-13 12:07 (UTC) by sowieso)
For me it complained about gcc, patch, and make not being installed, maybe add it as build-dependency. In the end it failed with
ERROR: GTK-1.2.0 or newer is needed for compiling xsane
if you installed gtk as rpm make sure you also included
gtk-devel
though.
maderios commented on 2024-09-01 14:47 (UTC)
xsane-gimp doesn't build/work with Gimp 3.0, it's upstream issue, xsane-gimp project is outdated, no more maintained. I think that's why it was removed from official repo.
loqy commented on 2024-08-28 03:30 (UTC)
Is the patch forgetting to set HAVE_LIBLCMS2
?
0165-xsane-0.999-lcms2.patch
:
+/* Define if you have liblcms2. */
+#undef HAVE_LIBLCMS2
When I change undef to define it builds successfully.
Pinned Comments
Dreick commented on 2024-08-14 00:49 (UTC)
Added a patch to make it build again