* problem of protocol/talkd.h
@ 1996-04-02 19:19 yxc02740
0 siblings, 0 replies; 6+ messages in thread
From: yxc02740 @ 1996-04-02 19:19 UTC (permalink / raw)
hi, when I tried to deal with problem of "talk" in linux/axp, I found the
definition of talk message in /usr/include/protocol/talkd.h might be wrong:
the control message of talk protocol is defined as following:
(copy from /usr/include/protocol/talkd.h)
typedef struct {
u_char vers; /* protocol version */
u_char type; /* request type, see below */
u_char answer; /* not used */
u_char pad;
u_long id_num; /* message id */
struct osockaddr addr; /* old (4.3) style */
struct osockaddr ctl_addr; /* old (4.3) style */
long pid; /* caller's process id */
#define NAME_SIZE 12
char l_name[NAME_SIZE];/* caller's name */
char r_name[NAME_SIZE];/* callee's name */
#define TTY_SIZE 16
char r_tty[TTY_SIZE];/* callee's tty name */
} CTL_MSG;
The message id id_num and process id pid are defined as long. They are
incompatible with 32-bit machine which has 32-bit long int. I has checked the
same file in DUNIX, and found they are defined as u_int and int instead of
long.
I think this is a mistake and will cause problem to talk, is that true?
yansong chen
yxc02740@bayou.uh.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem of protocol/talkd.h
@ 1996-04-03 2:50 David Mosberger-Tang
0 siblings, 0 replies; 6+ messages in thread
From: David Mosberger-Tang @ 1996-04-03 2:50 UTC (permalink / raw)
>>>>> On Tue, 2 Apr 1996 13:19:14 -0600 (CST), (cosc1) 95h02740 <yxc02740@Bayou.UH.EDU> said:
Yansong> hi, when I tried to deal with problem of "talk" in
Yansong> linux/axp, I found the definition of talk message in
Yansong> /usr/include/protocol/talkd.h might be wrong: the control
Yansong> message of talk protocol is defined as following:
I thought we had talk fixed and that there is an RPM of a working
talk. According to the libc ChangeLog file, the header files got
fixed on Feb 17. Have you tried newer versions of talk?
--david
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem of protocol/talkd.h
[not found] <199604030250.TAA09777@koala.azstarnet.com>
@ 1996-04-03 3:12 ` Erik Troan
1996-04-03 5:58 ` yxc02740
1996-04-03 6:32 ` yxc02740
2 siblings, 0 replies; 6+ messages in thread
From: Erik Troan @ 1996-04-03 3:12 UTC (permalink / raw)
On Tue, 2 Apr 1996, David Mosberger-Tang wrote:
> I thought we had talk fixed and that there is an RPM of a working
> talk. According to the libc ChangeLog file, the header files got
> fixed on Feb 17. Have you tried newer versions of talk?
I just saw a lot of "u_long" items in talk.h on Red Hat's latest
libc.
Erik
-------------------------------------------------------------------------------
Always hoped that I'd be an apostle. Knew that I would make it if I tried.
Then when we retire we can write the gospels so they'll all talk about
us when we die. - "The Last Supper" from Jesus Christ Superstar
| Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem of protocol/talkd.h
[not found] <199604030250.TAA09777@koala.azstarnet.com>
1996-04-03 3:12 ` Erik Troan
@ 1996-04-03 5:58 ` yxc02740
1996-04-03 6:32 ` yxc02740
2 siblings, 0 replies; 6+ messages in thread
From: yxc02740 @ 1996-04-03 5:58 UTC (permalink / raw)
> I thought we had talk fixed and that there is an RPM of a working
> talk. According to the libc ChangeLog file, the header files got
> fixed on Feb 17. Have you tried newer versions of talk?
I upgrade from 2.1beta to 2.1, but the problem is still same. Where is the
new RPM? And the binary distribution of talk in Net-Kit-B.. is even worse,
it kept dump core(segmentation fault).
yansong
>
> --david
>
> --
> To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem of protocol/talkd.h
@ 1996-04-03 6:22 David Mosberger-Tang
0 siblings, 0 replies; 6+ messages in thread
From: David Mosberger-Tang @ 1996-04-03 6:22 UTC (permalink / raw)
>>>>> On Tue, 2 Apr 1996 22:12:29 -0500 (EST), Erik Troan <ewt@redhat.com> said:
Erik> On Tue, 2 Apr 1996, David Mosberger-Tang wrote:
>> I thought we had talk fixed and that there is an RPM of a working
>> talk. According to the libc ChangeLog file, the header files got
>> fixed on Feb 17. Have you tried newer versions of talk?
Erik> I just saw a lot of "u_long" items in talk.h on Red Hat's
Erik> latest libc.
Too bad. Must have fallen through the cracks then. Here is a replay
of that mail. I'm not a talk power user, but I know I tried talking
to an x86 running Linux and that worked fine.
--david
------- Start of forwarded message -------
Resent-Date: Sat, 17 Feb 1996 23:07:04 -0500
Date: Sat, 17 Feb 1996 21:06:41 -0700
From: David Mosberger-Tang <davidm@AZStarNet.com>
To: axp-list@redhat.com, ewt@redhat.com
In-reply-to: <199602180007.SAA32251@Bayou.UH.EDU> (yxc02740@Bayou.UH.EDU)
Subject: Re: Talkd
Resent-From: axp-list@redhat.com
Reply-To: axp-list@redhat.com
X-Mailing-List: <axp-list@redhat.com> archive/latest/322
X-Loop: axp-list@redhat.com
Precedence: list
Resent-Sender: axp-list-request@redhat.com
X-URL: http://www.redhat.com
>>>>> On Sat, 17 Feb 1996 18:07:15 -0600 (CST), (cosc1) 95h02740 <yxc02740@Bayou.UH.EDU> said:
>> I have RedHat AXP/Linux 2.1. My talk client dies with a memory
>> violation of some kind when I try to use 'talk'. Is this a known
>> problem? Is there a known fix?
Noah> me too, don't know any fix yet, I think people still does not
Noah> have time to fix it.
For what it's worth, I just did:
rpm --rebuild /cdrom/RedHat/SRPMS/NetKit-B-0.06-5.src.rpm
and the resulting talk binary seems to work fine (notice that this is
not the latest NetKit release by RedHat---I just happened to have this
version on a CD-ROM and didn't feel like downloading 1.2MB of
sources...). I would the newer release works too---probably something
in the library fixed the segfault.
But it won't work to other (non-Alpha) machines. Since just talking
to yourself gets old after a while, I appended a patch that should fix
this, too.
>> Also, is this list archived? If so, where?
Yes, try http://www.linux.ncm.com (or see the FAQ at
http://www.azstarnet.com).
--david
---
--- usr/include/protocols/talkd.h~ Tue May 16 17:40:49 1995
+++ usr/include/protocols/talkd.h Sat Feb 17 20:23:51 1996
@@ -62,10 +62,10 @@
u_char type; /* request type, see below */
u_char answer; /* not used */
u_char pad;
- u_long id_num; /* message id */
+ u_int id_num; /* message id */
struct osockaddr addr; /* old (4.3) style */
struct osockaddr ctl_addr; /* old (4.3) style */
- long pid; /* caller's process id */
+ int pid; /* caller's process id */
#define NAME_SIZE 12
char l_name[NAME_SIZE];/* caller's name */
char r_name[NAME_SIZE];/* callee's name */
@@ -81,7 +81,7 @@
u_char type; /* type of request message, see below */
u_char answer; /* respose to request message, see below */
u_char pad;
- u_long id_num; /* message id */
+ u_int id_num; /* message id */
struct osockaddr addr; /* address for establishing conversation */
} CTL_RESPONSE;
--- usr/include/protocols/rwhod.h~ Tue May 16 17:40:49 1995
+++ usr/include/protocols/rwhod.h Sat Feb 17 20:24:16 1996
@@ -44,7 +44,7 @@
struct outmp {
char out_line[8]; /* tty name */
char out_name[8]; /* user id */
- long out_time; /* time on */
+ int out_time; /* time on */
};
struct whod {
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem of protocol/talkd.h
[not found] <199604030250.TAA09777@koala.azstarnet.com>
1996-04-03 3:12 ` Erik Troan
1996-04-03 5:58 ` yxc02740
@ 1996-04-03 6:32 ` yxc02740
2 siblings, 0 replies; 6+ messages in thread
From: yxc02740 @ 1996-04-03 6:32 UTC (permalink / raw)
> I thought we had talk fixed and that there is an RPM of a working
> talk. According to the libc ChangeLog file, the header files got
> fixed on Feb 17. Have you tried newer versions of talk?
>
> --david
Just got new RPM of NetKit-B from updates directory of redhat-2.1, the
segmentation fault is fixed, but still can not talk to other machine.
I can not find the new RPM of libc, where is that? The packages in 2.1 is
still not correct, I believe.
yansong
>
> --
> To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1996-04-03 6:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-02 19:19 problem of protocol/talkd.h yxc02740
-- strict thread matches above, loose matches on Subject: below --
1996-04-03 2:50 David Mosberger-Tang
1996-04-03 6:22 David Mosberger-Tang
[not found] <199604030250.TAA09777@koala.azstarnet.com>
1996-04-03 3:12 ` Erik Troan
1996-04-03 5:58 ` yxc02740
1996-04-03 6:32 ` yxc02740
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox