public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/519] New: CVS Compilation failure using nptl + static
@ 2004-11-06 13:01 eric.valette@free.fr
  2004-12-03  1:31 ` [Bug libc/519] " gotom at debian dot or dot jp
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eric.valette@free.fr @ 2004-11-06 13:01 UTC (permalink / raw)
  To: glibc-bugs

The debian packaging of libc6-dev, is totally broken :
       1) use NPTL when kernel permits AND dynamic linking,
       2) use linuxThread in static linking mode
       3) provide only the linuxthreads related include and not the nptl one
even conditionnaly via separate packages or into separate directory

I tried to recompile debian libc myself using nptl and static but the result
crash at startup when initializing nptl. Instead of starting debugging ancient
code, I extracted from cvs the latest version and rebuild using :


../libc/configure --host=i486-linux --build=i486-linux --without-cvs
--enable-add-ons=nptl --with-tls --disable-shared --with-__thread
--enable-kernel=2.6.0 --prefix=/usr/local/npltstatic
--oldincludedir=/usr/include CC=gcc-3.3 CPPFLAGS='-isystem
/home/valette/local/local-src/glibc-2.3.2.ds1/debian/include'

Doing this I found the following problems. This list of mofified file is as follow :
find . -name "*~" -print
./sysdeps/unix/sysv/linux/i386/syscalls.list.~1.19.~
./sysdeps/unix/sysv/linux/i386/setegid.c.~1.7.~
./sysdeps/unix/sysv/linux/i386/seteuid.c.~1.6.~
./sysdeps/unix/sysv/linux/i386/setgid.c.~1.7.~
./sysdeps/unix/sysv/linux/i386/setregid.c.~1.11.~
./sysdeps/unix/sysv/linux/i386/setresgid.c.~1.12.~
./sysdeps/unix/sysv/linux/i386/setresuid.c.~1.13.~
./sysdeps/unix/sysv/linux/i386/setreuid.c.~1.11.~
./sysdeps/unix/sysv/linux/i386/setuid.c.~1.8.~

But at least the resulting libc.a, libpthread.a works as expected :-)

all the set*.c syscall is the same modification : do not use
__libc_ppthread_functions if not shared... Patch follows.

diff -u sysdeps/unix/sysv/linux/i386/setegid.c.~1.7.~
sysdeps/unix/sysv/linux/i386/setegid.c
--- sysdeps/unix/sysv/linux/i386/setegid.c.~1.7.~       2004-09-20
01:44:35.000000000 +0200
+++ sysdeps/unix/sysv/linux/i386/setegid.c      2004-11-04 00:11:56.000000000 +0100
@@ -59,8 +59,8 @@
     result = __setregid (-1, gid);
 #endif

-#if defined HAVE_PTR__NPTL_SETXID && !defined SINGLE_THREAD
-  if (result == 0 && __libc_pthread_functions.ptr__nptl_setxid != NULL)
+#if defined HAVE_PTR__NPTL_SETXID && !defined SINGLE_THREAD && defined (SHARED)
+  if (result == 0 && __libc_ppthread_functions.ptr__nptl_setxid != NULL)     {
       struct xid_command cmd;
       cmd.syscall_no = __NR_setresgid32;

The syscalls.list modification is because a Makefile makes reference to vm86.o
and latter to vm86.op but that it is not generated.

diff -u sysdeps/unix/sysv/linux/i386/syscalls.list.~1.19.~
sysdeps/unix/sysv/linux/i386/syscalls.list
--- sysdeps/unix/sysv/linux/i386/syscalls.list.~1.19.~  2004-03-10
09:38:15.000000000 +0100
+++ sysdeps/unix/sysv/linux/i386/syscalls.list  2004-11-03 23:45:10.000000000 +0100
@@ -2,7 +2,7 @@

 modify_ldt     EXTRA   modify_ldt      i:ipi   __modify_ldt    modify_ldt
 vm86old                EXTRA   vm86old         i:p     __vm86old      
vm86@GLIBC_2.0
-vm86           -       vm86            i:ip    __vm86          vm86@@GLIBC_2.3.4
+vm86           -       vm86            i:ip    __vm86          vm86
 oldgetrlimit   EXTRA   getrlimit       i:ip    __old_getrlimit getrlimit@GLIBC_2.0
 oldsetrlimit   EXTRA   setrlimit       i:ip    __old_setrlimit setrlimit@GLIBC_2.0
 time           -       time            Ei:p    time

-- 
           Summary: CVS Compilation failure using nptl + static
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: eric dot valette at free dot fr
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i486-linux
  GCC host triplet: i486-linux
GCC target triplet: i486-linux


http://sources.redhat.com/bugzilla/show_bug.cgi?id=519

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/519] CVS Compilation failure using nptl + static
  2004-11-06 13:01 [Bug libc/519] New: CVS Compilation failure using nptl + static eric.valette@free.fr
@ 2004-12-03  1:31 ` gotom at debian dot or dot jp
  2005-07-03  9:51 ` web-sources dot redhat dot com at jankratochvil dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gotom at debian dot or dot jp @ 2004-12-03  1:31 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From gotom at debian dot or dot jp  2004-12-03 01:31 -------
Jakub pointed this patch is incorrect:
http://sources.redhat.com/ml/libc-alpha/2004-11/msg00107.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sources.redhat.com/bugzilla/show_bug.cgi?id=519

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/519] CVS Compilation failure using nptl + static
  2004-11-06 13:01 [Bug libc/519] New: CVS Compilation failure using nptl + static eric.valette@free.fr
  2004-12-03  1:31 ` [Bug libc/519] " gotom at debian dot or dot jp
