openct icon indicating copy to clipboard operation
openct copied to clipboard

Does not build on ArchLinux

Open s3rg3 opened this issue 6 months ago • 2 comments

Hello,

As a proud owner of a WB Electronics' Infinity USB Unlimited card reader, i tried to build OpenCT for ArchLinux, since there was a community recipe at https://aur.archlinux.org/packages/openct, i choosed the easy way and decided to launch it, this resulted with this error:

ifdhandler.c: Dans la fonction « ifdhandler_run »:
ifdhandler.c:239:52: erreur: passage de l'argument 2 de « ifd_get_eventfd » depuis un type pointeur incompatible [-Wincompatible-pointer-types]
  239 |                 sock->fd = ifd_get_eventfd(reader, &sock->events);
      |                                                    ^~~~~~~~~~~~~
      |                                                    |
      |                                                    int *
Dans le fichier inclus depuis internal.h:17,
                 depuis ifdhandler.c:7:
../../src/include/openct/ifd.h:182:65: note: « short int * » attendu mais l'argument est de type « int * »
  182 | tern int                      ifd_get_eventfd(ifd_reader_t *, short *);
      |                                                               ^~~~~~~

make[3]: *** [Makefile:1044: ifdhandler-ifdhandler.o] Error 1

I will buy a newer device, but nevertheless i want to see if someone could help me here before.

Thank you.

s3rg3 avatar Aug 23 '24 21:08 s3rg3