BUG: yafc 1.1.1_0 fails to build on Mac OS X 10.4.11 Tiger
I tried to compile it on Mac os X 10.4.11 but i go# port install yafc
---> Fetching yafc
---> Verifying checksum(s) for yafc
---> Extracting yafc
---> Applying patches to yafc
---> Configuring yafc
---> Building yafc with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_yafc/work/yafc-1.1.1" && make all " returned error 2
Command output: if /usr/bin/gcc-4.0 -DSYSCONFDIR=\"/opt/local/etc\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I. -I../lib -I../src/ftp -I../src/libmhe -I/opt/local/include -I/opt/local/include -O2 -MT fxp.o -MD -MP -MF ".deps/fxp.Tpo" -c -o fxp.o fxp.c; \
then mv -f ".deps/fxp.Tpo" ".deps/fxp.Po"; else rm -f ".deps/fxp.Tpo"; exit 1; fi
if /usr/bin/gcc-4.0 -DSYSCONFDIR=\"/opt/local/etc\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I. -I../lib -I../src/ftp -I../src/libmhe -I/opt/local/include -I/opt/local/include -O2 -MT gvars.o -MD -MP -MF ".deps/gvars.Tpo" -c -o gvars.o gvars.c; \
then mv -f ".deps/gvars.Tpo" ".deps/gvars.Po"; else rm -f ".deps/gvars.Tpo"; exit 1; fi
if /usr/bin/gcc-4.0 -DSYSCONFDIR=\"/opt/local/etc\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I. -I../lib -I../src/ftp -I../src/libmhe -I/opt/local/include -I/opt/local/include -O2 -MT lglob.o -MD -MP -MF ".deps/lglob.Tpo" -c -o lglob.o lglob.c; \
then mv -f ".deps/lglob.Tpo" ".deps/lglob.Po"; else rm -f ".deps/lglob.Tpo"; exit 1; fi
if /usr/bin/gcc-4.0 -DSYSCONFDIR=\"/opt/local/etc\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I. -I../lib -I../src/ftp -I../src/libmhe -I/opt/local/include -I/opt/local/include -O2 -MT help.o -MD -MP -MF ".deps/help.Tpo" -c -o help.o help.c; \
then mv -f ".deps/help.Tpo" ".deps/help.Po"; else rm -f ".deps/help.Tpo"; exit 1; fi
if /usr/bin/gcc-4.0 -DSYSCONFDIR=\"/opt/local/etc\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I. -I../lib -I../src/ftp -I../src/libmhe -I/opt/local/include -I/opt/local/include -O2 -MT input.o -MD -MP -MF ".deps/input.Tpo" -c -o input.o input.c; \
then mv -f ".deps/input.Tpo" ".deps/input.Po"; else rm -f ".deps/input.Tpo"; exit 1; fi
input.c:79:22: error: termio.h: No such file or directory
input.c: In function 'getpass_hook':
input.c:92: error: storage size of 'tbuf' isn't known
input.c:92: error: storage size of 'tbufsave' isn't known
input.c:99: error: 'TCGETA' undeclared (first use in this function)
input.c:99: error: (Each undeclared identifier is reported only once
input.c:99: error: for each function it appears in.)
input.c:105: error: 'IUCLC' undeclared (first use in this function)
input.c:105: error: 'ISTRIP' undeclared (first use in this function)
input.c:105: error: 'IXON' undeclared (first use in this function)
input.c:105: error: 'IXOFF' undeclared (first use in this function)
input.c:106: error: 'ICANON' undeclared (first use in this function)
input.c:106: error: 'ISIG' undeclared (first use in this function)
input.c:106: error: 'ECHO' undeclared (first use in this function)
input.c:108: error: 'TCSETA' undeclared (first use in this function)
make[4]: * [input.o] Error 1
make[3]: * [all-recursive] Error 1
make[2]: * [all] Error 2
make[1]: * [all-recursive] Error 1
make: * [all] Error 2
Error: Status 1 encountered during processing.t:
Should be applied the same patch for darwin 9 Leopard patch-srcinput.c.diff
Unified diff of yafc portfile