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... > and this (Darwin): > > gcc -std=gnu99 -g -O2 -o telnetd telnetd.o pty.o term.o utility.o state.o > termstat.o slc.o -L../libinetutils -linetutils -L../libtelnet -ltelnet > ../lib/libgnu.a -lncurses -lutil -lresolv > Undefined symbols: > "_endutent", referenced from: > _utmp_logout in libinetutils.a(utmp_logout.o) > "_getutline", referenced from: > _utmp_logout in libinetutils.a(utmp_logout.o) > "_pututline", referenced from: > _utmp_logout in libinetutils.a(utmp_logout.o) > ld: symbol(s) not found > collect2: ld returned 1 exit status > make[2]: *** [telnetd] Error 1 > > The former is documented by Gnulib (info "(gnulib) pty.h"). Not sure > about the latter. We should not use getutent etc, but instead the utmps stuff. /Simon