[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] ‘pty’ module fails on FreeBSD 7.2
From: |
Ludovic Courtès |
Subject: |
[bug-inetutils] ‘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’.
- Re: [bug-inetutils] ‘ifconfig --help’ segfaults, (continued)
- Re: [bug-inetutils] ‘ifconfig --help’ segfaults, Ludovic Courtès, 2010/03/09
- Re: [bug-inetutils] =?utf-8?Q?=E2=80=9 8ifconfig_--help=E2=80=99?= segfaults, Sergey Poznyakoff, 2010/03/10
- Re: [bug-inetutils] ‘ifconfig --help’ segfaults, Ludovic Courtès, 2010/03/10
- [bug-inetutils] Re: ‘ifconfig --help’ segfaults, Ludovic Courtès, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Giuseppe Scrivano, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Ludovic Courtès, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Giuseppe Scrivano, 2010/03/14
- Re: [bug-inetutils] Re: ‘ifconfig --help ’ segfaults, Ludovic Courtès, 2010/03/15
- [bug-inetutils] Re: ‘ifconfig --help’ segfaults, Simon Josefsson, 2010/03/15
- [bug-inetutils] Re: ‘ifconfig --help’ segfaults, Simon Josefsson, 2010/03/15
- [bug-inetutils] ‘pty’ module fails on FreeBSD 7.2,
Ludovic Courtès <=
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Ralf Wildenhues, 2010/03/19
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Ludovic Courtès, 2010/03/17
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Simon Josefsson, 2010/03/17
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Ludovic Courtès, 2010/03/17
- [bug-inetutils] Re: ‘pty’ module fails on FreeBSD 7.2, Eric Blake, 2010/03/19
Re: [bug-inetutils] =?utf-8?b?4oCYaWZjb25maW cgLS1oZWxw4oCZ?= segfaults, Sergey Poznyakoff, 2010/03/09