Project

General

Profile

Actions

Bug #1539

closed

screen reports "Must be connected to a terminal"

Added by corecode about 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Something changed between 2.2 and 2.4 so that the screen binary reports
"Must be connected to a terminal" when invoked from an ssh tty. We need
to preserve binary compatibility.

Actions #1

Updated by alexh about 15 years ago

A ktrace of the old screen binary is needed, at least.

Cheers,
Alex Hornung

Actions #2

Updated by dennis.melentyev about 15 years ago

2009/9/28 Alex Hornung (via DragonFly issue tracker)
<>:

Alex Hornung <> added the comment:

A ktrace of the old screen binary is needed, at least.

For me, sudo and many other packages failed with same error message
after upgrade from 2.3.x until got rebuilt/reinstalled.
Could it be you have ssh from pkgsrc or world not in sync with recent
kernel (pty98 works, I guess).

Actions #3

Updated by alexh about 15 years ago

Dennis, I don't understand what you are trying to say.
What does sudo have to do with ptys? What does my ssh to do with not having
something in sync?
Fact is that I'd need a ktrace or even better, an old binary, showing the
symptoms.

Cheers,
Alex Hornung

Actions #4

Updated by alexh about 15 years ago

Seems that the problem is due to having an old libc.so.6 present on the system.
As the old screen binary was linked against libc.so.6, it is using the outdated
implementation of ttyname() which no longer is valid due to the dynamic nature
of the ttys now.
Valid solutions are:
- Recompiling screen and similar programs
- remove old libc.so.6 and make symlink libc.so.6 -> libc.so.7

As for maintaining binary compatibility, this has been discussed before and it
has been ok'ed to not keep binary compatibility for devname and ttyname.

Cheers,
Alex Hornung

Actions #5

Updated by dennis.melentyev about 15 years ago

Hi Alex,

2009/9/30 Alex Hornung (via DragonFly issue tracker)
<>:

Alex Hornung <> added the comment:

Dennis, I don't understand what you are trying to say.
What does sudo have to do with ptys? What does my ssh to do with not having
something in sync?

Well, I have only an idea of the problem background. So sorry if I
mistaken the name of tty-related tasks. Looks like you've already
found the solution (libc 6->7).

Sorry, has no old files anymore.

Actions

Also available in: Atom PDF