Hi Jouni;<br>
<br>
Thanks for response;<br>
I&nbsp; commented out the line &quot;CONFIG_SMARTCARD&quot; and still get the same error:<br>
<br>
pcsc_funcs.c:22:22: warning: winscard.h: No such file or directory<br>
pcsc_funcs.c: In function 'scard_init':<br>
pcsc_funcs.c:215: warning: implicit declaration of function 'SCardEstablishContext'<br>
pcsc_funcs.c:215: error: 'SCARD_SCOPE_SYSTEM' undeclared (first use in this function)<br>
pcsc_funcs.c:215: error: (Each undeclared identifier is reported only once<br>
pcsc_funcs.c:215: error: for each function it appears in.)<br>
pcsc_funcs.c:217: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c:223: warning: implicit declaration of function 'SCardListReaders'<br>
pcsc_funcs.c:253: warning: implicit declaration of function 'SCardConnect'<br>
pcsc_funcs.c:253: error: 'SCARD_SHARE_SHARED' undeclared (first use in this function)<br>
pcsc_funcs.c:254: error: 'SCARD_PROTOCOL_T0' undeclared (first use in this function)<br>
pcsc_funcs.c:256: error: 'SCARD_E_NO_SMARTCARD' undeclared (first use in this function)<br>
pcsc_funcs.c:275: warning: pointer targets in passing argument 3 of '_scard_select_file' differ in signedness<br>
pcsc_funcs.c:289: warning: pointer targets in passing argument 3 of 'scard_select_file' differ in signedness<br>
pcsc_funcs.c:295: warning: pointer targets in passing argument 3 of 'scard_select_file' differ in signedness<br>
pcsc_funcs.c:303: warning: pointer targets in passing argument 3 of '_scard_select_file' differ in signedness<br>
pcsc_funcs.c:303: warning: pointer targets in passing argument 6 of '_scard_select_file' differ in signedness<br>
pcsc_funcs.c:311: warning: pointer targets in passing argument 2 of 'scard_pin_needed' differ in signedness<br>
pcsc_funcs.c: In function 'scard_deinit':<br>
pcsc_funcs.c:369: warning: implicit declaration of function 'SCardDisconnect'<br>
pcsc_funcs.c:369: error: 'SCARD_UNPOWER_CARD' undeclared (first use in this function)<br>
pcsc_funcs.c:370: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c:377: warning: implicit declaration of function 'SCardReleaseContext'<br>
pcsc_funcs.c: In function 'scard_transmit':<br>
pcsc_funcs.c:397: warning: implicit declaration of function 'SCardTransmit'<br>
pcsc_funcs.c:398: error: 'SCARD_PROTOCOL_T1' undeclared (first use in this function)<br>
pcsc_funcs.c:399: error: 'SCARD_PCI_T1' undeclared (first use in this function)<br>
pcsc_funcs.c:399: error: 'SCARD_PCI_T0' undeclared (first use in this function)<br>
pcsc_funcs.c:403: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c: In function '_scard_select_file':<br>
pcsc_funcs.c:444: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c: In function 'scard_read_file':<br>
pcsc_funcs.c:512: warning: pointer targets in passing argument 2 of 'scard_transmit' differ in signedness<br>
pcsc_funcs.c:513: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c: In function 'scard_verify_pin':<br>
pcsc_funcs.c:557: warning: pointer targets in passing argument 2 of 'scard_transmit' differ in signedness<br>
pcsc_funcs.c:558: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c: In function 'scard_get_imsi':<br>
pcsc_funcs.c:594: warning: pointer targets in passing argument 3 of 'scard_select_file' differ in signedness<br>
pcsc_funcs.c:606: warning: pointer targets in passing argument 1 of 'scard_parse_fsp_templ' differ in signedness<br>
pcsc_funcs.c:624: warning: pointer targets in passing argument 2 of 'scard_read_file' differ in signedness<br>
pcsc_funcs.c: In function 'scard_gsm_auth':<br>
pcsc_funcs.c:692: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
pcsc_funcs.c: In function 'scard_umts_auth':<br>
pcsc_funcs.c:795: error: 'SCARD_S_SUCCESS' undeclared (first use in this function)<br>
make: *** [pcsc_funcs.o] Error 1<br>
<br>
<br><br><div><span class="gmail_quote">On 6/29/06, <b class="gmail_sendername">Jouni Malinen</b> &lt;<a href="mailto:jkmaline@cc.hut.fi">jkmaline@cc.hut.fi</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Jun 29, 2006 at 06:15:38PM -0400, Andrew Barr wrote:<br><br>&gt; On Thursday 29 June 2006 18:02, James wrote:<br>&gt; &gt; Thanks for the response. I did try to diable the smart card support. I<br>&gt; &gt; define &quot;n&quot; and and try again with &quot;make clean&quot; and &quot;make&quot; and still get
<br>&gt; &gt; the same error message.<br><br>Please note these comments in the beginning of defconfig:<br><br># hostapd binary. All lines starting with # are ignored. Configuration option<br># lines must be commented out complete, if they are not to be included, 
i.e.,<br># just setting VARIABLE=n is not disabling that variable.<br><br>In other words, setting something to 'n', is _not_ disabling that<br>option.<br><br>&gt; Well, pcsc (see filename below) is a widely-used smartcard library, so
<br>&gt; something smartcard related is not getting disabled. Look at pcsc_funcs.c and<br>&gt; see if the line<br>&gt;<br>&gt; #include &lt;winscard.h&gt;<br>&gt;<br>&gt; is wrapped in any #ifdefs, like maybe:<br>&gt;<br>
&gt; #ifdef CONFIG_WINDOWS<br><br>It's not and it shouldn't be. pcsc-lite includes this header file and it<br>is used on Linux systems. I would assume that the build system did not<br>include this library and most likely this was not needed either. The
<br>correct solution for this particular problem would thus be to remove<br>(either delete or comment out) CONFIG_PCSC=y line from .config.<br><br>&gt; then add CONFIG_WINDOWS=n (or whatever) to your .config file.<br><br>
That would _enable_ CONFIG_WINDOWS (which does not exist, so this would<br>not really do anything). This issue has nothing to do with Windows code<br>being enabled or disabled.<br><br>--<br>Jouni
Malinen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PGP
id EFC895FA<br>_______________________________________________<br>HostAP mailing list<br><a href="mailto:HostAP@shmoo.com">HostAP@shmoo.com</a><br><a href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap
</a><br></blockquote></div><br>