public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devfsd, compiling on glibc22x
@ 2001-01-28  2:28 David Ford
  2001-01-28  6:53 ` Pierre Rousselet
  0 siblings, 1 reply; 9+ messages in thread
From: David Ford @ 2001-01-28  2:28 UTC (permalink / raw)
  To: devfs, rgooch; +Cc: LKML

This patch is simple, defines RTLD_NEXT if not previously defined.

--- devfsd.c.orig       Sat Jan 27 18:14:19 2001
+++ devfsd.c    Sat Jan 27 18:15:46 2001
@@ -165,6 +165,7 @@
     Last updated by Richard Gooch   3-JUL-2000: Added "-C
/etc/modules.devfs"
   when calling modprobe(8). Fail if a configuration line has EXECUTE
modprobe.

+    Updated by      David Ford      27-JAN-2001: Added RTLD_NEXT define


 */
 #include <unistd.h>
@@ -221,6 +222,10 @@
 #define AC_MKNEWCOMPAT              8
 #define AC_RMOLDCOMPAT              9
 #define AC_RMNEWCOMPAT              10
+
+#ifndef RTLD_NEXT
+# define RTLD_NEXT     ((void *) -1l)
+#endif

 struct permissions_type
 {


--
  There is a natural aristocracy among men. The grounds of this are virtue and talents. Thomas Jefferson
  The good thing about standards is that there are so many to choose from. Andrew S. Tanenbaum



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-01-28  2:28 [PATCH] devfsd, compiling on glibc22x David Ford
@ 2001-01-28  6:53 ` Pierre Rousselet
  2001-01-28  7:27   ` Ulrich Drepper
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Rousselet @ 2001-01-28  6:53 UTC (permalink / raw)
  To: David Ford; +Cc: devfs, rgooch, LKML

David Ford wrote:
> 
> This patch is simple, defines RTLD_NEXT if not previously defined.
> 
> --- devfsd.c.orig       Sat Jan 27 18:14:19 2001
> +++ devfsd.c    Sat Jan 27 18:15:46 2001
> @@ -165,6 +165,7 @@
>      Last updated by Richard Gooch   3-JUL-2000: Added "-C
> /etc/modules.devfs"
>    when calling modprobe(8). Fail if a configuration line has EXECUTE
> modprobe.
> 
> +    Updated by      David Ford      27-JAN-2001: Added RTLD_NEXT define
> 
>  */
>  #include <unistd.h>
> @@ -221,6 +222,10 @@
>  #define AC_MKNEWCOMPAT              8
>  #define AC_RMOLDCOMPAT              9
>  #define AC_RMNEWCOMPAT              10
> +
> +#ifndef RTLD_NEXT
> +# define RTLD_NEXT     ((void *) -1l)
> +#endif
> 
>  struct permissions_type
>  {


for me :
make CFLAGS='-O2 -I. -D_GNU_SOURCE' 
compiles without any patch. is it correct ?

-- 
------------------------------------------------
 Pierre Rousselet <pierre.rousselet@wanadoo.fr>
------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-01-28  6:53 ` Pierre Rousselet
@ 2001-01-28  7:27   ` Ulrich Drepper
  2001-01-28 10:09     ` David Ford
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ulrich Drepper @ 2001-01-28  7:27 UTC (permalink / raw)
  To: Pierre Rousselet; +Cc: David Ford, devfs, rgooch, LKML

Pierre Rousselet <pierre.rousselet@wanadoo.fr> writes:

> for me :
> make CFLAGS='-O2 -I. -D_GNU_SOURCE' 
> compiles without any patch. is it correct ?

Yes.  RTLD_NEXT is not in any standard, it's an extension available
via -D_GNU_SOURCE.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-01-28  7:27   ` Ulrich Drepper
@ 2001-01-28 10:09     ` David Ford
  2001-01-29  2:19     ` Albert D. Cahalan
  2001-02-05  6:31     ` Richard Gooch
  2 siblings, 0 replies; 9+ messages in thread
From: David Ford @ 2001-01-28 10:09 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Pierre Rousselet, devfs, rgooch, LKML

Ulrich Drepper wrote:

> Pierre Rousselet <pierre.rousselet@wanadoo.fr> writes:
>
> > for me :
> > make CFLAGS='-O2 -I. -D_GNU_SOURCE'
> > compiles without any patch. is it correct ?
>
> Yes.  RTLD_NEXT is not in any standard, it's an extension available
> via -D_GNU_SOURCE.

Ok, how about we all tag Richard until he adds that to the makefile?  :)

-d

--
  There is a natural aristocracy among men. The grounds of this are virtue and talents. Thomas Jefferson
  The good thing about standards is that there are so many to choose from. Andrew S. Tanenbaum



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
@ 2001-01-28 15:56 Douglas Gilbert
  0 siblings, 0 replies; 9+ messages in thread
From: Douglas Gilbert @ 2001-01-28 15:56 UTC (permalink / raw)
  To: linux-kernel

While on the subject of devfs:
  - it doesn't seem to have any entries for raw devices:
    /dev/rawctl, /dev/raw/raw1, etc
  - when I upgraded to glibc 2.2 (via a rpm) in RH 7.0
    this line in /etc/devfsd.conf caused devfsd to 
    seg fault:
    "LOOKUP      ^cdrom$      CFUNCTION      GLOBAL     
         symlink ${mntpnt}/cdroms/cdrom0 $devpath"
    Rebuilding devfsd didn't help.

Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-01-28  7:27   ` Ulrich Drepper
  2001-01-28 10:09     ` David Ford
@ 2001-01-29  2:19     ` Albert D. Cahalan
  2001-02-05  6:31     ` Richard Gooch
  2 siblings, 0 replies; 9+ messages in thread
From: Albert D. Cahalan @ 2001-01-29  2:19 UTC (permalink / raw)
  To: drepper; +Cc: Pierre Rousselet, David Ford, devfs, rgooch, LKML

Ulrich Drepper writes:
> Pierre Rousselet <pierre.rousselet@wanadoo.fr> writes:
>
>> for me :
>> make CFLAGS='-O2 -I. -D_GNU_SOURCE' 
>> compiles without any patch. is it correct ?
>
> Yes.  RTLD_NEXT is not in any standard, it's an extension available
> via -D_GNU_SOURCE.

This isn't a HURD feature.
This isn't even a C library feature.
This is a Linux feature.

So the _GNU_SOURCE thing is just plain wrong. Quit trying to
rename the OS.

Since there are so many standards to choose from, putting all features
into the default would be most obvious. Else what, pure C89 maybe?
Dang new-fangled standards might break something. Normal UNIX systems
don't make developers jump through hoops to get access to stuff; they
instead provide clean namespaces upon request.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-01-28  7:27   ` Ulrich Drepper
  2001-01-28 10:09     ` David Ford
  2001-01-29  2:19     ` Albert D. Cahalan
@ 2001-02-05  6:31     ` Richard Gooch
  2001-02-05  6:51       ` Ulrich Drepper
  2 siblings, 1 reply; 9+ messages in thread
From: Richard Gooch @ 2001-02-05  6:31 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Pierre Rousselet, David Ford, devfs, LKML

Ulrich Drepper writes:
> Pierre Rousselet <pierre.rousselet@wanadoo.fr> writes:
> 
> > for me :
> > make CFLAGS='-O2 -I. -D_GNU_SOURCE' 
> > compiles without any patch. is it correct ?
> 
> Yes.  RTLD_NEXT is not in any standard, it's an extension available
> via -D_GNU_SOURCE.

So why do old binaries (compiled with glibc 2.1.3) segfault when they
call dlsym() with RTLD_NEXT?  Even newly compiled binaries (with glibc
2.2) still segfault.

				Regards,

					Richard....
Permanent: rgooch@atnf.csiro.au
Current:   rgooch@ras.ucalgary.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-02-05  6:31     ` Richard Gooch
@ 2001-02-05  6:51       ` Ulrich Drepper
  2001-02-05  7:01         ` Richard Gooch
  0 siblings, 1 reply; 9+ messages in thread
From: Ulrich Drepper @ 2001-02-05  6:51 UTC (permalink / raw)
  To: Richard Gooch; +Cc: Pierre Rousselet, David Ford, devfs, LKML

Richard Gooch <rgooch@ras.ucalgary.ca> writes:

> So why do old binaries (compiled with glibc 2.1.3) segfault when they
> call dlsym() with RTLD_NEXT?  Even newly compiled binaries (with glibc
> 2.2) still segfault.

What do you ask me?  You wrote the code.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] devfsd, compiling on glibc22x
  2001-02-05  6:51       ` Ulrich Drepper
@ 2001-02-05  7:01         ` Richard Gooch
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Gooch @ 2001-02-05  7:01 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Pierre Rousselet, David Ford, devfs, LKML

Ulrich Drepper writes:
> Richard Gooch <rgooch@ras.ucalgary.ca> writes:
> 
> > So why do old binaries (compiled with glibc 2.1.3) segfault when they
> > call dlsym() with RTLD_NEXT?  Even newly compiled binaries (with glibc
> > 2.2) still segfault.
> 
> What do you ask me?  You wrote the code.

But you wrote dlsym(), right I have a debug trace from someone which
shows that the call to dlsym() segfaults. It's being called thusly:
	dlsym (RTLD_NEXT, "symlink");

This doesn't fail with libc 5 nor with glibc 2.1.3. But it does with
glibc 2.2.

				Regards,

					Richard....
Permanent: rgooch@atnf.csiro.au
Current:   rgooch@ras.ucalgary.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-02-05  7:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-28  2:28 [PATCH] devfsd, compiling on glibc22x David Ford
2001-01-28  6:53 ` Pierre Rousselet
2001-01-28  7:27   ` Ulrich Drepper
2001-01-28 10:09     ` David Ford
2001-01-29  2:19     ` Albert D. Cahalan
2001-02-05  6:31     ` Richard Gooch
2001-02-05  6:51       ` Ulrich Drepper
2001-02-05  7:01         ` Richard Gooch
  -- strict thread matches above, loose matches on Subject: below --
2001-01-28 15:56 Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox