* kermit on Redhat 5.0
@ 1998-02-28 20:08 Steve Dum
1998-02-28 21:37 ` Michal Jaegermann
0 siblings, 1 reply; 9+ messages in thread
From: Steve Dum @ 1998-02-28 20:08 UTC (permalink / raw)
Anyone have kermit running on redhat 5.0. I downloaded the redhat rpm
from columbia but had no end of problems, but it seg faults on connect.
First it wouldn't install because it required ld.so.1 and libc.so.6.
So I forced the install. Then since I had libc.so.6.1 I thought it was
worth a try so I linked libc.so.6 to libc.so.6.1, well to libc-2.0.6.so.
Next I tried linking ld.so.1 to ld.2.0.6.so. With this it almost worked.
kermit would come up, and I can set the line and baudrate, but as soon as I
say connect it segmentation faults. Looking at i386 redhat, it seems that
libc.6 was libc-2.0.5.so (maybe close enough) but ld.so is linked to an older
ld.so.1.9.5 which I don't have on the alpha.
I even tried rebuilding kermit, but the source rpm chokes badly with the new
headers.
steve
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0
1998-02-28 20:08 kermit on Redhat 5.0 Steve Dum
@ 1998-02-28 21:37 ` Michal Jaegermann
0 siblings, 0 replies; 9+ messages in thread
From: Michal Jaegermann @ 1998-02-28 21:37 UTC (permalink / raw)
>
> Anyone have kermit running on redhat 5.0. I downloaded the redhat rpm
> from columbia but had no end of problems, but it seg faults on connect.
Recompile instead of using binaries. They are likely for 4.2 and
libraries changed in 5.0 to a great degree.
Compiling kermit is no-brainer at all. Did that many times on
various platforms.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0
@ 1998-03-01 2:55 Steve Dum
1998-03-04 3:21 ` Michal Jaegermann
0 siblings, 1 reply; 9+ messages in thread
From: Steve Dum @ 1998-03-01 2:55 UTC (permalink / raw)
In message <199802282137.OAA28256@ellpspace.math.ualberta.ca>you write:
>>
>> Anyone have kermit running on redhat 5.0. I downloaded the redhat rpm
>> from columbia but had no end of problems, but it seg faults on connect.
>
>Recompile instead of using binaries. They are likely for 4.2 and
>libraries changed in 5.0 to a great degree.
>
>Compiling kermit is no-brainer at all. Did that many times on
>various platforms.
Agreed - usually. But the new libc with redhat 5.0 changed all the header
files and the versions in /usr/include/linux and /usr/include have a large
number of disagreements so things no longer compile on the alpha.
steve
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0
1998-03-04 3:21 ` Michal Jaegermann
@ 1998-03-01 5:04 ` Steve Dum
1998-03-04 5:36 ` Michal Jaegermann
0 siblings, 1 reply; 9+ messages in thread
From: Steve Dum @ 1998-03-01 5:04 UTC (permalink / raw)
To: axp-list; +Cc: steve_dum
In message <199803010321.UAA28515@ellpspace.math.ualberta.ca>you write:
>>
>I should have once again an access to Alpha with 5.0 in a day or two.
>I am willing to bet that kermit will compile with possibly a small number
>of minor tweaks (if any). It runs on too many platforms to be dependent
>on dark corners of Linux internal structures.
>
I think that new new libc has introduced a number of new dark corners.
For example compiling ckermit's ckutio.c gives about 80+ lines of errors.
One bunch come from the socket stuff - i.e.
/usr/include/linux/socket.h has
#define SOCK_STREAM 1
but /usr/include/socketbits.h has SOCK_STREAM as part of an enum
enum __socket_type
{
SOCK_STREAM = 1,
...
}
These are functionally the same but different as far as gcc is concerned.
Likewise the Address families like AF_UNIX in these files are defined just
differently enough to cause gcc to complain.
The other difference that is 'really neat' is that in
/usr/include/asm/termbits.h CBAUDEX is defined as
#define CBAUDEX 0000020
But in /usr/include/termbits.h we have
#define CBAUDEX 0000000
Kermit (at least 2 or 3 modules of it) wants to know too much about linux
internals so it ends up including some of the /usr/include/linux headers and
the mixing creates a real mess.
steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0 (well now CBAUDEX)
1998-03-04 5:36 ` Michal Jaegermann
@ 1998-03-01 6:09 ` Steve Dum
1998-03-01 16:16 ` Michal Jaegermann
0 siblings, 1 reply; 9+ messages in thread
From: Steve Dum @ 1998-03-01 6:09 UTC (permalink / raw)
To: axp-list; +Cc: steve_dum
In message <199803010536.WAA28616@ellpspace.math.ualberta.ca>you write:
>>
>Different values for CBAUDEX sound suspiciously like a headers bug.
>Comments from somebody in the know?
This is my favorite bug. I can't speak for redhat prior to 5.0 but, the 5.0
release serial driver is broken because of the definitions for CBAUDEX and
CBAUD. You can't set the serial port speed above 38,400. Trying to set it
to 56k gets you 0 baud and 115200 gets you 50 baud. I sent mail on the
hurricane list about a couple of months ago about it.
As it turns out the differences in the definitions of CBAUDEX and CBAUD
aren't in themselves fatal since I think the only code that should care is the
kernel serial driver. The part that breaks the serial driver is that the
serial driver is trying to be common code between axp and i386, but the
numbering of the baud rates are different. i386 numbers the baud rates from
0 to 15, then sets the CBAUDEX bit and goes on with 1 and 2, but the alpha
headers go 0 to 15, then sets CBAUDEX and uses 0 and 1. Guess what a
'common' source code serial driver does with this. Nothing good.
steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0 (well now CBAUDEX)
1998-03-01 6:09 ` kermit on Redhat 5.0 (well now CBAUDEX) Steve Dum
@ 1998-03-01 16:16 ` Michal Jaegermann
1998-03-02 2:45 ` Steve Dum
0 siblings, 1 reply; 9+ messages in thread
From: Michal Jaegermann @ 1998-03-01 16:16 UTC (permalink / raw)
To: axp-list
>
> >Different values for CBAUDEX sound suspiciously like a headers bug.
> >Comments from somebody in the know?
>
> This is my favorite bug. I can't speak for redhat prior to 5.0 but, the 5.0
> release serial driver is broken because of the definitions for CBAUDEX and
> CBAUD. You can't set the serial port speed above 38,400.
That likely also means that libraries are screwed. What about an old
hack of 'setserial /dev/ttyS0 spd_vhi'? I do not have a hardware at
this moment to try it out. Does that work? I hoped that we are past
that already. Sigh!
> Trying to set it
> to 56k gets you 0 baud and 115200 gets you 50 baud. I sent mail on the
> hurricane list about a couple of months ago about it.
And no corrections so far?
Michal
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0 (well now CBAUDEX)
1998-03-01 16:16 ` Michal Jaegermann
@ 1998-03-02 2:45 ` Steve Dum
0 siblings, 0 replies; 9+ messages in thread
From: Steve Dum @ 1998-03-02 2:45 UTC (permalink / raw)
To: axp-list; +Cc: steve_dum
In message <199803011616.JAA29391@ellpspace.math.ualberta.ca>you write:
>>
>That likely also means that libraries are screwed. What about an old
>hack of 'setserial /dev/ttyS0 spd_vhi'? I do not have a hardware at
>this moment to try it out. Does that work? I hoped that we are past
>that already. Sigh!
>
...
>
>And no corrections so far?
>
I didn't know about the 'old hack'. -- disadvantage of being the new kid on
the block -- So I just modified serial.c to work with the definitions
in the headers and rebuilt the kernel. Personally I
think that the right solution is to fix the headers, but that would have
meant recompiling everything that dealt with the Bxxxxx baud rate macros.
THe serial.c changes made it work great - it's just not common source with
the i386 kernel. I posted my changes and concerns to the hurricane list
and figured redhat would sort it all out - hopefully by the time redhat 5.1
comes out.
steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0
1998-03-01 2:55 kermit on Redhat 5.0 Steve Dum
@ 1998-03-04 3:21 ` Michal Jaegermann
1998-03-01 5:04 ` Steve Dum
0 siblings, 1 reply; 9+ messages in thread
From: Michal Jaegermann @ 1998-03-04 3:21 UTC (permalink / raw)
>
> Agreed - usually. But the new libc with redhat 5.0 changed all the header
> files and the versions in /usr/include/linux and /usr/include have a large
> number of disagreements so things no longer compile on the alpha.
Hm, I wonder why I was so lucky that I managed to compile the whole
pile of various stuff. Some of it quite sizeable.
Somebody also compiled all these things which went into 5.0
distribution. Granted, some of these are broken but most is not.
And broken things can be fixed.
I should have once again an access to Alpha with 5.0 in a day or two.
I am willing to bet that kermit will compile with possibly a small number
of minor tweaks (if any). It runs on too many platforms to be dependent
on dark corners of Linux internal structures.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kermit on Redhat 5.0
1998-03-01 5:04 ` Steve Dum
@ 1998-03-04 5:36 ` Michal Jaegermann
1998-03-01 6:09 ` kermit on Redhat 5.0 (well now CBAUDEX) Steve Dum
0 siblings, 1 reply; 9+ messages in thread
From: Michal Jaegermann @ 1998-03-04 5:36 UTC (permalink / raw)
To: axp-list
>
> For example compiling ckermit's ckutio.c gives about 80+ lines of errors.
> One bunch come from the socket stuff - i.e.
> /usr/include/linux/socket.h has
^^^^^^^
In general you should not be using this file. This is for kernel
and not user space programs. There are things which have to know
kernel structures but not all of them.
> #define SOCK_STREAM 1
> but /usr/include/socketbits.h has SOCK_STREAM as part of an enum
> enum __socket_type
> {
> SOCK_STREAM = 1,
> ...
> }
>
> These are functionally the same but different as far as gcc is concerned.
Right. So why do you want them both?
> Kermit (at least 2 or 3 modules of it) wants to know too much about linux
> internals
Well, these are those tweaks. :-) Kermit assumed libc5 for Linux. Looks
like some adjustments will be needed.
Different values for CBAUDEX sound suspiciously like a headers bug.
Comments from somebody in the know?
Michal
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1998-03-04 3:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-01 2:55 kermit on Redhat 5.0 Steve Dum
1998-03-04 3:21 ` Michal Jaegermann
1998-03-01 5:04 ` Steve Dum
1998-03-04 5:36 ` Michal Jaegermann
1998-03-01 6:09 ` kermit on Redhat 5.0 (well now CBAUDEX) Steve Dum
1998-03-01 16:16 ` Michal Jaegermann
1998-03-02 2:45 ` Steve Dum
-- strict thread matches above, loose matches on Subject: below --
1998-02-28 20:08 kermit on Redhat 5.0 Steve Dum
1998-02-28 21:37 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox