Bug 109400

Summary: Building security/opensc fails with error: `SCARD_SCOPE_GLOBAL' undeclared
Product: Ports & Packages Reporter: toomas.aas
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description toomas.aas 2007-02-21 18:40:04 UTC
While attempting to build security/opensc with pc/sc backend, build fails as follows:

 cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -I/usr/local/include -I/
usr/X11R6/include -DNO_IDEA -D_THREAD_SAFE -I/usr/local/include/PCSC -I../../src
/common -I../../src/include -I/usr/local/include -I/usr/X11R6/include -Wall -fno
-strict-aliasing -O2 -fno-strict-aliasing -pipe -march=athlon -D_THREAD_SAFE -MT
 reader-pcsc.lo -MD -MP -MF .deps/reader-pcsc.Tpo -c reader-pcsc.c  -fPIC -DPIC 
-o .libs/reader-pcsc.o
reader-pcsc.c: In function `pcsc_init':
reader-pcsc.c:720: error: `SCARD_SCOPE_GLOBAL' undeclared (first use in this fun
ction)
reader-pcsc.c:720: error: (Each undeclared identifier is reported only once
reader-pcsc.c:720: error: for each function it appears in.)
gmake[3]: *** [reader-pcsc.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/security/opensc/work/opensc-0.11.2-pre3/
src/libopensc'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/security/opensc/work/opensc-0.11.2-pre3/
src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/security/opensc/work/opensc-0.11.2-pre3'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/security/opensc.

The contents of /var/db/ports/opensc/options:

_OPTIONS_READ=opensc-0.11.2.p3
WITHOUT_OPENCT=true
WITH_PCSC=true
WITHOUT_SIGNER=true

The version of pcsc-lite I have installed is pcsc-lite-1.4.0,2

How-To-Repeat: # cd /usr/ports/security/opensc
# make configure
(deselect openct and select pcsc)
# make build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-21 18:40:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-02-23 21:16:39 UTC
ale         2007-02-23 21:16:33 UTC

  FreeBSD ports repository

  Added files:
    security/opensc/files patch-src_libopensc_reader-pcsc.c 
  Log:
  Fix build with new pcsc.
  
  PR:             ports/109400
  Submitted by:   Toomas Aas<toomas.aas@raad.tartu.ee>
  
  Revision  Changes    Path
  1.1       +19 -0     ports/security/opensc/files/patch-src_libopensc_reader-pcsc.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2007-02-23 21:16:50 UTC
State Changed
From-To: open->closed

Fixed, thanks!