Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Help with ./configure Epson Scanner (Read 699 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Help with ./configure Epson Scanner

Hello, I urgently need help installing a program for my Epson Perfection 4870 scanner in Artix.
For Debian or Suse, the manufacturer has bash scripts that can be installed without any problems. For  Artix no, so I have to resort to compiling them myself.
I tried two programs, namely iscan and imagescan.
I was unable to install either of them.

iscan:

./configure ran without any problems. make ended with the following error message:

Code: [Select]
jpegstream.cc:85:31: Fehler: Aufruf des überladenen »div(unsigned int&, long unsigned int)« ist nicht eindeutig
   85 |             div_t index = div (i, 8 * sizeof (JSAMPLE));
      |                           ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In Datei, eingebunden von /usr/include/c++/14.1.1/cstdlib:79,
                 von /usr/include/c++/14.1.1/stdlib.h:36,
                 von /usr/include/libltdl/lt_system.h:36,
                 von /usr/include/ltdl.h:36,
                 von basic-imgstream.hh:55,
                 von jpegstream.hh:41,
                 von jpegstream.cc:34:
/usr/include/stdlib.h:992:14: Anmerkung: Kandidat: »div_t div(int, int)«
  992 | extern div_t div (int __numer, int __denom)
      |              ^~~
/usr/include/c++/14.1.1/cstdlib:217:3: Anmerkung: Kandidat: »lldiv_t __gnu_cxx::div(long long int, long long int)«
  217 |   div(long long __n, long long __d)
      |   ^~~
/usr/include/c++/14.1.1/cstdlib:181:3: Anmerkung: Kandidat: »ldiv_t std::div(long int, long int)«
  181 |   div(long __i, long __j) _GLIBCXX_NOTHROW { return ldiv(__i, __j); }
      |   ^~~
make[3]: *** [Makefile:498: libimage_stream_la-jpegstream.lo] Fehler 1
make[3]: Verzeichnis „/home/mikey/Arbeitsfläche/iscan-2.30.4/lib“ wird verlassen
make[2]: *** [Makefile:552: all-recursive] Fehler 1
make[2]: Verzeichnis „/home/mikey/Arbeitsfläche/iscan-2.30.4/lib“ wird verlassen
make[1]: *** [Makefile:448: all-recursive] Fehler 1
make[1]: Verzeichnis „/home/mikey/Arbeitsfläche/iscan-2.30.4“ wird verlassen
make: *** [Makefile:377: all] Fehler 2

imagescan:

Autoconf -if already ended with errors:

Code: [Select]
configure.ac:54: error: possibly undefined macro: AS_IF
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:56: error: possibly undefined macro: AC_MSG_NOTICE
configure.ac:221: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

./configure than:

Code: [Select]
configure: error: cannot find required auxiliary files: config.guess config.sub ar-lib compile missing install-sh

Can someone please help me, I really need the scanner. ...that at least one software is running.

If this topic is wrong, please move it.

Artix S6 with trinity


Re: Help with ./configure Epson Scanner

Reply #2
I have the source file downloaded here (after accepting the licence).

I actually didn't want to include aur.  :'(
Can you provide the rebuilt iscan for me?
Is that even possible?

And why don't work the source file?

Re: Help with ./configure Epson Scanner

Reply #3
I'm not sure that my package will work for you, I have an old cpu and specific compilation flags including target-cpu=native. Why don't you want use aur? It's just PKGBUILD and patches. You can download snapshot of it and inspect it thoroughly and then build with makepkg.

And why don't work the source file?

There's patches. Some distro-specific differences I guess.

Re: Help with ./configure Epson Scanner

Reply #4
Sorry, I can not find any usefull explanation, how I can enable aur in Artix, neither here, nor here  nor here.

What does it mean: "It's just PKGBUILD and patches. And where I can "download snapshot of it and inspect it thoroughly and then build with makepkg."

Aur is not officially supported. This requires a foolproof explanation.  ;)
How I have to enable it (without damage to my system)

Re: Help with ./configure Epson Scanner

Reply #5
I have enabled  aur in pamac-manager, but it is not possible to install iscan.
Surely it is not so simple, but why is there no explanation in pamac?

"Fehler beim Klonen der Build-Dateien..."


Re: Help with ./configure Epson Scanner

Reply #7
I can't get any further. I've read up on it.

So when I try to install iscan, the libstdc++5 package from aur is missing as a dependency.
When I try to install the libstdc++5 package first, I get the error message, when I run makepkg -s:

Cannot find the GNU C library minor version number.
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

So what now?  >:(

Re: Help with ./configure Epson Scanner

Reply #8
Yes, the libstdc++5 package in aur is kinda broken, but there is a fix in comments. Clone github repo and build it:

Code: [Select]
git clone https://github.com/mikrosk/libstdc-5
cd libstdc-5
makepkg

Re: Help with ./configure Epson Scanner

Reply #9
Many thanks for the help.   :-*
The scanner is now working.

All I had to do yet was rebuild the iscan-data package.

I could have figured it out myself, but sometimes you just lose your nerve.
Especially when it comes to compiling and you keep getting error messages.

Don't you think I can install the created packages on my other notebook?

 

Re: Help with ./configure Epson Scanner

Reply #10
Don't you think I can install the created packages on my other notebook?

You can try. As far as I know it's harmless enough, worst case scenario is that installed package doesn't run.