<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by astrame</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Tue, 20 Oct 2026 17:17:16 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Ubuntu installing pyscard - gcc failed</title>
            <link>http://forum.lowyat.net/topic/1077919</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;I am new to ubuntu. I am trying to install the pyscard module of python and I am getting an error message.  I already have gcc, swig and pcsc-lite installed. The command I used to install was from the README of pyscard (exact command is  :  /usr/bin/python setup.py build_ext install ). The error message i got is given below. In the last line it is written that gcc failed. So I checked for gcc version by using &amp;quot;gcc-v&amp;quot;. This gave the version number as GCC4.2.3. When I type only gcc on the terminal than there is an error message saying that no file gcc exist. &lt;br /&gt;&lt;br /&gt;ERROR MESSAGE :&lt;br /&gt;&lt;br /&gt;mini2@mini2:~/Documents/HBOT/pyscard-1.6.7&amp;#036; /usr/bin/python setup.py build_ext install &lt;br /&gt;running build_ext&lt;br /&gt;building &amp;#39;smartcard.scard._scard&amp;#39; extension&lt;br /&gt;swigging smartcard/scard/scard.i to smartcard/scard/scard_wrap.c&lt;br /&gt;swig -python -outdir smartcard/scard -DPCSCLITE -o smartcard/scard/scard_wrap.c smartcard/scard/scard.i&lt;br /&gt;gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPCSCLITE=1 -Ismartcard/scard/ -I/usr/include/PCSC -I/usr/include/python2.5 -c smartcard/scard/helpers.c -o build/temp.linux-i686-2.5/smartcard/scard/helpers.o&lt;br /&gt;smartcard/scard/helpers.c:28:22: error: winscard.h: No such file or directory&lt;br /&gt;In file included from smartcard/scard/helpers.c:35:&lt;br /&gt;smartcard/scard/helpers.h:47: error: expected specifier-qualifier-list before ‘SCARDCONTEXT’&lt;br /&gt;smartcard/scard/helpers.h:52: error: expected specifier-qualifier-list before ‘SCARD_READERSTATE’&lt;br /&gt;smartcard/scard/helpers.h:60: error: expected specifier-qualifier-list before ‘SCARDCONTEXT’&lt;br /&gt;smartcard/scard/helpers.h:67: error: expected specifier-qualifier-list before ‘SCARDCONTEXT’&lt;br /&gt;smartcard/scard/helpers.h:94: error: expected ‘)’ before ‘source’&lt;br /&gt;smartcard/scard/helpers.h:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SCardHelper_PyScardContextToSCARDCONTEXT’&lt;br /&gt;smartcard/scard/helpers.h:98: error: expected ‘)’ before ‘source’&lt;br /&gt;smartcard/scard/helpers.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SCardHelper_PyScardHandleToSCARDHANDLE’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘_ReaderStateFromTuple’:&lt;br /&gt;smartcard/scard/helpers.c:95: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:96: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:101: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:101: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:102: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:106: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PyGuidListToGUIDLIST’:&lt;br /&gt;smartcard/scard/helpers.c:409: error: ‘GUIDLIST’ has no member named ‘hcontext’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_AppendReaderStateListToPyObject’:&lt;br /&gt;smartcard/scard/helpers.c:488: error: ‘READERSTATELIST’ has no member named ‘cRStates’&lt;br /&gt;smartcard/scard/helpers.c:489: error: ‘READERSTATELIST’ has no member named ‘cRStates’&lt;br /&gt;smartcard/scard/helpers.c:499: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:500: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:501: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:502: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:504: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PyReaderStateListToREADERSTATELIST’:&lt;br /&gt;smartcard/scard/helpers.c:585: error: ‘READERSTATELIST’ has no member named ‘cRStates’&lt;br /&gt;smartcard/scard/helpers.c:587: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:587: error: ‘SCARD_READERSTATE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:587: error: (Each undeclared identifier is reported only once&lt;br /&gt;smartcard/scard/helpers.c:587: error: for each function it appears in.)&lt;br /&gt;smartcard/scard/helpers.c:588: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:595: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:596: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:599: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:614: error: ‘READERSTATELIST’ has no member named ‘aszReaderNames’&lt;br /&gt;smartcard/scard/helpers.c:616: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PrintReaderStateList’:&lt;br /&gt;smartcard/scard/helpers.c:633: error: ‘READERSTATELIST’ has no member named ‘cRStates’&lt;br /&gt;smartcard/scard/helpers.c:636: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:637: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:638: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:639: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:640: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:642: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:646: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:646: error: ‘SCARD_STATE_UNAWARE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:650: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:650: error: ‘SCARD_STATE_IGNORE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:654: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:654: error: ‘SCARD_STATE_CHANGED’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:658: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:658: error: ‘SCARD_STATE_UNKNOWN’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:662: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:662: error: ‘SCARD_STATE_UNAVAILABLE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:666: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:666: error: ‘SCARD_STATE_EMPTY’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:670: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:670: error: ‘SCARD_STATE_PRESENT’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:674: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:674: error: ‘SCARD_STATE_ATRMATCH’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:678: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:678: error: ‘SCARD_STATE_EXCLUSIVE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:682: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:682: error: ‘SCARD_STATE_INUSE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c:686: error: ‘READERSTATELIST’ has no member named ‘ars’&lt;br /&gt;smartcard/scard/helpers.c:686: error: ‘SCARD_STATE_MUTE’ undeclared (first use in this function)&lt;br /&gt;smartcard/scard/helpers.c: At top level:&lt;br /&gt;smartcard/scard/helpers.c:699: error: expected ‘)’ before ‘source’&lt;br /&gt;smartcard/scard/helpers.c:738: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SCardHelper_PyScardContextToSCARDCONTEXT’&lt;br /&gt;smartcard/scard/helpers.c:769: error: expected ‘)’ before ‘source’&lt;br /&gt;smartcard/scard/helpers.c:808: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SCardHelper_PyScardHandleToSCARDHANDLE’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_AppendStringToPyObject’:&lt;br /&gt;smartcard/scard/helpers.c:917: error: ‘STRING’ has no member named ‘sz’&lt;br /&gt;smartcard/scard/helpers.c:919: error: ‘STRING’ has no member named ‘sz’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PyStringToString’:&lt;br /&gt;smartcard/scard/helpers.c:986: error: ‘STRING’ has no member named ‘sz’&lt;br /&gt;smartcard/scard/helpers.c:987: error: ‘STRING’ has no member named ‘sz’&lt;br /&gt;smartcard/scard/helpers.c:993: error: ‘STRING’ has no member named ‘sz’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PrintString’:&lt;br /&gt;smartcard/scard/helpers.c:1008: error: ‘STRING’ has no member named ‘sz’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_AppendStringListToPyObject’:&lt;br /&gt;smartcard/scard/helpers.c:1031: error: ‘STRINGLIST’ has no member named ‘ac’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PyStringListToStringList’:&lt;br /&gt;smartcard/scard/helpers.c:1143: error: ‘STRINGLIST’ has no member named ‘hcontext’&lt;br /&gt;smartcard/scard/helpers.c:1147: error: ‘STRINGLIST’ has no member named ‘ac’&lt;br /&gt;smartcard/scard/helpers.c:1148: error: ‘STRINGLIST’ has no member named ‘ac’&lt;br /&gt;smartcard/scard/helpers.c:1155: error: ‘STRINGLIST’ has no member named ‘ac’&lt;br /&gt;smartcard/scard/helpers.c:1165: error: ‘STRINGLIST’ has no member named ‘ac’&lt;br /&gt;smartcard/scard/helpers.c: In function ‘SCardHelper_PrintStringList’:&lt;br /&gt;smartcard/scard/helpers.c:1177: error: ‘STRINGLIST’ has no member named ‘ac’&lt;br /&gt;error: command &amp;#39;gcc&amp;#39; failed with exit status 1&lt;br /&gt;mini2@mini2:~/Documents/HBOT/pyscard-1.6.7&amp;#036; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you for your help. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>astrame</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Sun, 28 Jun 2009 04:41:16 +0800</pubDate>
        </item>
    </channel>
</rss>
