tag 420046 patch thanks Lucas Nussbaum <[EMAIL PROTECTED]> (19/04/2007): > Relevant parts: > gcc -Wall -O2 -fPIC -I. -DG_UNIX -DHAVE_PTHREAD_H -g -I/usr/include/PCSC > -c -o gserial.o gserial.c > In file included from gserial.c:58: > ./ifdhandler.h:115: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHCreateChannel' > ./ifdhandler.h:116: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHCloseChannel' > ./ifdhandler.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHGetCapabilities' > ./ifdhandler.h:119: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHSetCapabilities' > ./ifdhandler.h:120: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHSetProtocolParamete > rs' > ./ifdhandler.h:122: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHPowerICC' > ./ifdhandler.h:123: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHTransmitToICC' > ./ifdhandler.h:126: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHControl' > ./ifdhandler.h:128: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'IFDHICCPresence' > make[1]: *** [gserial.o] Error 1
Hi, it looks to me that this header could be simply dropped from the source, since due to the B-D, a proper one is available under /usr/include/PCSC. Moreover, you'll have to replace the obsolete CLK_TCK with CLOCKS_PER_SEC (I didn't bother about the Windows part of the patched file). Once that done, your package builds fine; tagging accordingly. Cheers, -- Cyril Brulebois PS: Cc'ing my AM for RC bugfix.
--- libgcr410-2.4.0/gttimout.c.orig 2007-07-25 05:14:34.000000000 +0000 +++ libgcr410-2.4.0/gttimout.c 2007-07-25 05:15:13.000000000 +0000 @@ -154,7 +154,7 @@ ( (WORD32) (clock() - + (clock_t) (((float) Timing * (float) CLK_TCK / 1000.0) + 0.5))); + + (clock_t) (((float) Timing * (float) CLOCKS_PER_SEC / 1000.0) + 0.5))); } /******************************************************************************* @@ -229,7 +229,7 @@ *******************************************************************************/ float G_DECL G_UnitPerSec(void) { - return ((float) CLK_TCK); + return ((float) CLOCKS_PER_SEC); } DWORD G_DECL wait_ms(DWORD ms)
pgpdgv8rxOmLx.pgp
Description: PGP signature