Subject: Re: net/tnftpd fails to build on Linux
To: None <pkgsrc-users@netbsd.org, lukem@netbsd.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: pkgsrc-users
Date: 09/25/2006 16:16:50
--4nn+A2p41ba1mxGd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Sep 18, 2006 at 08:51:06PM +0200, Joerg Sonnenberger wrote:
| On Mon, Sep 18, 2006 at 02:04:06PM -0400, Louis Guillaume wrote:
| > yacc ftpcmd.y
| > gcc -I. -I./.. -I. -I.. -I./../libnetbsd -DHAVE_TNFTPD_H=3D1 -O2
| > -D_DEFAULT_CONFDIR=3D\"/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:1303: warning: static declaration of 'check_write' follows
| > non-static declaration
| > ftpcmd.y:423: warning: previous implicit declaration of 'check_write'
| > was here
| > ftpcmd.y:1304: error: conflicting types for 'help'
| > ftpcmd.y:544: error: previous implicit declaration of 'help' was here
| > ftpcmd.y:1305: error: conflicting types for 'port_check'
| > ftpcmd.y:258: error: previous implicit declaration of 'port_check' wa=
s here
| > *** Error code 1
|=20
| Thanks, as you have confirmed this is a difference between BSD yacc and
| GNU bison, which seem to order the blocks differently and therefore see
| the declaration e.g. of epsvall too late.
|=20
| I've CCed Luke, who's the author and should be able to easily fix it.
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.
--4nn+A2p41ba1mxGd
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)
iD8DBQFFF3RSpBhtmn8zJHIRAlpzAKC3ilCmPCcrvvQU6e2KTBqB53UHhgCeJgJB
MpczFVsFBwvu5/ycltjZ+fw=
=AMxb
-----END PGP SIGNATURE-----
--4nn+A2p41ba1mxGd--