[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

More glibc 2.1.1 stuff



Ben,

I'm still trying to figure out the glibc 2.1.1 stuff.  A lot of stuff
seems to break if I use your 2.1.1-0.2 package (on a sun4u machine).
I'm not sure why (the 2.1.1-0.1.1 package worked fine).  I tried a
recompile of the 0.2 package and it didn't help  (2.2.5+cvs kernel).

In an effort to figure out what is going wrong, I grabbed the Red Hat
source package from their RawHide distribution (which runs fine with
their 2.2.4 kernel on all machines).


There were a few differences: They have nothing resembling our
sigaction, and sigstack patches (are they still needed?)  They have an
additional "libio-vfork" patch, which may fix our problems with
non-cvs kernels (I'm not sure, but I've attached it so you can look at
it).  Another difference is that RH is using glibc-990329.tar.gz as a
base and we are using glibc-19990406.tar.gz.

BTW, there is a bug in our rules file, the line that reads:

          patch=`echo $$stamp | sed -e 's/$(stampdir)\/patched-//'`; \

in the reverse-patches section, should read:

          patch=`echo $$stamp | sed -e 's+$(stampdir)\/patched-++'`; \

I don't know if this bug is in the primary package, or just Ben's
copy.


Ben, I'm currently recompiling without sigstack and sigaction.  (So I
just have your chown patch.)  If it works, we may also want to add the
attached patch (it may fix the problems with non-cvs kernels).


One other, general note.  The RedHat ncsd init script doesn't start it
on 2.0 kernels, they say that it won't run on kernels older than 2.2.0
because of threading problems.



Steve
dunham@cse.msu.edu

1999-03-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* libio/iopopen.c (_IO_fork): Use fork instead of vfork since
	vfork doesn't allow e.g. closing dup2 and close calls.
        Fixes PR libc/966+967.

--- libio/iopopen.c.~1~	Mon Nov 23 19:58:12 1998
+++ libio/iopopen.c	Sun Mar 28 12:01:11 1999
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
    Written by Per Bothner <bothner@cygnus.com>.
 
@@ -42,9 +42,9 @@
 
 #ifndef _IO_fork
 #ifdef _LIBC
-#define _IO_fork __vfork
+#define _IO_fork __fork
 #else
-#define _IO_fork vfork /* defined in libiberty, if needed */
+#define _IO_fork fork /* defined in libiberty, if needed */
 #endif
 extern _IO_pid_t _IO_fork __P ((void));
 #endif


-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de



Reply to: