Subject: Re: tnftpd on Linux and needing a yacc
To: Jeremy C. Reed <reed@reedmedia.net>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-pkg
Date: 04/03/2004 11:04:16
--Rrd1FBYt5NX8iyQT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Apr 02, 2004 at 10:59:39AM -0800, Jeremy C. Reed wrote:
  | Using pkgsrc/net/tnftpd under Linux failed:
  |=20
  | gcc -I. -I./.. -I. -I..  -I./../libnetbsd -DHAVE_TNFTPD_H=3D1 -g -s
  | -D_DEFAULT_CONFDIR=3D\"/etc\"  -c ftpd.c
  | yacc -d ftpcmd.y
  | bmake: exec(yacc) failed (No such file or directory)
  | *** Error code 1
  |=20
  | Stop.
  | bmake: stopped in
  | /scratch/pkgsrc/net/tnftpd/work.puget/tnftpd-20031217/src
  |=20
  | So I added:
  |=20
  | USE_GNU_TOOLS+=3D		yacc
  |=20
  | And then "bmake clean" followed by bmake failed again:
  |=20
  | yacc -d ftpcmd.y
  | gcc -I. -I./.. -I. -I..  -I./../libnetbsd -DHAVE_TNFTPD_H=3D1 -g -s
  | -D_DEFAULT_CONFDIR=3D\"/etc\"  -c -o ftpcmd.o y.tab.c
  | gcc: y.tab.c: No such file or directory
  | gcc: no input files
  | *** Error code 1
  |=20
  |=20
  | I see your todo says:
  |=20
  |   use @YACC@ explictly in src/Makefile.in, instead of the host yacc?
  |   or just nuke the AC_PROG_YACC stuff entirely?
  |=20
  | It appears to be using /usr/share/mk/yacc.mk and probably other
  | /usr/share/mk/*.mk files as installed from mk-files-1.3.2 package.
  |=20
  | I have GNU bison 1.875 at /usr/bin/bison. (I could install byacc if
  | needed, but this bison should be good enough.)
  |=20
  | Any ideas?

Is "GNU yacc" (bison ?) trying to be "helpful" and name the files
as foo.[ch] from foo.y, instead of y.tab.c/y.tab.h ?

--Rrd1FBYt5NX8iyQT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAbg2QpBhtmn8zJHIRAi9YAKCSVDMUKqgPmD3lIqsjQHAYunwDrQCfYCBh
im9QgD0zmIP26mhcHamtY9A=
=SDlh
-----END PGP SIGNATURE-----

--Rrd1FBYt5NX8iyQT--