From nobody@FreeBSD.org  Thu Jan  8 10:54:26 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EC04D106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Jan 2009 10:54:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id DA6BA8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Jan 2009 10:54:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n08AsPo8060683
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 8 Jan 2009 10:54:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n08AsPl6060653;
	Thu, 8 Jan 2009 10:54:25 GMT
	(envelope-from nobody)
Message-Id: <200901081054.n08AsPl6060653@www.freebsd.org>
Date: Thu, 8 Jan 2009 10:54:25 GMT
From: Peter Vereshagin <peter@vereshagin.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/pinentry lacks on no_argument type
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         130292
>Category:       ports
>Synopsis:       security/pinentry lacks on no_argument type
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 08 11:00:10 UTC 2009
>Closed-Date:    Fri Jan 09 08:14:21 UTC 2009
>Last-Modified:  Fri Jan 09 08:14:21 UTC 2009
>Originator:     Peter Vereshagin
>Release:        7.1-prerelease
>Organization:
Private
>Environment:
FreeBSD screwed.box 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Fri Jan  2 15:03:09 SAMT 2009     toor@screwed.box:/usr/local/src/sys/i386/compile/OPER  i386
>Description:
port security/pinentry fails to compile with this message:
cc -DHAVE_CONFIG_H -I. -I..  -I../assuan -I../secmem  -I/usr/local/include -I/usr/local/include  -I/usr/local/include -D_GETOPT_H -Wall  -O2 -fno-strict-aliasing -pipe -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign -MT pinentry.o -MD -MP -MF .deps/pinentry.Tpo -c -o pinentry.o pinentry.c
pinentry.c: In function 'pinentry_parse_opts':
pinentry.c:464: error: array type has incomplete element type
pinentry.c:465: error: 'no_argument' undeclared (first use in this function)
pinentry.c:465: error: (Each undeclared identifier is reported only once
pinentry.c:465: error: for each function it appears in.)
pinentry.c:466: error: 'required_argument' undeclared (first use in this function)
pinentry.c:479: warning: implicit declaration of function 'getopt_long'
pinentry.c:464: warning: unused variable 'opts'
*** Error code 1


>How-To-Repeat:
cd /usr/ports/security/pinentry
make clean all
>Fix:
getopt.h refers the no_argument and required_argument as constants, not type definitions.
Got stuck to find out these typedefs.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Jan 8 13:01:00 UTC 2009 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130292 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Thu Jan 8 13:01:08 UTC 2009 
State-Changed-Why:  
Cannot reproduce. 

Are you sure where aren't multiple getopt.h headers on your machine? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130292 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Fri Jan 9 08:13:57 UTC 2009 
State-Changed-Why:  
Submitter confirms the problem was caused by the libgnugetopt package installed 
on his system. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130292 
>Unformatted:
