From nobody@FreeBSD.org  Wed Feb 21 18:34:20 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 824C91708F8
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2007 18:34:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id AA0DA13C4B3
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2007 18:34:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1LIYJ46040252
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2007 18:34:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1LIYJFC040251;
	Wed, 21 Feb 2007 18:34:19 GMT
	(envelope-from nobody)
Message-Id: <200702211834.l1LIYJFC040251@www.freebsd.org>
Date: Wed, 21 Feb 2007 18:34:19 GMT
From: Toomas Aas<toomas.aas@raad.tartu.ee>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Building security/opensc fails with error: `SCARD_SCOPE_GLOBAL' undeclared
X-Send-Pr-Version: www-3.0

>Number:         109400
>Category:       ports
>Synopsis:       Building security/opensc fails with error: `SCARD_SCOPE_GLOBAL' undeclared
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 21 18:40:04 GMT 2007
>Closed-Date:    Fri Feb 23 21:17:05 GMT 2007
>Last-Modified:  Fri Feb 23 21:20:03 GMT 2007
>Originator:     Toomas Aas
>Release:        6-STABLE
>Organization:
>Environment:
FreeBSD premium.kodu.lan 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Sat Jan 13 14:14:51 EET 2007     toomas@premium.kodu.lan:/usr/obj/usr/src/sys/PREMIUM  i386
>Description:
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
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Feb 21 18:40:19 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109400 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Fri Feb 23 21:16:50 UTC 2007 
State-Changed-Why:  
Fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109400 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/109400: commit references a PR
Date: Fri, 23 Feb 2007 21:16:39 +0000 (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"
 
>Unformatted:
