Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2009 10:54:25 GMT
From:      Peter Vereshagin <peter@vereshagin.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/130292: security/pinentry lacks on no_argument type
Message-ID:  <200901081054.n08AsPl6060653@www.freebsd.org>
Resent-Message-ID: <200901081100.n08B0AJ6091337@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130292
>Category:       ports
>Synopsis:       security/pinentry lacks on no_argument type
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 08 11:00:10 UTC 2009
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901081054.n08AsPl6060653>