Reinert SCT - cyberjack pinpada - Treiber ?

ds2k5

Active Member
Hallo,
habe unter FreeBSD 11.1 folgende Packet installiert.

pcsc-lite-1.8.22,2
pcsc-tools-1.4.27

Aber pcsc_scan erkennt den Cardreader wohl nicht

# pcsc_scan
PC/SC device scanner
V 1.4.27 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.22
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...

# service pcscd status
pcscd is running as pid 91224.

# tail -f /var/log/messages
Feb 3 21:21:47 x220 kernel: ugen0.3: <Reiner-SCT cyberJack pinpada> at usbus0
Feb 3 21:21:47 x220 root: Unknown USB device: vendor 0x0c4b product 0x0300 bus uhub2


# lsusb
Bus /dev/usb Device /dev/ugen0.3: ID 0c4b:0300 Reiner SCT Kartensysteme GmbH cyberJack pinpad(a)

# ls -la /dev/usb/0.3.0
crw------- 1 root operator 0x76 Feb 3 21:19 /dev/usb/0.3.0


# service pcscd stop
# pcscd -f
leider keine Ausgabe

# pcscd -f -d
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000323 configfile.l:361:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000022 pcscdaemon.c:658:main() pcsc-lite 1.8.22 daemon ready.
00000363 hotplug_libusb.c:268:HPReadBundleValues() No bundle files in pcsc drivers directory: /usr/local/lib/pcsc/drivers/
00000009 hotplug_libusb.c:269:HPReadBundleValues() Disabling USB support for pcscd


Wollte den Treiber kompilieren... aber klappt leider nicht...

http://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP10/pcsc-cyberjack_3.99.5final.SP10.tar.tar


tar xvfz pcsc-cyberjack_3.99.5final.SP10.tar.tar



vi Makefile / vi libtool
von SED = /bin/sed
nach SED = /usr/bin/sed

cd /usr/local/bin
ln -s g++7 g++
ln -s gcc7 gcc


cd -
gmake



libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/driver -I../include/firmware -Iausb -pthread -I/usr/include/PCSC -DBUILDING_CYBERJACK -DCYBERJACK_CONFIG_FILE=\"/etc/cyberjack/cyberjack.conf\" -g -O2 -Wall -c BaseCommunication.cpp -fPIC -DPIC -o .libs/BaseCommunication.o
In file included from ../include/driver/Platform_unix.h:43:0,
from ../include/driver/Platform.h:35,
from BaseCommunication.cpp:1:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
#error "<malloc.h> has been replaced by <stdlib.h>"
^~~~~
In file included from ../include/driver/Platform_unix.h:49:0,
from ../include/driver/Platform.h:35,
from BaseCommunication.cpp:1:
/usr/local/include/PCSC/winscard.h:41:10: fatal error: pcsclite.h: No such file or directory
#include <pcsclite.h>
^~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [Makefile:621: BaseCommunication.lo] Error 1
gmake[3]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP10/cjeca32'
gmake[2]: *** [Makefile:636: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP10/cjeca32'
gmake[1]: *** [Makefile:492: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP10'
gmake: *** [Makefile:422: all] Error 2



# ls -lathr /usr/local/include/PCSC/pcsclite.h
-rw-r--r-- 1 root wheel 15K Dec 10 03:39 /usr/local/include/PCSC/pcsclite.h

# ls -lathr /usr/include/stdlib.h
-r--r--r-- 1 root wheel 11K Jul 21 2017 /usr/include/stdlib.h
 
Hab mich gerade mal bis zum Treiber-Download durchgeklickt.
Bei mir steht dort ein pcsc-cyberjack-3.99.5final.SP11.tar.bz2 bereit.

Solltest du ausgerechnet die vorherige Version erwischt haben?
 
Hallo waldbaer59,
Danke fuer den Tip, leider klappt das Kompilieren auch mit der Version nicht.

wget http://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP11/pcsc-cyberjack-3.99.5final.SP11.tar.bz2

tar -xvpjf pcsc-cyberjack-3.99.5final.SP11.tar.bz2

cd pcsc-cyberjack-3.99.5final.SP11

./configure

gmake


...
...
libtool: link: ranlib .libs/libausb.a
libtool: link: ( cd ".libs" && rm -f "libausb.la" && ln -s "../libausb.la" "libausb.la" )
gmake[3]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/cjeca32/ausb'
gmake[3]: Entering directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/cjeca32'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/driver -I../include/firmware -Iausb -I/usr/local/include/PCSC -D_THREAD_SAFE -pthread -DBUILDING_CYBERJACK -DCYBERJACK_CONFIG_FILE=\"/usr/etc/cyberjack.conf\" -g -O2 -Wall -MT BaseCommunication.lo -MD -MP -MF .deps/BaseCommunication.Tpo -c -o BaseCommunication.lo BaseCommunication.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/driver -I../include/firmware -Iausb -I/usr/local/include/PCSC -D_THREAD_SAFE -pthread -DBUILDING_CYBERJACK -DCYBERJACK_CONFIG_FILE=\"/usr/etc/cyberjack.conf\" -g -O2 -Wall -MT BaseCommunication.lo -MD -MP -MF .deps/BaseCommunication.Tpo -c BaseCommunication.cpp -fPIC -DPIC -o .libs/BaseCommunication.o
In file included from ../include/driver/Platform_unix.h:43:0,
from ../include/driver/Platform.h:35,
from BaseCommunication.cpp:1:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
#error "<malloc.h> has been replaced by <stdlib.h>"
^~~~~
gmake[3]: *** [Makefile:621: BaseCommunication.lo] Error 1
gmake[3]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/cjeca32'
gmake[2]: *** [Makefile:640: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/cjeca32'
gmake[1]: *** [Makefile:492: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11'
gmake: *** [Makefile:422: all] Error 2


make installcheck
Making installcheck in m4
Making installcheck in include
Making installcheck in macosx
Making installcheck in PCSC
Making installcheck in cjeca32
Making installcheck in ausb
Making installcheck in ifd
Making installcheck in libcyberjack
Making installcheck in checksuite
Making installcheck in libdialog
Making installcheck in base
Making installcheck in tools
Making installcheck in doc

g++ --version
g++ (FreeBSD Ports Collection) 7.2.0

gcc --version
gcc (FreeBSD Ports Collection) 7.2.0
 
Ich überlege ob es helfen könnte, die Paketquelle zu editieren und malloc.h durch stdlib.h zu ersetzen.
Wäre evtl. einen Versuch wert ...

Für mich ist das Ganze auch im Rahmen meines freeBSD Einstiegs interessant, weil ich sicher gelegentlich am Thema 'Moneyplex' und HBCI vorbei komme, wenn ich ausprobieren will, ob ich das zum Laufen bekomme. Daher interessiert mich, wie es mit dem Thema bei dir weitergeht.

VLG
Stephan
 
Ja, würde es. 'malloc.h' ist ein Linuxismus, den es unter FreeBSD so nicht gibt. :)
 
Hallo waldbaer59,
danke
ich werds versuchen heute abend oder morgen abend.
Meld mich dann...

Der Hersteller schreibt mir folgendes:
"
vielen Dank für Ihre Anfrage.
Der cyberJack pinpad wurde schon seit mehreren Jahren abgekündigt und der Support wurde eingestellt.
...
...
Wir empfehlen Ihnen aufgrund der Weiterentwicklung in der Chipkartentechnologie, kurzfristig den Umstieg auf einen neuen cyberJack Chipkartenleser mit Secoder-Funktion, um die Funktion und Sicherheit Ihrer Anwendung dauerhaft sicherzustellen.
"

Aber wenn ich mir den https://shop.reiner-sct.com/chipkartenleser-fuer-die-sicherheitsklasse-3/cyberjack-secoder-usb
da gibts nur genau das Treiberpacket das ich hab, http://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP11/pcsc-cyberjack-3.99.5final.SP11.tar.bz2
 
Ich weiß, dass ich seinerzeit von einer älteren Version des Kartenlesers umsteigen musste, als sich Arch Linux von 'HAL' verabschiedet hat. Insofern war unter Linux nix anderes drin. Vielleicht bleibt dir auch unter BSD nichts Anderes übrig, als dich mit neuer Hardware zu versehen, aber probieren geht über studieren ...
 
habe in den files: ltmain.sh und include/driver/Platform_unix.h
malloc.h durch stdlib.h ersetzt

./configure
gmake


...
-MD -MP -MF .deps/BaseCommunication.Tpo -c -o BaseCommunication.lo BaseCommunication.cpp
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/driver -I../include/firmware -Iausb -I/usr/local/include/PCSC -D_THREAD_SAFE -pthread -DBUILDING_CYBERJACK -DCYBERJACK_CONFIG_FILE=\"/usr/etc/cyberjack.conf\" -g -O2 -Wall -MT BaseCommunication.lo -MD -MP -MF .deps/BaseCommunication.Tpo -c BaseCommunication.cpp -fPIC -DPIC -o .libs/BaseCommunication.o
In file included from BaseCommunication.cpp:1:
In file included from ../include/driver/Platform.h:35:
../include/driver/Platform_unix.h:49:11: fatal error: 'PCSC/winscard.h' file not found
# include <PCSC/winscard.h>
^~~~~~~~~~~~~~~~~
1 error generated.
gmake[3]: *** [Makefile:621: BaseCommunication.lo] Error 1
gmake[3]: Leaving directory '/root/Downloads/pcsc-cyberjack-3.99.5final.SP11/cjeca32'
gmake[2]: *** [Makefile:640: all-recursive] Error 1
gmake[2]: Leaving directory '/root/Downloads/pcsc-cyberjack-3.99.5final.SP11/cjeca32'
gmake[1]: *** [Makefile:492: all-recursive] Error 1
gmake[1]: Leaving directory '/root/Downloads/pcsc-cyberjack-3.99.5final.SP11'
gmake: *** [Makefile:422: all] Error 2

root@freeBSD11:~/Downloads/pcsc-cyberjack-3.99.5final.SP11 # find . -name winscard.h
./include/macosx/winscard.h
 
Noch ein versuch... leider auch ohne Erfolg

libtool: compile: g++ -DHAVE_CONFIG_H -DCD_SCRIPT_DIR=\"/usr/lib/cyberjack\" -I. -I../.. -I/usr/local/include/PCSC -D_THREAD_SAFE -pthread -I../../include -I../../include/driver -I../../include/firmware -I../.. -I../../cjeca32 -I../.. -I../../cjeca32/ausb -I../../libcyberjack -I../../ifd -DBUILDING_CYBERJACK -g -O2 -Wall -MT cm_distri.lo -MD -MP -MF .deps/cm_distri.Tpo -c cm_distri.cpp -fPIC -DPIC -o .libs/cm_distri.o
cm_distri.cpp: In member function 'virtual bool CM_Distri::check(std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string&)':
cm_distri.cpp:49:6: error: 'WEXITSTATUS' was not declared in this scope
xs=WEXITSTATUS(rv);
^~~~~~~~~~~
cm_distri.cpp:86:33: warning: format '%a' expects argument of type 'float*', but argument 3 has type 'char**' [-Wformat=]
if (1==fscanf(f, "%as", &p)) {
~~^
cm_distri.cpp:126:33: warning: format '%a' expects argument of type 'float*', but argument 3 has type 'char**' [-Wformat=]
if (1==fscanf(f, "%as", &p)) {
~~^
gmake[3]: *** [Makefile:486: cm_distri.lo] Error 1
gmake[3]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack/checksuite'
gmake[2]: *** [Makefile:588: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack'
gmake[1]: *** [Makefile:492: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11'
gmake: *** [Makefile:422: all] Error 2


----

dann habe ich folgenendes angepasst:

libcyberjack/libdialog/dialog.c
von #include <utmp.h>
nach #include <utmpx.h>

libcyberjack/checksuite/cm_distri.cpp

hinzu:

#include <sys/wait.h>

Aber leider klappts immer noch nicht:

dialog.Tpo -c -o dialog.lo dialog.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/driver -I../../cjeca32 -I../../cjeca32/ausb -Ibase -I../../ppa -I/usr/local/include/PCSC -D_THREAD_SAFE -pthread -DBUILDING_CYBERJACK -DCYBERJACK_CONFIG_FILE=\"/usr/etc/cyberjack.conf\" -DBUILDING_CYBERJACK -DCYBERJACK_CONFIG_FILE=\"/usr/etc/cyberjack.conf\" -g -O2 -Wall -MT dialog.lo -MD -MP -MF .deps/dialog.Tpo -c dialog.c -fPIC -DPIC -o .libs/dialog.o
dialog.c: In function 'rsct_dialog_mk_socket':
dialog.c:127:21: warning: implicit declaration of function 'getutent'; did you mean 'getutxent'? [-Wimplicit-function-declaration]
while ((u_tmp_p = getutent()) != NULL) {
^~~~~~~~
getutxent
dialog.c:127:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
while ((u_tmp_p = getutent()) != NULL) {
^
dialog.c:131:16: error: dereferencing pointer to incomplete type 'struct utmp'
if (u_tmp_p->ut_type==USER_PROCESS &&
^~
dialog.c:139:5: warning: implicit declaration of function 'endutent'; did you mean 'endutxent'? [-Wimplicit-function-declaration]
endutent();
^~~~~~~~
endutxent
gmake[4]: *** [Makefile:556: dialog.lo] Error 1
gmake[4]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack/libdialog'
gmake[3]: *** [Makefile:596: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack/libdialog'
gmake[2]: *** [Makefile:588: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack'
gmake[1]: *** [Makefile:492: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local
 
libcyberjack/libdialog/dialog.c

von struct utmp *u_tmp_p;
nach struct utmpx *u_tmp_p;

getutent nach getutxent
endutent nach endutxent


/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -o libtest libtest.o libcyberjack.la -ldl -lstdc++ -L/usr/local/lib -lpcsclite -L/usr/local/lib -lpcsclite -lusb
libtool: link: g++ -g -O2 -Wall -o libtest libtest.o ./.libs/libcyberjack.a -L/usr/local/lib -ldl -lstdc++ -lpcsclite -lusb
/usr/local/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
gmake[3]: *** [Makefile:539: libtest] Error 1
gmake[3]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack'
gmake[2]: *** [Makefile:588: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11/libcyberjack'
gmake[1]: *** [Makefile:492: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/lib/pcsc/drivers/pcsc-cyberjack-3.99.5final.SP11'
gmake: *** [Makefile:422: all] Error 2
 
Hallo Yamagi,
danke Dir


libcyberjack/Makefile

hier die "-ldl" rausgelöscht

nun lief das kompilieren duch!

DANKE !
 
Leider hab ich keinen Plan von Patch bauen:


pcsc-cyberjack-3.99.5final.SP11/libcyberjack/libdialog/dialog.c

@@ -30,7 +30,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <pwd.h>
-#include <utmp.h>
+#include <utmpx.h>
#include <errno.h>
#include <string.h>
@@ -120,11 +120,11 @@
static int rsct_dialog_mk_socket() {
char buffer[256];
- struct utmp *u_tmp_p;
+ struct utmpx *u_tmp_p;
struct passwd *pw;
int sk;
- while ((u_tmp_p = getutent()) != NULL) {
+ while ((u_tmp_p = getutxent()) != NULL) {
DEBUGPI("RSCT: ut_type=%d, ut_line=[%s]\n",
u_tmp_p->ut_type,
u_tmp_p->ut_line);
@@ -136,7 +136,7 @@
if (u_tmp_p==NULL) {
DEBUGPE("RSCT: No user logged in at XServer :0 (%s (%d))\n", strerror(errno), errno);
- endutent();
+ endutxent();
return -1;
}
@@ -144,18 +144,18 @@
if (pw==NULL) {
DEBUGPE("RSCT: Could not get home folder for user [%s]: %s (%d)\n",
u_tmp_p->ut_user, strerror(errno), errno);
- endutent();
+ endutxent();
return -1;
}
if (pw->pw_dir==NULL || *(pw->pw_dir)==0) {
DEBUGPE("RSCT: User [%s] has no home folder\n", u_tmp_p->ut_user);
- endutent();
+ endutxent();
return -1;
}
strncpy(buffer, pw->pw_dir, sizeof(buffer)-1);
strncat(buffer, "/.cyberJack_gui_sock", sizeof(buffer)-1);
- endutent();
+ endutxent();
sk=rsct_net_connect_by_path(buffer);
if (sk==-1@@ -5529,7 +5529,7 @@
# define _CRT_SECURE_NO_DEPRECATE 1
#endif
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#ifdef _MSC_VER
# include <direct.h>
# include <process.h>
) {



pcsc-cyberjack-3.99.5final.SP11/libcyberjack/Makefile.in

@@ -476,7 +476,7 @@
module.hpp mtemplate.hpp modulestore.hpp
libtest_SOURCES = libtest.cpp
-libtest_LDADD = libcyberjack.la -ldl -lstdc++ $(pcsc_libraries) $(pcsc_lib) $(libusb_LIBS)
+libtest_LDADD = libcyberjack.la -lstdc++ $(pcsc_libraries) $(pcsc_lib) $(libusb_LIBS)
all: all-recursive
.SUFFIXES:



pcsc-cyberjack-3.99.5final.SP11/ltmain.sh


@@ -5529,7 +5529,7 @@
# define _CRT_SECURE_NO_DEPRECATE 1
#endif
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#ifdef _MSC_VER
# include <direct.h>
# include <process.h>





pcsc-cyberjack-3.99.5final.SP11/include/driver/Platform_unix.h

@@ -40,7 +40,7 @@
#include <string.h>
#ifndef OS_DARWIN
-# include <malloc.h>
+# include <stdlib.h>
#endif
#ifdef __cplusplus
 
Hier mal ein versuch:

fuer: pcsc-cyberjack-3.99.5final.SP11.tar.bz2
Dateiname: patch.v1

libcyberjack/checksuite/cm_distri.cpp

@@ -11,7 +11,7 @@



-
+#include <sys/wait.h>
#include "cm_distri.h"
#include "checksuite.h"


libcyberjack/libdialog/dialog.c

@@ -30,7 +30,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <pwd.h>
-#include <utmp.h>
+#include <utmpx.h>
#include <errno.h>
#include <string.h>
@@ -120,11 +120,11 @@
static int rsct_dialog_mk_socket() {
char buffer[256];
- struct utmp *u_tmp_p;
+ struct utmpx *u_tmp_p;
struct passwd *pw;
int sk;
- while ((u_tmp_p = getutent()) != NULL) {
+ while ((u_tmp_p = getutxent()) != NULL) {
DEBUGPI("RSCT: ut_type=%d, ut_line=[%s]\n",
u_tmp_p->ut_type,
u_tmp_p->ut_line);
@@ -136,7 +136,7 @@
if (u_tmp_p==NULL) {
DEBUGPE("RSCT: No user logged in at XServer :0 (%s (%d))\n", strerror(errno), errno);
- endutent();
+ endutxent();
return -1;
}
@@ -144,18 +144,18 @@
if (pw==NULL) {
DEBUGPE("RSCT: Could not get home folder for user [%s]: %s (%d)\n",
u_tmp_p->ut_user, strerror(errno), errno);
- endutent();
+ endutxent();
return -1;
}
if (pw->pw_dir==NULL || *(pw->pw_dir)==0) {
DEBUGPE("RSCT: User [%s] has no home folder\n", u_tmp_p->ut_user);
- endutent();
+ endutxent();
return -1;
}
strncpy(buffer, pw->pw_dir, sizeof(buffer)-1);
strncat(buffer, "/.cyberJack_gui_sock", sizeof(buffer)-1);
- endutent();
+ endutxent();
sk=rsct_net_connect_by_path(buffer);
if (sk==-1@@ -5529,7 +5529,7 @@
# define _CRT_SECURE_NO_DEPRECATE 1
#endif
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#ifdef _MSC_VER
# include <direct.h>
# include <process.h>
) {



libcyberjack/Makefile.in

@@ -476,7 +476,7 @@
module.hpp mtemplate.hpp modulestore.hpp
libtest_SOURCES = libtest.cpp
-libtest_LDADD = libcyberjack.la -ldl -lstdc++ $(pcsc_libraries) $(pcsc_lib) $(libusb_LIBS)
+libtest_LDADD = libcyberjack.la -lstdc++ $(pcsc_libraries) $(pcsc_lib) $(libusb_LIBS)
all: all-recursive
.SUFFIXES:



ltmain.sh


@@ -5529,7 +5529,7 @@
# define _CRT_SECURE_NO_DEPRECATE 1
#endif
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#ifdef _MSC_VER
# include <direct.h>
# include <process.h>





include/driver/Platform_unix.h

@@ -40,7 +40,7 @@
#include <string.h>
#ifndef OS_DARWIN
-# include <malloc.h>
+# include <stdlib.h>
#endif
#ifdef __cplusplus



patch -i patch.v1

./configure --prefix=/usr/local/lib/pcsc/driver
gmake

service pcscd stop

pcscd -f

00000000 dyn_unix.c:58:DYN_LoadLibrary() /usr/local/lib/pcsc/drivers//libifd-cyberjack.bundle/Contents/FreeBSD/libifd-cyberjack.so: Cannot open "/usr/local/lib/pcsc/drivers//libifd-cyberjack.bundle/Contents/FreeBSD/libifd-cyberjack.so"
00000026 readerfactory.c:1081:RFInitializeReader() RFLoadReader failed: 0x80100014
00000004 readerfactory.c:376:RFAddReader() REINER SCT cyberJack pp_a (9889888823) init failed.

die Datei: libifd-cyberjack.so existiert nicht
 
Files der Gattung "patch" kannst du mit "diff" erstellen.
Deine geänderten Files gegen die "originalen" diff-en und heraus kommt ein Patch-File.

Code:
 diff -u orig-file.c changed-file.c > patch-file
 
Hallo,
ich bin ein kl. Stück weiter.

https://www.file-upload.net/download-12968396/patch.tar.html

Code:
cd pcsc-cyberjack-3.99.5final.SP11
tar xvf ../path/to/patch.tar
patch -i patch-ltmain.sh
patch -i patch-configure.ac
cd include/driver/
patch -i patch-Debug.h
cd ../../include/driver/
patch -i patch-Platform_unix.h
cd ../../ifd
patch -i patch-Makefile.in
cd ../libcyberjack/libdialog
patch -i patch-dialog.c
cd ../../libcyberjack/checksuite
patch -i patch-cm_distri.cpp
cd ../
patch -i patch-Makefile.in

Aber leider habe ich immer noch keine: libifd-cyberjack.so

was mach ich falsch ?
 
sorry vergessen: die libcyberjack/Makefile.in muss das "-ldl" raus
das hab ich nicht geschafft das es automatisch angepasst wird.


./configure CC=gcc7 CXX=g++7 --prefix=/usr/local/lib/pcsc/drivers
gmake
 
hab da noch was gefunden...

cd ifd # gmake
gmake: Nothing to be done for 'all'.


im verz. ifd wird nichts kompiliert....

wer kann mir sagen warum ?
 
Zurück
Oben