Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Terminal Emulation Issue under CentOS 7 - Hack Fix

32 views
Skip to first unread message

Nivethan T

unread,
Jul 31, 2023, 12:13:46 AM7/31/23
to ScarletDME
An FYI, unfortunately I don't know enough about C to tell you why but I hacked a solution in place to get terminal emulation working in CentOS 7.

Adding this line resolves the issue of "Unrecognised terminal name" when you do a "TERM LINUX".

gplsrc/qmtermlb.c:189
```
sprintf(filename + strlen(filename), "%c%c%c%s", DS, tname[0], DS, tname);
strcpy(filename,"/usr/qmsys/terminfo/l/linux");
```

The sprintf seems to be just the directory rather than a specific file and so the magic number check further down fails.

Wols Lists

unread,
Jul 31, 2023, 3:31:10 AM7/31/23
to scarl...@googlegroups.com
Is this anything to do with the current glitch in makefile and terminfo?
Wouldn't surprise me ...

Check that the terminfo directory exists, and that the permissions on it
are correct ...

Cheers,
Wol

Donald Montaine

unread,
Jul 31, 2023, 10:36:10 AM7/31/23
to ScarletDME
Running the modified Makefile and bash script that I posted seems to fix all the install problems.  Just remember to run the bash script using sudo.

Nivethan T

unread,
Jul 31, 2023, 12:37:09 PM7/31/23
to ScarletDME
Ah, I didn't realize the Makefile fix was for 32bit as well. I thought it was just for 64bit. I'll take a look.

The terminfo directory does exist and from what I can tell the permissions look healthy. I did try running it as qmsys and had the same error about unrecognized terminal. 

This issue first cropped up in 2020 and specifically for CentOS 7 according to the changelog so it may be unrelated to the terminfo work you're working on.

Thanks

Wols Lists

unread,
Aug 1, 2023, 3:00:47 PM8/1/23
to scarl...@googlegroups.com
On 31/07/2023 17:37, Nivethan T wrote:
> Ah, I didn't realize the Makefile fix was for 32bit as well. I thought
> it was just for 64bit. I'll take a look.
>
> The terminfo directory does exist and from what I can tell the
> permissions look healthy. I did try running it as qmsys and had the same
> error about unrecognized terminal.
>
> This issue first cropped up in 2020 and specifically for CentOS 7
> according to the changelog so it may be unrelated to the terminfo work
> you're working on.

If it first appeared in 2020 then it won't be down to me ... iirc my
blunder was to reset the permissions inside the terminfo directory, so
that the linux (amongst all the rest) file was unreadable :-)

Something to do with muddling the user who compiled everything, with
root who copied everything, with qmsys who needed access ...

Cheers,
Wol
> --
> You received this message because you are subscribed to the Google
> Groups "ScarletDME" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to scarletdme+...@googlegroups.com
> <mailto:scarletdme+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/scarletdme/466ccf08-564e-4809-901a-21dedc358a00n%40googlegroups.com <https://groups.google.com/d/msgid/scarletdme/466ccf08-564e-4809-901a-21dedc358a00n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages