* typo on /usr/include/sys/utsname.h
@ 1996-05-30 14:56 Michael K. Johnson
0 siblings, 0 replies; 7+ messages in thread
From: Michael K. Johnson @ 1996-05-30 14:56 UTC (permalink / raw)
With libc 0.43, I've found these two lines in /usr/include/sys/utsname.h:
#ifndef __linux__
#include <linux/utsname.h>
That looks like a typo to me, since there is no domainname
element except in the new_utsname in <linux/utsname.h>, and
especially since if __linux__ isn't defined, it doesn't make
sense for <linux/*> to exist.
If it's not a typo, there should probably be a comment there explaining
why not.
If I'm just behind on libraries, please tell me. I'm just using a
machine installed by someone else, and haven't been following library
versions recently because I haven't had access to an alpha until
recently...
Thanks,
michaelkjohnson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: typo on /usr/include/sys/utsname.h
@ 1996-05-30 16:19 David Mosberger-Tang
1996-05-31 2:56 ` Michael K. Johnson
0 siblings, 1 reply; 7+ messages in thread
From: David Mosberger-Tang @ 1996-05-30 16:19 UTC (permalink / raw)
>>>>> On Thu, 30 May 1996 10:56:13 -0400, "Michael K. Johnson" <johnsonm@redhat.com> said:
Michael> With libc 0.43, I've found these two lines in
Michael> /usr/include/sys/utsname.h:
Michael> #ifndef __linux__ #include <linux/utsname.h>
Michael> That looks like a typo to me, since there is no domainname
Michael> element except in the new_utsname in <linux/utsname.h>, and
Michael> especially since if __linux__ isn't defined, it doesn't
Michael> make sense for <linux/*> to exist.
Well, it's broken all right, but it's not the "#ifndef" that's wrong.
I think it should read "#ifndef __alpha__". The definition in
<linux/utsname.h> is _wrong_ for the old libc since it uses the OSF/1
utsname syscall (which returns fields that are 32 bytes long).
glibc has this fixed. It uses the Linux uname syscall, so it can use
the declaration from <linux/utsname.h>.
Michael> If it's not a typo, there should probably be a comment
Michael> there explaining why not.
Changing it to "#ifndef __alpha__" would be the right thing to do.
I'm not sure it's worth bothering, though. glibc is making good
progress and it is what will be used with ELF. Even if ELF is not
ready by the time the next libc release happens, I'd like to see
people start using glibc (but the way things are moving, I struggle
just to keep up with the progress that Eric and Richard are making
with ELF... :-). The only reason I'm not just uploading a
pre-compiled glibc is that some of the external file formats changed
(e.g., timezone and the utmp file). Also, all other libraries have to
be recompiled (X libs, tcl/tk, etc.). I have done this on my system,
but to make this generally available it would be necessary to put
together an entire distribution based on glibc. If somebody wanted to
start working on this, I'd be very happy to lend as much support as I
can.
--david
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: typo on /usr/include/sys/utsname.h
1996-05-30 16:19 David Mosberger-Tang
@ 1996-05-31 2:56 ` Michael K. Johnson
0 siblings, 0 replies; 7+ messages in thread
From: Michael K. Johnson @ 1996-05-31 2:56 UTC (permalink / raw)
David Mosberger-Tang writes:
>Well, it's broken all right, but it's not the "#ifndef" that's wrong.
>I think it should read "#ifndef __alpha__". The definition in
><linux/utsname.h> is _wrong_ for the old libc since it uses the OSF/1
>utsname syscall (which returns fields that are 32 bytes long).
Oh, yuck. :-( I'll have to hack su.c not to want domainname unless
I can assume glibc, then.
>glibc has this fixed. It uses the Linux uname syscall, so it can use
>the declaration from <linux/utsname.h>.
...
>(e.g., timezone and the utmp file). Also, all other libraries have to
>be recompiled (X libs, tcl/tk, etc.). I have done this on my system,
>but to make this generally available it would be necessary to put
>together an entire distribution based on glibc. If somebody wanted to
>start working on this, I'd be very happy to lend as much support as I
>can.
Does everything rebuild correctly so far with glibc? Are lots of patches
to other packages required? If so, have you kept track of the patches?
In any case, thanks very much for the answer!
michaelkjohnson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: typo on /usr/include/sys/utsname.h
@ 1996-05-31 3:22 David Mosberger-Tang
0 siblings, 0 replies; 7+ messages in thread
From: David Mosberger-Tang @ 1996-05-31 3:22 UTC (permalink / raw)
>>>>> On Thu, 30 May 1996 22:56:20 -0400, "Michael K. Johnson" <johnsonm@nigel.vnet.net> said:
Michael> Does everything rebuild correctly so far with glibc? Are
Michael> lots of patches to other packages required? If so, have
Michael> you kept track of the patches?
Can't say everything, since I haven't tried _that_ much yet. But in
general, cleanly written programs compile without any troubles.
Sometimes it's necessary to add a missing #include <errno.h> and
sometimes things need to be compiled with -D_GNU_SOURCE etc., but
other than that, there are few headaches. The only exception so far
was util-linux. It shows that it was never compiled on anything but
Linux. But for that package, I have patches. I expect problems with
the NetKits as well, after that, I think it should be a fairly smooth
ride. And libg++ seems to work fine as well. In fact, I have working
ical and zapem binaries... :-)
In summary: it will take some work to convert an entire distribution
to glibc, but I think it's well worth it.
--david
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: typo on /usr/include/sys/utsname.h
@ 1996-05-31 7:16 David Mosberger-Tang
1996-05-31 9:54 ` Fred Roy
0 siblings, 1 reply; 7+ messages in thread
From: David Mosberger-Tang @ 1996-05-31 7:16 UTC (permalink / raw)
Not that I enjoy following up my own mails: but NetKit-A and NetKit-B
as present on Red Hat 3.0.3 compile now against glibc as well. As far
as I can tell, it works fine, too.
--david
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: typo on /usr/include/sys/utsname.h
1996-05-31 7:16 David Mosberger-Tang
@ 1996-05-31 9:54 ` Fred Roy
0 siblings, 0 replies; 7+ messages in thread
From: Fred Roy @ 1996-05-31 9:54 UTC (permalink / raw)
david >Not that I enjoy following up my own mails: but NetKit-A and NetKit-B
david >as present on Red Hat 3.0.3 compile now against glibc as well. As far
david >as I can tell, it works fine, too.
david >
david > --david
I think that you are too modest: following up mails, and especially your own
mails, is an excellent practice! Go on David!
Cheers,
fred
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: typo on /usr/include/sys/utsname.h
@ 1996-05-31 15:04 Donnie Barnes
0 siblings, 0 replies; 7+ messages in thread
From: Donnie Barnes @ 1996-05-31 15:04 UTC (permalink / raw)
> Not that I enjoy following up my own mails: but NetKit-A and NetKit-B
> as present on Red Hat 3.0.3 compile now against glibc as well. As far
> as I can tell, it works fine, too.
It might be worth noting that NetKit-A is now gone from our devel tree.
It has been split into *real* packages. NetKit-B will most likely go
by the wayside as well into separate packages sometime in the future.
So, please try and keep the patches clean enough to deal with on an
individual program level (not that you probably didn't...just informing
everyone of the impending change).
--Donnie
--
* Donnie Barnes * http://www.redhat.com/~djb * djb@redhat.com *
* See my web page for my personal list of items for sale in Cary, NC *
---------------------------------------------------------------------------
* From _Things You'd NEVER Expect A Southerner To Say_ by Vic Henley:
*** That civil war documentary was excellent.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1996-05-31 15:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-31 3:22 typo on /usr/include/sys/utsname.h David Mosberger-Tang
-- strict thread matches above, loose matches on Subject: below --
1996-05-31 15:04 Donnie Barnes
1996-05-31 7:16 David Mosberger-Tang
1996-05-31 9:54 ` Fred Roy
1996-05-30 16:19 David Mosberger-Tang
1996-05-31 2:56 ` Michael K. Johnson
1996-05-30 14:56 Michael K. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox