[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
‘pty’ module fails on FreeBSD 7.2
From: |
Ludovic Courtès |
Subject: |
‘pty’ module fails on FreeBSD 7.2 |
Date: |
Tue, 16 Mar 2010 10:52:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi Simon,
[Adding address@hidden
Simon Josefsson <address@hidden> writes:
> Simon Josefsson <address@hidden> writes:
>
>> address@hidden (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’.
- ‘pty’ module fails on FreeBSD 7.2,
Ludovic Courtès <=
- Re: ‘pty’ module fails on FreeBSD 7.2, Ralf Wildenhues, 2010/03/16
- Re: ‘pty’ module fails on FreeBSD 7.2, Ludovic Courtès, 2010/03/17
- Re: ‘pty’ module fails on FreeBSD 7.2, Eric Blake, 2010/03/17
- [PATCH 2/3] forkpty, openpty: split functions into new modules, Eric Blake, 2010/03/18
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Bruno Haible, 2010/03/18
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Eric Blake, 2010/03/18
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Simon Josefsson, 2010/03/19
- Re: [PATCH 2/3] forkpty, openpty: split functions into new modules, Eric Blake, 2010/03/19