* Re: [klibc] latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
@ 2004-09-18 0:31 ` H. Peter Anvin
2004-09-18 21:44 ` Bob Barry
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: H. Peter Anvin @ 2004-09-18 0:31 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> This patch make it possible to run udev with the latest klibc.
>
> One patch for the udev/Makefile to match the moved include/ dir. Another
> one for klibc's string fuctions, that are causing segfaults:
>
> strncpy.c: the while() gets n = -1 and memset() dies
> strncat.c: cat's only strlen(dest) count of chars from src to dest
>
Thanks. The definition of these functions is pretty bizarre; hence I added
strlcpy() and strlcat() as well.
-hpa
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* re: latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
2004-09-18 0:31 ` [klibc] " H. Peter Anvin
@ 2004-09-18 21:44 ` Bob Barry
2004-09-19 20:18 ` Kevin P. Fleming
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Bob Barry @ 2004-09-18 21:44 UTC (permalink / raw)
To: linux-hotplug
Kay -
On Fri, 17 Sep 2004 21:11 you wrote
> This patch make it possible to run udev with the latest klibc.
Many thanks for your fast fix. It works fine.
The only development snapshot available on the klibc ftp site
is klibc-0.178, and it includes "ash" which does not compile.
The udev Makefile calls the Makefile in the klibc root directory,
so I patched that to omit ash:
=============
--- klibc/Makefile.orig 2004-09-18 22:27:01.091279104 +0200
+++ klibc/Makefile 2004-09-18 18:41:13.000000000 +0200
@@ -1,5 +1,5 @@
VERSION := $(shell cat version)
-SUBDIRS = klibc ash ipconfig nfsmount utils kinit gzip
+SUBDIRS = klibc ipconfig nfsmount utils kinit gzip
all:
=============
With that patch and yours, udev-032 with klibc-0.178 compiles and runs OK.
Does your klibc-0.177 have "ash"? If not, perhaps it's a better
fit for udev. Either way, the udev package needs to provide or
use klibc-0.17x to support the 2.6.9-rc2 kernel.
Thanks,
Bob Barry
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
2004-09-18 0:31 ` [klibc] " H. Peter Anvin
2004-09-18 21:44 ` Bob Barry
@ 2004-09-19 20:18 ` Kevin P. Fleming
2004-09-20 7:23 ` Bob Barry
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Kevin P. Fleming @ 2004-09-19 20:18 UTC (permalink / raw)
To: linux-hotplug
Bob Barry wrote:
> Does your klibc-0.177 have "ash"? If not, perhaps it's a better
> fit for udev. Either way, the udev package needs to provide or
> use klibc-0.17x to support the 2.6.9-rc2 kernel.
That's only true if you're building against raw kernel headers, right?
If you build against the latest linux-libc-headers, it should work fine.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
` (2 preceding siblings ...)
2004-09-19 20:18 ` Kevin P. Fleming
@ 2004-09-20 7:23 ` Bob Barry
2004-09-20 14:51 ` Kevin P. Fleming
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Bob Barry @ 2004-09-20 7:23 UTC (permalink / raw)
To: linux-hotplug
Kevin -
On Monday 20 September 2004 05:10, you wrote:
> > Does your klibc-0.177 have "ash"? If not, perhaps it's a better
> > fit for udev. Either way, the udev package needs to provide or
> > use klibc-0.17x to support the 2.6.9-rc2 kernel.
>
> That's only true if you're building against raw kernel headers, right?
What's "that"? Compilation failure of ash?
> If you build against the latest linux-libc-headers, it should work fine.
Can you refer me to an explanation of this dependency?
Can you give me a URL for appropriate headers?
Thanks,
Bob Barry
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
` (3 preceding siblings ...)
2004-09-20 7:23 ` Bob Barry
@ 2004-09-20 14:51 ` Kevin P. Fleming
2004-09-24 12:48 ` Bob Barry
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Kevin P. Fleming @ 2004-09-20 14:51 UTC (permalink / raw)
To: linux-hotplug
Bob Barry wrote:
> What's "that"? Compilation failure of ash?
No, you said that the udev package needs to "provide klibc-0.17x" the
support the 2.6.9-rc2 kernel, and I was disagreeing. That should only be
necessary if you are allowing udev/klibc to build against raw kernel
headers, instead of sanitized headers. I run udev-032 against 2.6.9-rc2
kernels here and have not had any trouble.
> Can you refer me to an explanation of this dependency?
Sorry, I don't know of one. There are many, many threads on the
linux-kernel mailing list archives that talk about this issue, though.
> Can you give me a URL for appropriate headers?
Google for "linux-libc-headers", it's the first link listed.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
` (4 preceding siblings ...)
2004-09-20 14:51 ` Kevin P. Fleming
@ 2004-09-24 12:48 ` Bob Barry
2004-09-29 14:31 ` [klibc] " Jürg Billeter
2004-09-29 18:25 ` H. Peter Anvin
7 siblings, 0 replies; 9+ messages in thread
From: Bob Barry @ 2004-09-24 12:48 UTC (permalink / raw)
To: linux-hotplug
Kevin & Kay-
On Mon, 20 Sep 2004 07:51 Kevin wrote:
> ...you said that the udev package needs to "provide klibc-0.17x" the
> support the 2.6.9-rc2 kernel, and I was disagreeing. That should only be
> necessary if you are allowing udev/klibc to build against raw kernel
> headers, instead of sanitized headers. I run udev-032 against 2.6.9-rc2
> kernels here and have not had any trouble.
I got the latest linux-libc-headers and installed them, and upgraded
my glibc from 2.3.2 to 2.3.3, but compilation of klibc still failed under
linux-2.6.9-rc2. The failure was always in compilation of ash (which
I didn't really want anyway). I finally found that ash requires a recent
version of bison; version 1.35 failed, but 1.75 succeeds. Makefile in
klibc root directory should test for bison version.
Does udev use ash? Might it be used in future? The udev build would be quicker,
and independent of yacc and bison, if ash were not built.
The following script, in same directory as Kay's patches, builds udev
with recent klibc:
#!/bin/ksh
rm -rf udev-032
tar xjvf /usr/portage/distfiles/udev-032.tar.bz2
cd udev-032
tar xjvf /usr/portage/distfiles/klibc-0.179.tar.bz2
mv klibc-0.179 klibc
patch -p1 < ../udev-klibc-last-01.patch
patch -p0 < ../klibc-bug-01.patch
ln -s /usr/src/linux-2.6.9-rc2 klibc/linux
make KERNEL_DIR=/usr/src/linux-2.6.9-rc2 USE_KLIBC=true USE_LOGúlse DEBUGúlse
If line "ln -s /usr/src/linux-2.6.9-rc2 klibc/linux" is omitted, script fails despite
KERNEL_DIR parameter in make command.
Running
make KERNEL_DIR=/usr/src/linux-2.6.9-rc2 USE_KLIBC=true USE_LOGúlse DEBUGúlse
on unpatched udev-032 fails every time.
Running
make KERNEL_DIR=/usr/src/linux-2.6.9-rc1 USE_KLIBC=true USE_LOGúlse DEBUGúlse
on unpatched udev-032 succeeds.
Thanks,
Bob Barry
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [klibc] latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
` (5 preceding siblings ...)
2004-09-24 12:48 ` Bob Barry
@ 2004-09-29 14:31 ` Jürg Billeter
2004-09-29 18:25 ` H. Peter Anvin
7 siblings, 0 replies; 9+ messages in thread
From: Jürg Billeter @ 2004-09-29 14:31 UTC (permalink / raw)
To: linux-hotplug
On Fre, 2004-09-17 at 17:31 -0700, H. Peter Anvin wrote:
> Kay Sievers wrote:
> > This patch make it possible to run udev with the latest klibc.
> >
> > One patch for the udev/Makefile to match the moved include/ dir. Another
> > one for klibc's string fuctions, that are causing segfaults:
> >
> > strncpy.c: the while() gets n = -1 and memset() dies
> > strncat.c: cat's only strlen(dest) count of chars from src to dest
> >
>
> Thanks. The definition of these functions is pretty bizarre; hence I added
> strlcpy() and strlcat() as well.
Any reason why this patch hasn't been merged yet (at least as of
klibc-0.180)? Without this patch udev-based initramfs' don't work...
Regards,
Jürg
--
Jürg Billeter <j@bitron.ch>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [klibc] latest klibc for udev
2004-09-17 19:11 latest klibc for udev Kay Sievers
` (6 preceding siblings ...)
2004-09-29 14:31 ` [klibc] " Jürg Billeter
@ 2004-09-29 18:25 ` H. Peter Anvin
7 siblings, 0 replies; 9+ messages in thread
From: H. Peter Anvin @ 2004-09-29 18:25 UTC (permalink / raw)
To: linux-hotplug
Jürg Billeter wrote:
>
> Any reason why this patch hasn't been merged yet (at least as of
> klibc-0.180)? Without this patch udev-based initramfs' don't work...
>
Did I miss it? Let me check...
-hpa
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread