Date: Mon, 14 Mar 2011 21:04:14 +0100 From: Torfinn Ingolfsen <tingox@gmail.com> To: FreeBSD Ports ML <freebsd-ports@freebsd.org> Cc: sylvio@freebsd.org Subject: Re: gscan2pdf 0.9.32 has unsatisfied dependencies Message-ID: <AANLkTi=ZX5ky2AN_YkNZuD_6qbZzjnDNjkX%2B6Mvd85kW@mail.gmail.com> In-Reply-To: <AANLkTikRFc%2BMYEaLFpii2ERfmrHP7k_E0JLfUQzhTEzr@mail.gmail.com> References: <AANLkTikRFc%2BMYEaLFpii2ERfmrHP7k_E0JLfUQzhTEzr@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Update: On Sun, Mar 13, 2011 at 6:56 PM, Torfinn Ingolfsen <tingox@gmail.com> wrote= : > Yes, it still fails, but at least the it doesn't complain about missing s= tuff. > A debug run: > tingo@kg-v2$ gscan2pdf --debug > Constant subroutine main::LC_CTYPE redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_CTYPE () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Constant subroutine main::LC_NUMERIC redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_NUMERIC () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Constant subroutine main::LC_TIME redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_TIME () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Constant subroutine main::LC_COLLATE redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_COLLATE () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Constant subroutine main::LC_MONETARY redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_MONETARY () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Constant subroutine main::LC_MESSAGES redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_MESSAGES () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Constant subroutine main::LC_ALL redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > Prototype mismatch: sub main::LC_ALL () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > =A0at /usr/local/bin/gscan2pdf line 160 > This Perl not built to support threads > Compilation failed in require at /usr/local/bin/gscan2pdf line 12397. > BEGIN failed--compilation aborted at /usr/local/bin/gscan2pdf line 12397. I rebuilt my perl to be threaded (THREADS=3Don) and rebuilt all perl modules, and now gscan2pdf starts up: tingo@kg-v2$ scanimage -L device `snapscan:libusb:/dev/usb:/dev/ugen2.2' is a AGFA SNAPSCAN 1212U_2 flatbed scanner tingo@kg-v2$ gscan2pdf --debug Constant subroutine main::LC_CTYPE redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_CTYPE () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Constant subroutine main::LC_NUMERIC redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_NUMERIC () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Constant subroutine main::LC_TIME redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_TIME () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Constant subroutine main::LC_COLLATE redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_COLLATE () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Constant subroutine main::LC_MONETARY redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_MONETARY () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Constant subroutine main::LC_MESSAGES redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_MESSAGES () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Constant subroutine main::LC_ALL redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Prototype mismatch: sub main::LC_ALL () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. at /usr/local/bin/gscan2pdf line 160 Name "PDF::API2::Version::CVersion" used only once: possible typo at /usr/local/bin/gscan2pdf line 433. INFO - Starting gscan2pdf 0.9.32 INFO - Log level DEBUG INFO - Using en_US.ISO8859-1 locale INFO - Startup LC_NUMERIC C INFO - Reading config from /home/tingo/.gscan2pdf Running init Running sane_init INFO - Gtk2-Perl version 1.221 INFO - Built for GTK 2.22.1 INFO - Running with GTK 2.22.1 INFO - Using GtkImageView version 1.6.4 INFO - Using Gtk2::ImageView version 0.05 Use of uninitialized value $PDF::API2::Version::CVersion{"vShort"} in concatenation (.) or string at /usr/local/bin/gscan2pdf line 433. INFO - Using PDF::API2 version DEBUG - $VAR1 =3D { 'no-blackfilter' =3D> '', 'profile' =3D> {}, 'frontend' =3D> 'libsane-perl', 'mode' =3D> 'Color', 'output-pages' =3D> '1', 'Paper' =3D> { 'US Legal' =3D> { 'y' =3D> '356', 'l' =3D> '0', 'x' =3D> '216', 't' =3D> '0' }, 'US Letter' =3D> { 'y' =3D> '279', 'l' =3D> '0', 'x' =3D> '216', 't' =3D> '0' }, 'A4' =3D> { 'y' =3D> '297', 'l' =3D> '0', 'x' =3D> '210', 't' =3D> '0' } }, 'unsharp radius' =3D> '0', 'no-border-scan' =3D> '', 'ocr engine' =3D> 'ocropus', 'window_maximize' =3D> '', 'no-blurfilter' =3D> '', 'y' =3D> '297', 'white-threshold' =3D> '0.9', 'layout' =3D> 'single', 'pid' =3D> '51834', 'cwd' =3D> '/usr/home/tingo', 'unsharp amount' =3D> '1', 'OCR output' =3D> 'replace', 't' =3D> '0', 'OCR on scan' =3D> '', 'Paper size' =3D> 'A4', 'Page range' =3D> 'all', 'no-deskew' =3D> '', 'default' =3D> { 'snapscan:libusb:/dev/usb:/dev/ugen2.2' =3D> { 'br-x' =3D> '210' } }, 'window_height' =3D> '992', 'user_defined_tools' =3D> 'gimp %i', 'default filename' =3D> '%a %y-%m-%d', 'startup warning' =3D> '1', 'rotate reverse' =3D> '0', 'brightness' =3D> '0', 'no-grayfilter' =3D> '', 'Dark threshold' =3D> '0.12', 'pages to scan' =3D> '1', 'no-border-align' =3D> '', 'resolution' =3D> '300', 'Blank threshold' =3D> '0.005', 'unpaper on scan' =3D> '', 'rotate facing' =3D> '0', 'cache options' =3D> '', 'libsane-perl version' =3D> '0.03', 'x' =3D> '210', 'downsample dpi' =3D> '150', 'window_width' =3D> '1009', 'window_x' =3D> '297', 'deskew-scan-direction' =3D> 'left,right', 'threshold tool' =3D> '80', 'window_y' =3D> '0', 'quality' =3D> '75', 'date offset' =3D> '0', 'unsharp sigma' =3D> '1', 'thumb panel' =3D> '100', 'version' =3D> '0.9.32', 'contrast' =3D> '0', 'device' =3D> 'snapscan:libusb:/dev/usb:/dev/ugen2.2', 'scan prefix' =3D> '', 'unsharp threshold' =3D> '0.05', 'no-noisefilter' =3D> '', 'l' =3D> '0', 'SANE version' =3D> '1.0.21', 'no-mask-scan' =3D> '', 'downsample' =3D> '', 'black-threshold' =3D> '0.33', 'restore window' =3D> '1', 'pdf compression' =3D> 'auto' }; INFO - Found Image::Magick INFO - Found ImageMagick INFO - Found scanadf INFO - Found xdg-email INFO - Found gocr INFO - Found tesseract INFO - Found cjb2 (djvu) INFO - Found unpaper INFO - Found libtiff INFO - Using /tmp/Fox6lclyrg for temporary files INFO - Wrote config to /home/tingo/.gscan2pdf DEBUG - Quitting Exiting via sane_exit It seems that a threaded perl is required, in spite of the web site claiming that it uses libforks-perl (FreeBSD: p5-forks) instead of threads. I will have to take that up with the author. Thanks to Sylvio for giving me the necessary hint! Anyway, gsacn2pd still has problems. When I try to scan, I get this (started with 'gscan2pdf --debug'): INFO - Sane->get_devices returned: $VAR1 =3D [ { 'name' =3D> 'snapscan:libusb:/dev/usb:/dev/ugen2.2', 'model' =3D> 'SNAPSCAN 1212U_2', 'type' =3D> 'flatbed scanner', 'vendor' =3D> 'AGFA' } ]; sane_open returned SANE_Handle 16837376 ERROR - opening device: Error during device I/O But I have necessary permissions: tingo@kg-v2$ ls -l /dev/ugen2.2 /dev/usb/2.2.0 lrw-rw---- 1 root cups 9 Jan 9 22:52 /dev/ugen2.2 -> usb/2.2.0 crw-rw---- 1 root cups 0, 117 Jan 9 22:49 /dev/usb/2.2.0 tingo@kg-v2$ ls -ld /dev/usb drwxrwx--- 2 root cups 512 Sep 16 23:36 /dev/usb and my user (tingo) is a member of the correct group: tingo@kg-v2$ id uid=3D1001(tingo) gid=3D1001(users) groups=3D1001(users),0(wheel),5(operator),193(cups) I even tried as root, and got the same error. --=20 Regards, Torfinn Ingolfsen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=ZX5ky2AN_YkNZuD_6qbZzjnDNjkX%2B6Mvd85kW>