First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 202840
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Martin Jackson (RETIRED) <mjolnir@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Eric Lesage <erl-dev@altus.qc.ca>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ckermit-8.0.211-r2.ebuild ebuild which fixes the problem text/plain Eric Lesage 2007-12-20 03:13 0000 1.53 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 202840 depends on: Show dependency tree
Show dependency graph
Bug 202840 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-20 03:12 0000
ckermit (kermit) cannot spawn ssh, reporting
"No such file or directory" altough no file
or directory appears related.


Reproducible: Always

Steps to Reproduce:
$ kermit
> ssh myhost

Actual Results:  
: No such file or directory

Expected Results:  
Kermit should use be able to swawn ssh to connect to the remote system.

This bug happens when kermit searches for a way to allocate a pseudoterminal.

On systems without the classical BSD ptys (kernel option), this needs the
/dev/ptmx device and a call to grantpt. Unfortunately the ckermit is set not
to try this method unless it can first find grantpt in /usr/include/stdlib.h
(using a grep!); only then does it check for the presence of /dev/ptmx and
configures itself for either classical ptys or the UNIX98 ptys.

On amd64 systems, this does not work because of the multilib setup
(/usr/include/stdlib.h is almost empty).

I'll be attaching a ebuild which fixes the makefile.


Second problem: when using /dev/ptmx, kermit uses the ptsname system function.
However this function is not declared in stdlib.h unless _XOPEN_SOURCE or
_GNU_SOURCE are defined. Therefore the wrong prototype is assumed, and the
pointer returned is truncated to 32 bits. So the included ebuild patches
the makefile to define _XOPEN_SOURCE and _BSD_SOURCE (then required for the
CRTSCTS define).

------- Comment #1 From Eric Lesage 2007-12-20 03:13:53 0000 -------
Created an attachment (id=138945) [edit]
ebuild which fixes the problem

Ugly, but works (tested here).

------- Comment #2 From Martin Jackson (RETIRED) 2007-12-22 14:55:19 0000 -------
Committed, thanks.  SSH still works on x86 with this setup, too!

First Last Prev Next    No search results available      Search page      Enter new bug