@ 2005-07-03  9:51 ` web-sources dot redhat dot com at jankratochvil dot net
  2005-07-03 10:42 ` web-sources dot redhat dot com at jankratochvil dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: web-sources dot redhat dot com at jankratochvil dot net @ 2005-07-03  9:51 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |web-sources dot redhat dot
                   |                            |com at jankratochvil dot net


http://sources.redhat.com/bugzilla/show_bug.cgi?id=519

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/519] CVS Compilation failure using nptl + static
  2004-11-06 13:01 [Bug libc/519] New: CVS Compilation failure using nptl + static eric.valette@free.fr
  2004-12-03  1:31 ` [Bug libc/519] " gotom at debian dot or dot jp
  2005-07-03  9:51 ` web-sources dot redhat dot com at jankratochvil dot net
@ 2005-07-03 10:42 ` web-sources dot redhat dot com at jankratochvil dot net
  2005-07-03 10:44 ` web-sources dot redhat dot com at jankratochvil dot net
  2005-07-19  3:42 ` roland at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: web-sources dot redhat dot com at jankratochvil dot net @ 2005-07-03 10:42 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |1045
              nThis|                            |


http://sources.redhat.com/bugzilla/show_bug.cgi?id=519

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/519] CVS Compilation failure using nptl + static
  2004-11-06 13:01 [Bug libc/519] New: CVS Compilation failure using nptl + static eric.valette@free.fr
                   ` (2 preceding siblings ...)
  2005-07-03 10:42 ` web-sources dot redhat dot com at jankratochvil dot net
@ 2005-07-03 10:44 ` web-sources dot redhat dot com at jankratochvil dot net
  2005-07-19  3:42 ` roland at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: web-sources dot redhat dot com at jankratochvil dot net @ 2005-07-03 10:44 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From web-sources dot redhat dot com at jankratochvil dot net  2005-07-03 10:43 -------
Reopened: Patch may be invalid (although works4me), still the bugreport is valid.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Version|unspecified                 |2.3.5


http://sources.redhat.com/bugzilla/show_bug.cgi?id=519

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/519] CVS Compilation failure using nptl + static
  2004-11-06 13:01 [Bug libc/519] New: CVS Compilation failure using nptl + static eric.valette@free.fr
                   ` (3 preceding siblings ...)
  2005-07-03 10:44 ` web-sources dot redhat dot com at jankratochvil dot net
@ 2005-07-19  3:42 ` roland at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: roland at gnu dot org @ 2005-07-19  3:42 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From roland at gnu dot org  2005-07-19 03:42 -------
There is no such bug in any current version.  

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=519

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2005-07-19  3:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 13:01 [Bug libc/519] New: CVS Compilation failure using nptl + static eric.valette@free.fr
2004-12-03  1:31 ` [Bug libc/519] " gotom at debian dot or dot jp
2005-07-03  9:51 ` web-sources dot redhat dot com at jankratochvil dot net
2005-07-03 10:42 ` web-sources dot redhat dot com at jankratochvil dot net
2005-07-03 10:44 ` web-sources dot redhat dot com at jankratochvil dot net
2005-07-19  3:42 ` roland at gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).