You are not logged in.

#26 2019-06-03 22:25:21

strang3r
Member
Registered: 2014-12-06
Posts: 8

Re: [solved] Scanner V600 doesn't scan in 16bpc mode

@Muflone, @matthew_2nHk
Could you test this patch?

Offline

#27 2020-02-27 19:16:22

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 154

Re: [solved] Scanner V600 doesn't scan in 16bpc mode

strang3r wrote:

@Muflone, @matthew_2nHk
Could you test this patch?

When I tried to rebuild my patch or Marksismus's patch, it stopped working under glibc-2.31 - it simply failed to find the scanner. Your patch seems to make it work again. Thanks

Offline

#28 2021-01-14 10:10:37

regid
Member
Registered: 2016-06-06
Posts: 192

Re: [solved] Scanner V600 doesn't scan in 16bpc mode

I was hit by https://bugs.gentoo.org/show_bug.cgi?id=755884.
With glibc 2.32-5, and gcc 10.2.0-4.


pantum-p1000-p2000-p3000-m5100-m5200-ppd-driver (AUR): PPDs, drivers, for Pantum P1000, P2000, P3000, M5100, M5200 printers.
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

#29 2021-01-14 17:22:34

regid
Member
Registered: 2016-06-06
Posts: 192

Re: [solved] Scanner V600 doesn't scan in 16bpc mode

In the message above this one,

regid wrote:

I was hit by https://bugs.gentoo.org/show_bug.cgi?id=755884.
With glibc 2.32-5, and gcc 10.2.0-4.

I replaced the bool return type of model_info_customise_commands with int, both in the header and in the definition files. For the sake of the experiment. That has eliminated the error for

model-info.c:305:1: error: conflicting types for 'model_info_cu
stomise_commands'
  305 | model_info_customise_commands (const void *self, EpsonC
md cmd)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from model-info.c:69:
model-info.h:135:8: note: previous declaration of 'model_info_c
ustomise_commands' was here
  135 |   bool model_info_customise_commands (const void *self,
 EpsonCmd cmd);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In the meanwhile, https://bugs.gentoo.org/show_bug.cgi?id=755884 now mentions https://github.com/gentoo/gentoo/pull/18938. I am not sure where the Gentoo people applied their fix. For me, the following patch manage to have the package built. I do get what looks to me as many glib warnings. And possibly other compilation comments. I don't know if they are related.

--- src/iscan-2.30.3/backend/defines.h	2021-01-14 17:49:27.040346717 +0000
+++ src/iscan-2.30.3/backend/defines.h	2021-01-14 17:50:06.998481943 +0000
@@ -30,14 +30,9 @@
 #define MM_PER_INCH     25.4    /* exactly */
 
 
-#ifndef __cplusplus
 /*! A C++ Boolean type and corresponding keywords for our C code.
  */
-typedef enum {
-  false = 0,
-  true
-} bool;
-#endif
+#include <stdbool.h>
 
 
 /*  Run-time contract validation.

I still haven't tested the new package.

Last edited by regid (2021-01-14 19:14:06)


pantum-p1000-p2000-p3000-m5100-m5200-ppd-driver (AUR): PPDs, drivers, for Pantum P1000, P2000, P3000, M5100, M5200 printers.
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

#30 2021-01-14 19:51:16

regid
Member
Registered: 2016-06-06
Posts: 192

Re: [solved] Scanner V600 doesn't scan in 16bpc mode

It doesn't work. I don't have to reset the scanner as before. But --depth=16 makes the resulted image distorted. More precisely,

 scanimage --format=jpeg --depth=16 --scan-area=a4 > img.jpg

results in a distorted image.


pantum-p1000-p2000-p3000-m5100-m5200-ppd-driver (AUR): PPDs, drivers, for Pantum P1000, P2000, P3000, M5100, M5200 printers.
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

#31 2021-01-15 19:11:10

regid
Member
Registered: 2016-06-06
Posts: 192

Re: [solved] Scanner V600 doesn't scan in 16bpc mode

regid wrote:

...
I am not sure where the Gentoo people applied their fix
...

The way I understand https://github.com/gentoo/gentoo/pull/1 … a389186490, their patches are for their build files, and the following:

--- iscan-2.30.4/backend/defines.h.orig	2021-01-04 08:13:48.995137756 -0000
+++ iscan-2.30.4/backend/defines.h	2021-01-04 08:16:00.524563361 -0000
@@ -31,6 +31,13 @@
 
 
 #ifndef __cplusplus
+
+/*  Use the C99 bool type if available
+ */
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+
 /*! A C++ Boolean type and corresponding keywords for our C code.
  */
 typedef enum {
@@ -38,6 +45,7 @@
   true
 } bool;
 #endif
+#endif
 
 
 /*  Run-time contract validation.

pantum-p1000-p2000-p3000-m5100-m5200-ppd-driver (AUR): PPDs, drivers, for Pantum P1000, P2000, P3000, M5100, M5200 printers.
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

Board footer

Powered by FluxBB