Hi Simon, [Adding bug-gnu...@gnu.org.]
Simon Josefsson <si...@josefsson.org> writes: > Simon Josefsson <si...@josefsson.org> writes: > >> l...@gnu.org (Ludovic Courtès) writes: >> >>> Next one is this (FreeBSD): >>> >>> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib >>> -I../libinetutils -g -O2 -c pty.c >>> pty.c:24:17: error: pty.h: No such file or directory >>> pty.c: In function 'startslave': >>> pty.c:55: warning: implicit declaration of function 'forkpty' >>> gmake[2]: *** [pty.o] Error 1 >> >> I recall posting a patch about this to gnulib some time ago, I also >> tried building inetutils under Mac OS X. I'll see if I can find it... > > Here it is: > > http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/19822 > > But inetutils already have the pty module... can you debug why pty.h > isn't created? On Darwin, it’s created and everything goes well. On FreeBSD, we have this (from <http://hydra.nixos.org/build/325765>): --8<---------------cut here---------------start------------->8--- checking pty.h usability... no checking pty.h presence... no checking for pty.h... no [...] checking whether forkpty is declared... no checking whether forkpty is declared... (cached) no configure: WARNING: Cannot find forkpty, build will likely fail checking for library containing forkpty... -lutil [...] gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -g -O2 -c pty.c pty.c:24:17: error: pty.h: No such file or directory pty.c: In function 'startslave': pty.c:55: warning: implicit declaration of function 'forkpty' gmake[2]: *** [pty.o] Error 1 --8<---------------cut here---------------end--------------->8--- and lib/pty.h isn’t created, presumably because $(PTY_H) remains empty. Looking at pty.m4, I’m wondering whether the second ‘AC_CHECK_DECL([forkpty]...])’ is actually performed; it seems that ‘configure’ just reuses the value from the previous check. Thus, if ‘forkpty’ is declared in <libutil.h>, it’s never found. Thanks, Ludo’.