Subject: tnftpd on Linux and needing a yacc
To: None <lukem@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/02/2004 10:59:39
Using pkgsrc/net/tnftpd under Linux failed:

gcc -I. -I./.. -I. -I..  -I./../libnetbsd -DHAVE_TNFTPD_H=1 -g -s
-D_DEFAULT_CONFDIR=\"/etc\"  -c ftpd.c
yacc -d ftpcmd.y
bmake: exec(yacc) failed (No such file or directory)
*** Error code 1

Stop.
bmake: stopped in
/scratch/pkgsrc/net/tnftpd/work.puget/tnftpd-20031217/src

So I added:

USE_GNU_TOOLS+=		yacc

And then "bmake clean" followed by bmake failed again:

yacc -d ftpcmd.y
gcc -I. -I./.. -I. -I..  -I./../libnetbsd -DHAVE_TNFTPD_H=1 -g -s
-D_DEFAULT_CONFDIR=\"/etc\"  -c -o ftpcmd.o y.tab.c
gcc: y.tab.c: No such file or directory
gcc: no input files
*** Error code 1


I see your todo says:

  use @YACC@ explictly in src/Makefile.in, instead of the host yacc?
  or just nuke the AC_PROG_YACC stuff entirely?

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.

I have GNU bison 1.875 at /usr/bin/bison. (I could install byacc if
needed, but this bison should be good enough.)

Any ideas?

   Jeremy C. Reed
   http://bsd.reedmedia.net/