Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109379 - ccid-0.9.3.1 emerge fails
Summary: ccid-0.9.3.1 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-15 10:01 UTC by step
Modified: 2005-10-29 11:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for ifdhandler.c (ccid-0.9.3.1-ifdhandler.patch,296 bytes, text/plain)
2005-10-17 06:24 UTC, Steven Coutts
Details
Ebuild to use ifdhandler patch (ccid-0.9.3.1-r1.ebuild,915 bytes, text/plain)
2005-10-17 06:25 UTC, Steven Coutts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description step 2005-10-15 10:01:12 UTC
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 Steven Coutts 2005-10-15 10:07:55 UTC
I confirm I get the same error 
Comment 2 step 2005-10-15 10:49:39 UTC
i was told, that if I add a line "#include <PCSC/reader.h>" to ifdhander.c , the
ccid will compile fine.


 
 
Comment 3 Steven Coutts 2005-10-17 06:24:55 UTC
Created attachment 70845 [details]
Patch for ifdhandler.c

Patch to add #include <PCSC/reader.h> to ifdhandler.c
Comment 4 Steven Coutts 2005-10-17 06:25:22 UTC
Created attachment 70846 [details]
Ebuild to use ifdhandler patch
Comment 5 Steven Coutts 2005-10-17 06:26:01 UTC
Using this patch and ebuild it now compiles and installs on my machine.
Comment 6 Marcelo Goes (RETIRED) gentoo-dev 2005-10-29 11:50:33 UTC
Works for me too. In cvs. Thanks.