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:
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:
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:
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
I have iscan installed and just now I successfully rebuilt it from aur. https://aur.archlinux.org/packages/iscan
I have the source file downloaded here (http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=DE&CN2=&DSCMI=144749&DSCCHK=757765830e33ab5914c709802b2cdc0f517493cb) (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?
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.
There's patches. Some distro-specific differences I guess.
Sorry, I can not find any usefull explanation, how I can enable aur in Artix, neither here (https://www.reddit.com/r/artixlinux/comments/x48d35/how_do_i_enable_aur_in_pacmanconf/), nor here (https://www.reddit.com/r/artixlinux/comments/vbuozd/aur_on_artix/) nor here (https://forum.artixlinux.org/index.php/topic,185.0.html).
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)
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..."
I don't know anything about pamac. I'd suggest you read this first: https://wiki.archlinux.org/title/Arch_User_Repository
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? >:(
Yes, the libstdc++5 package in aur is kinda broken, but there is a fix in comments. Clone github repo and build it:
git clone https://github.com/mikrosk/libstdc-5
cd libstdc-5
makepkg
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?
You can try. As far as I know it's harmless enough, worst case scenario is that installed package doesn't run.