Bug #1539

screen reports "Must be connected to a terminal"

Added by corecode almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

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.

History

#1 Updated by alexh almost 5 years ago

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

Cheers,
Alex Hornung

#2 Updated by dennis.melentyev almost 5 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).

#3 Updated by alexh almost 5 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

#4 Updated by alexh almost 5 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

#5 Updated by dennis.melentyev almost 5 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.

Also available in: Atom PDF