Package Details: scangearmp2 4.60-3

Git Clone URL: https://aur.archlinux.org/scangearmp2.git (read-only, click to copy)
Package Base: scangearmp2
Description: Canon ScanGear MP v2 scanner driver.
Upstream URL: https://www.canon.co.uk
Licenses: GPL, custom:canon
Provides: scangearmp2
Submitter: iAndrewT
Maintainer: pvdl1984
Last Packager: pvdl1984
Votes: 21
Popularity: 0.004135
First Submitted: 2016-12-22 23:29 (UTC)
Last Updated: 2023-07-25 08:27 (UTC)

Pinned Comments

pvdl1984 commented on 2022-03-26 11:26 (UTC)

I also created the AUR scangearmp2-sane-git which uses the github repository below. It includes a slightly upgraded GUI for scangearmp2, but more importantly provides a sane driver.

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

dequis commented on 2022-02-11 11:03 (UTC)

New version: https://gdlp01.c-wss.com/gds/2/0100011322/01/scangearmp2-source-4.30-1.tar.gz sha256 ae337238379541d8f99f09bf24e82d291b8141e5a7758d46c0002a9becb828b8

Doesn't actually fix the segfault issue, but it's newer.

Patch to fix the issue:

--- src/scangearmp2-source-4.30-1/scangearmp2/src/canon_mfp_tools.c     2021-06-08 12:01:24.000000000 +0200
+++ patched_src/scangearmp2-source-4.30-1/scangearmp2/src/canon_mfp_tools.c     2022-02-11 11:54:38.234035119 +0100
@@ -394,7 +394,7 @@
                goto onErr;
        }
        /* search canon mfp */
-       numdev = libusb_get_device_list(NULL, &g_devlist);
+       numdev = libusb_get_device_list(g_context, &g_devlist);
        if((int)numdev == 0) {
                err = CN_USB_WRITE_ERROR;
                goto onErr;

I don't use usb so I can't guarantee everything else works there. This code assumes libusb will grab the default context, but libusb_init is called with g_context instead of NULL, so the default is never initialized.

8472 commented on 2022-02-07 08:39 (UTC) (edited on 2022-02-07 10:04 (UTC) by 8472)

Hello, after some recent update, I'm now getting:

$ scangearmp2

Segmentation fault (core dumped)

Any idea how to fix it pls?

jose1711 commented on 2022-01-26 12:58 (UTC)

Could you please drop the .png extension from .desktop file?

Icon=scanner.png
Desktop file '/usr/share/applications/scangearmp2.desktop' should not include extension in Icon key: 'scanner.png'

Thanks!

livix commented on 2019-12-08 14:41 (UTC)

Thank you @KI9N! I've updated to version 3.90.

KI9N commented on 2019-11-29 13:27 (UTC)

NEW VERSION 3.90, here is the link: http://gdlp01.c-wss.com/gds/7/0100010487/01/scangearmp2-source-3.90-1.tar.gz and here is the sha256sum: eda14ffe3110bf329a50b00a5546f353e5daa5ee5d3dffd442ddfaf9c280d682

livix commented on 2018-09-25 11:23 (UTC)

@L1ghtmar3 seems you have installed a version of libtool with anaconda: libtoolize: '/opt/anaconda/share/aclocal/libtool.m4' Maybe the two versions conflicts or you have to instruct autoconf to use the right one.

L1ghtmar3 commented on 2018-09-24 14:58 (UTC) (edited on 2018-09-24 14:58 (UTC) by L1ghtmar3)

grep '2.4.6'

[printf 0123456789abcdef0123456789abcdef >conftest.i

[printf 0123456789abcdef0123456789abcdef >conftest.i

echo $ECHO_N "0123456789$ECHO_C" >conftest.in

m4_define([LT_PACKAGE_VERSION], [2.4.6.42-b88ce])

m4_define([LT_PACKAGE_REVISION], [2.4.6.42])

[macro_version='2.4.6.42-b88ce'

macro_revision='2.4.6.42'

Here's the entire build log

livix commented on 2018-09-24 11:33 (UTC)

@L1ghtmar3 I can't reproduce your error compiling with the same gcc command. Seems something wrong is in your src/scangearmp2-source-3.70-1/scangearmp2/aclocal.m4 auto-generated by autoconf. Can you post output of cat src/scangearmp2-source-3.70-1/scangearmp2/aclocal.m4 | grep '2.4.6'?

L1ghtmar3 commented on 2018-09-24 09:17 (UTC) (edited on 2018-09-24 09:22 (UTC) by L1ghtmar3)

Fails to build for me with

/bin/sh ../libtool --tag=CC --mode=link gcc -DPACKAGE_DATA_DIR=\""/usr/share/scangearmp2"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -O2 -D_FILE_OFFSET_BITS=64 -L../../com/libs_bin64 -o scangearmp2 scangearmp2-main.o scangearmp2-canon_mfp_io.o scangearmp2-canon_mfp_tools.o scangearmp2-mainui.o scangearmp2-selectdevice.o scangearmp2-scanmain.o scangearmp2-errordlg.o scangearmp2-progressbar.o scangearmp2-file_control.o scangearmp2-keep_setting.o scangearmp2-jpeg2pdf.o scangearmp2-cnmsfunc.o scangearmp2-callbacks.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 -lusb-1.0 -lcncpmslld2 -lcncpnet2 -lcncpnet20 -lcncpnet30 -lpthread

libtool: Version mismatch error. This is libtool 2.4.6, but the

libtool: definition of this LT_INIT comes from libtool 2.4.6.42-b88ce.

libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6

libtool: and run autoconf again.

make[2]: *** [Makefile:448: scangearmp2] Error 63

make[2]: Leaving directory '/tmp/yaourt-tmp-****/aur-scangearmp2 /src/scangearmp2-source-3.70-1/scangearmp2/src'

make[1]: *** [Makefile:424: all-recursive] Error 1

make[1]: Leaving directory '/tmp/yaourt-tmp-****/aur-scangearmp2/src/scangearmp2-source-3.70-1/scangearmp2'

make: *** [Makefile:356: all] Error 2

==> ERROR: A failure occurred in build().

while

pacman -Q libtool

libtool 2.4.6+42+gb88cebd5-1

livix commented on 2018-09-23 16:43 (UTC)

updated to version 3.70