Bug 109379 - ccid-0.9.3.1 emerge fails
Bug#: 109379 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: crypto@gentoo.org Reported By: step@step.ee
Component: Ebuilds
URL: 
Summary: ccid-0.9.3.1 emerge fails
Keywords:  
Status Whiteboard: 
Opened: 2005-10-15 10:01 0000
Description:   Opened: 2005-10-15 10:01 0000
app-crypt/ccid-0.9.3.1 failed


...
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/ccid-0.9.3.1/work/ccid-0.9.3.orig'
Making all in aclocal
make[2]: Entering directory
`/var/tmp/portage/ccid-0.9.3.1/work/ccid-0.9.3.orig/aclocal'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/var/tmp/portage/ccid-0.9.3.1/work/ccid-0.9.3.orig/aclocal'
Making all in src
make[2]: Entering directory `/var/tmp/portage/ccid-0.9.3.1/work/ccid-0.9.3.orig/src'
if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..    -pthread -I/usr/include/PCSC   -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-ccid.lo -MD -MP -MF ".deps/libccid_la-ccid.Tpo" -c -o
libccid_la-ccid.lo `test -f 'ccid.c' || echo './'`ccid.c; \
then mv -f ".deps/libccid_la-ccid.Tpo" ".deps/libccid_la-ccid.Plo"; else rm -f
".deps/libccid_la-ccid.Tpo"; exit 1; fi
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/PCSC
-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-ccid.lo -MD -MP -MF .deps/libccid_la-ccid.Tpo -c ccid.c  -fPIC -DPIC
-o .libs/libccid_la-ccid.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/PCSC
-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-ccid.lo -MD -MP -MF .deps/libccid_la-ccid.Tpo -c ccid.c -o
libccid_la-ccid.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..    -pthread -I/usr/include/PCSC   -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-commands.lo -MD -MP -MF ".deps/libccid_la-commands.Tpo" -c -o
libccid_la-commands.lo `test -f 'commands.c' || echo './'`commands.c; \
then mv -f ".deps/libccid_la-commands.Tpo" ".deps/libccid_la-commands.Plo"; else
rm -f ".deps/libccid_la-commands.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/PCSC
-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-commands.lo -MD -MP -MF .deps/libccid_la-commands.Tpo -c commands.c 
-fPIC -DPIC -o .libs/libccid_la-commands.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/PCSC
-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-commands.lo -MD -MP -MF .deps/libccid_la-commands.Tpo -c commands.c
-o libccid_la-commands.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..    -pthread -I/usr/include/PCSC   -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-ifdhandler.lo -MD -MP -MF ".deps/libccid_la-ifdhandler.Tpo" -c -o
libccid_la-ifdhandler.lo `test -f 'ifdhandler.c' || echo './'`ifdhandler.c; \
then mv -f ".deps/libccid_la-ifdhandler.Tpo" ".deps/libccid_la-ifdhandler.Plo";
else rm -f ".deps/libccid_la-ifdhandler.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/PCSC
-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -MT
libccid_la-ifdhandler.lo -MD -MP -MF .deps/libccid_la-ifdhandler.Tpo -c
ifdhandler.c  -fPIC -DPIC -o .libs/libccid_la-ifdhandler.o
ifdhandler.c: In function `IFDHGetCapabilities':
ifdhandler.c:247: error: `SCARD_ATTR_ATR_STRING' undeclared (first use in this
function)
ifdhandler.c:247: error: (Each undeclared identifier is reported only once
ifdhandler.c:247: error: for each function it appears in.)
make[2]: *** [libccid_la-ifdhandler.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/ccid-0.9.3.1/work/ccid-0.9.3.orig/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ccid-0.9.3.1/work/ccid-0.9.3.orig'
make: *** [all] Error 2

!!! ERROR: app-crypt/ccid-0.9.3.1 failed.
!!! Function src_compile, Line 556, Exitcode 2
!!! emake failed


Reproducible: Always
Steps to Reproduce:
1. emerge app-crypt/ccid

------- Comment #1 From Steven Coutts 2005-10-15 10:07:55 0000 -------
I confirm I get the same error 

------- Comment #2 From step 2005-10-15 10:49:39 0000 -------
i was told, that if I add a line "#include <PCSC/reader.h>" to ifdhander.c ,
the
ccid will compile fine.





------- Comment #3 From Steven Coutts 2005-10-17 06:24:55 0000 -------
Created an attachment (id=70845) [details]
Patch for ifdhandler.c

Patch to add #include <PCSC/reader.h> to ifdhandler.c

------- Comment #4 From Steven Coutts 2005-10-17 06:25:22 0000 -------
Created an attachment (id=70846) [details]
Ebuild to us ifdhandler patch

------- Comment #5 From Steven Coutts 2005-10-17 06:26:01 0000 -------
Using this patch and ebuild it now compiles and installs on my machine.

------- Comment #6 From Marcelo Goes 2005-10-29 11:50:33 0000 -------
Works for me too. In cvs. Thanks.