⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rh62-99-glibc-2.1.3-allow-gcc-3.4-td.patch

📁 linux下编译交叉工具链的工具源码
💻 PATCH
📖 第 1 页 / 共 2 页
字号:
Fixes following error building glibc-2.2.5 with gcc-3.4:td_init.c: In function `td_init':td_init.c:30: error: parse error before string constanttd_init.c:30: error: parse error before string constantmake[2]: *** [/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.2.5/build-glibc/linuxthreads_db/td_init.os] Error 1# Retrieved by diffing a +-1 day rng around the time mentioned# in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html# cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc diff -u -D"2001-12-27 08:41:30" -D"2001-12-29 08:41:32"# then fixing paths.# And then removing hunks that don't apply to rh6.2's glibc-2.1.3# (thankfully, all were comments)# and rediffing one hunk for glibc-2.1.3Index: td_init.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_init.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_init.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Initialization function of thread debugger support library.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -27,6 +27,6 @@ td_init (void) {   /* XXX We have to figure out what has to be done.  */-  LOG (__FUNCTION__);+  LOG ("td_init");   return TD_OK; }Index: td_log.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,vretrieving revision 1.2retrieving revision 1.3diff -u -r1.2 -r1.3--- libc/linuxthreads_db/td_log.c	6 Jul 2001 05:27:23 -0000	1.2+++ libc/linuxthreads_db/td_log.c	28 Dec 2001 16:41:29 -0000	1.3@@ -1,5 +1,5 @@ /* Noop, left for historical reasons.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -25,8 +25,8 @@ td_log (void) {   /* This interface is deprecated in the Sun interface.  We provide it-     for compatibility but don't do anyhting ourself.  We might in+     for compatibility but don't do anything ourself.  We might in      future do some logging if this seems reasonable.  */-  LOG (__FUNCTION__);+  LOG ("td_log");   return TD_OK; }Index: td_ta_clear_event.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_clear_event.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_clear_event.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Globally disable events.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -29,7 +29,7 @@   td_thr_events_t old_event;   int i; -  LOG (__FUNCTION__);+  LOG ("td_ta_clear_event");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_delete.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_delete.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_delete.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Detach to target process.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -26,7 +26,7 @@ td_err_e td_ta_delete (td_thragent_t *ta) {-  LOG (__FUNCTION__);+  LOG ("td_ta_delete");    /* Safety check.  */   if (ta == NULL || __td_agent_list == NULL)Index: td_ta_enable_stats.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_enable_stats.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_enable_stats.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Enable collection of statistics for process.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -25,7 +25,7 @@ td_ta_enable_stats (const td_thragent_t *ta, int enable) {   /* XXX We have to figure out what has to be done.  */-  LOG (__FUNCTION__);+  LOG ("td_ta_enable_stats");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_event_addr.c===================================================================--- glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c~	Tue Nov  9 21:05:07 1999+++ glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c	Sun Apr 11 22:23:28 2004@@ -29,7 +29,7 @@   td_err_e res = TD_NOEVENT;   const char *symbol = NULL; -  LOG (__FUNCTION__);+  LOG ("td_ta_event_addr");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_event_getmsg.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,vretrieving revision 1.5retrieving revision 1.6diff -u -r1.5 -r1.6--- libc/linuxthreads_db/td_ta_event_getmsg.c	6 Jul 2001 05:27:23 -0000	1.5+++ libc/linuxthreads_db/td_ta_event_getmsg.c	28 Dec 2001 16:41:29 -0000	1.6@@ -1,5 +1,5 @@ /* Retrieve event.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -32,7 +32,7 @@   td_eventbuf_t event;   psaddr_t addr; -  LOG (__FUNCTION__);+  LOG ("td_ta_event_getmsg");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_get_nthreads.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,vretrieving revision 1.5retrieving revision 1.6diff -u -r1.5 -r1.6--- libc/linuxthreads_db/td_ta_get_nthreads.c	6 Jul 2001 05:27:23 -0000	1.5+++ libc/linuxthreads_db/td_ta_get_nthreads.c	28 Dec 2001 16:41:29 -0000	1.6@@ -25,7 +25,7 @@ {   psaddr_t addr; -  LOG (__FUNCTION__);+  LOG ("td_ta_get_nthreads");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_get_ph.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_get_ph.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_get_ph.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Get external process handle.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -24,7 +24,7 @@ td_err_e td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph) {-  LOG (__FUNCTION__);+  LOG ("td_ta_get_ph");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_get_stats.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_get_stats.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_get_stats.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Retrieve statistics for process.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -25,7 +25,7 @@ td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp) {   /* XXX We have to figure out what has to be done.  */-  LOG (__FUNCTION__);+  LOG ("td_ta_get_stats");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_map_id2thr.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,vretrieving revision 1.4retrieving revision 1.5diff -u -r1.4 -r1.5--- libc/linuxthreads_db/td_ta_map_id2thr.c	6 Jul 2001 05:27:23 -0000	1.4+++ libc/linuxthreads_db/td_ta_map_id2thr.c	28 Dec 2001 16:41:29 -0000	1.5@@ -28,7 +28,7 @@   struct _pthread_descr_struct pds;   int pthread_threads_max; -  LOG (__FUNCTION__);+  LOG ("td_ta_map_id2thr");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_map_lwp2thr.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,vretrieving revision 1.5retrieving revision 1.6diff -u -r1.5 -r1.6--- libc/linuxthreads_db/td_ta_map_lwp2thr.c	6 Jul 2001 05:27:23 -0000	1.5+++ libc/linuxthreads_db/td_ta_map_lwp2thr.c	28 Dec 2001 16:41:29 -0000	1.6@@ -1,5 +1,5 @@ /* Which thread is running on an lwp?-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -34,7 +34,7 @@ # define num 1 #endif -  LOG (__FUNCTION__);+  LOG ("td_ta_map_lwp2thr");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_new.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,vretrieving revision 1.10retrieving revision 1.11diff -u -r1.10 -r1.11--- libc/linuxthreads_db/td_ta_new.c	6 Jul 2001 05:27:23 -0000	1.10+++ libc/linuxthreads_db/td_ta_new.c	28 Dec 2001 16:41:29 -0000	1.11@@ -35,7 +35,7 @@   psaddr_t addr;   struct agent_list *elemp; -  LOG (__FUNCTION__);+  LOG ("td_ta_new");    /* Get the global event mask.  This is one of the variables which      are new in the thread library to enable debugging.  If it isIndex: td_ta_reset_stats.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_reset_stats.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_reset_stats.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Reset statistics.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -25,7 +25,7 @@ td_ta_reset_stats (const td_thragent_t *ta) {   /* XXX We have to figure out what has to be done.  */-  LOG (__FUNCTION__);+  LOG ("td_ta_reset_stats");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_set_event.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,vretrieving revision 1.4retrieving revision 1.5diff -u -r1.4 -r1.5--- libc/linuxthreads_db/td_ta_set_event.c	6 Jul 2001 05:27:23 -0000	1.4+++ libc/linuxthreads_db/td_ta_set_event.c	28 Dec 2001 16:41:29 -0000	1.5@@ -1,5 +1,5 @@ /* Globally enable events.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -29,7 +29,7 @@   td_thr_events_t old_event;   int i; -  LOG (__FUNCTION__);+  LOG ("td_ta_set_event");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_setconcurrency.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,vretrieving revision 1.3retrieving revision 1.4diff -u -r1.3 -r1.4--- libc/linuxthreads_db/td_ta_setconcurrency.c	6 Jul 2001 05:27:23 -0000	1.3+++ libc/linuxthreads_db/td_ta_setconcurrency.c	28 Dec 2001 16:41:29 -0000	1.4@@ -1,5 +1,5 @@ /* Set suggested concurrency level for process.-   Copyright (C) 1999 Free Software Foundation, Inc.+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.    This file is part of the GNU C Library.    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -25,7 +25,7 @@ td_ta_setconcurrency (const td_thragent_t *ta, int level) {   /* This is something LinuxThreads does not support.  */-  LOG (__FUNCTION__);+  LOG ("td_ta_setconcurrency");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_thr_iter.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,vretrieving revision 1.11retrieving revision 1.12diff -u -r1.11 -r1.12--- libc/linuxthreads_db/td_ta_thr_iter.c	6 Jul 2001 05:27:23 -0000	1.11+++ libc/linuxthreads_db/td_ta_thr_iter.c	28 Dec 2001 16:41:29 -0000	1.12@@ -86,7 +86,7 @@ # define num 1 #endif -  LOG (__FUNCTION__);+  LOG ("td_ta_thr_iter");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_ta_tsd_iter.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,vretrieving revision 1.4retrieving revision 1.5diff -u -r1.4 -r1.5--- libc/linuxthreads_db/td_ta_tsd_iter.c	6 Jul 2001 05:27:23 -0000	1.4+++ libc/linuxthreads_db/td_ta_tsd_iter.c	28 Dec 2001 16:41:29 -0000	1.5@@ -29,7 +29,7 @@   int pthread_keys_max;   int cnt; -  LOG (__FUNCTION__);+  LOG ("td_ta_tsd_iter");    /* Test whether the TA parameter is ok.  */   if (! ta_ok (ta))Index: td_thr_clear_event.c===================================================================RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -