Subject: Re: Can not compile net/tnftpd
To: Martin Husemann <martin@duskware.de>
From: Louis Guillaume <lguillaume@berklee.edu>
List: pkgsrc-users
Date: 02/28/2007 15:01:50
Martin Husemann wrote:
> On a "slightly" older SuSE Linux I am trying to install net/tnfptd, but
> compilation fails due to yacc producing bogus code:
>
> yacc ftpcmd.y
> gcc -I. -I./.. -I. -I.. -I./../libnetbsd -DHAVE_TNFTPD_H=1 -O2 -D_DEFAULT_CONFDIR=\"/usr/pkg/etc\" -c -o ftpcmd.o y.tab.c
> ftpcmd.y: In function `yyparse':
> ftpcmd.y:300: error: `epsvall' undeclared (first use in this function)
> ftpcmd.y:300: error: (Each undeclared identifier is reported only once
> ftpcmd.y:300: error: for each function it appears in.)
> ftpcmd.y:544: error: `sitetab' undeclared (first use in this function)
> ftpcmd.y: At top level:
> ftpcmd.y:1293: error: `sitetab' used prior to declaration
> ftpcmd.y:1303: warning: `check_write' was declared implicitly `extern' and later `static'
> ftpcmd.y:896: warning: previous declaration of `check_write'
> ftpcmd.y:1304: warning: `help' was declared implicitly `extern' and later `static'
> ftpcmd.y:732: warning: previous declaration of `help'
> ftpcmd.y:1304: warning: type mismatch with previous implicit declaration
> ftpcmd.y:732: warning: previous implicit declaration of `help'
> ftpcmd.y:1304: warning: `help' was previously implicitly declared to return `int'
>
> (and some more).
>
> Yacc is invoking /usr/pkg/bin/bison -y "$@", and that bison is
>
> bison-2.3 GNU yacc(1) replacement
>
> What am I doing wrong?
>
> Martin
According to lukem,
> "It's a bug in the version of ftpcmd.y that is in tnftpd-20040810,
> which was fixed in the NetBSD sources on 2005/01/05. I intend to
> update tnftpd "soon" to incorporate this fix, amongst others."
See http://mail-index.netbsd.org/pkgsrc-users/2006/09/25/0000.html
I'd love to see this fixed too, but don't know how...
Louis