• Bug#265504: etoken: FTBFS: wintypes.h: No such file or directory

    From Andreas Jochens@1:229/2 to All on Fri Aug 13 15:40:07 2004
    From: [email protected]

    Package: etoken
    Severity: normal
    Tags: patch

    When building 'etoken' I get the following error:

    make[1]: Entering directory `/etoken-0.3.9'
    gcc -I/usr/include -Wall -Werror -g -fPIC -I. -c -o ifdhandler.o ifdhandler.c ifdhandler.c:1:22: wintypes.h: No such file or directory
    ifdhandler.c:2:22: pcsclite.h: No such file or directory
    In file included from ifdhandler.c:9:
    ifdhandler.h:28: error: parse error before "LPSTR"
    ifdhandler.h:28: warning: no semicolon at end of struct or union ifdhandler.h:29: warning: type defaults to `int' in declaration of `IFD_Type' ifdhandler.h:29: warning: data definition has no type or storage class ifdhandler.h:30: error: parse error before "IFD_Version"

    With the attached patch 'etoken' can be compiled.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/etoken-0.3.9/etoken.c ./etoken.c
    --- ../tmp-orig/etoken-0.3.9/etoken.c 2003-01-08 18:54:28.000000000 +0100
    +++ ./etoken.c 2004-08-13 08:59:03.270213865 +0200
    @@ -1,5 +1,5 @@
    -#include <wintypes.h>
    -#include <pcsclite.h>
    +#include <PCSC/wintypes.h>
    +#include <PCSC/pcsclite.h>
    #include <usb.h>
    #include <stdio.h>
    #include <string.h>
    diff -urN ../tmp-orig/etoken-0.3.9/ifdhandler.c ./ifdhandler.c
    --- ../tmp-orig/etoken-0.3.9/ifdhandler.c 2003-03-13 22:21:34.000000000 +0100
    +++ ./ifdhandler.c 2004-08-13 08:57:59.776866321 +0200
    @@ -1,5 +1,5 @@
    -#include <wintypes.h>
    -#include <pcsclite.h>
    +#include <PCSC/wintypes.h>
    +#include <PCSC/pcsclite.h>
    #include <usb.h>
    #include <stdio.h>
    #include <string.h>
    diff -urN ../tmp-orig/etoken-0.3.9/ifdhandler.h ./ifdhandler.h
    --- ../tmp-orig/etoken-0.3.9/ifdhandler.h 2004-08-13 08:59:56.709089921 +0200
    +++ ./ifdhandler.h 2004-08-13 08:58:31.458050049 +0200
    @@ -25,10 +25,10 @@
    typedef struct _DEVICE_CAPABILITIES
    {

    - LPSTR Vendor_Name; /* Tag 0x0100 */
    - LPSTR IFD_Type;