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

📄 binutils-2.15-psignal.patch

📁 linux下编译交叉工具链的工具源码
💻 PATCH
字号:
Make psignal prototype in libiberty match that in glibc.Fixes:gcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c: In function `psignal':gcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c:563: argument `signo' doesn't match prototype/usr/include/signal.h:131: prototype declarationgcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c:563: argument `message' doesn't match prototype/usr/include/signal.h:131: prototype declarationgcc-2.95.3-glibc-2.1.3/binutils-2.15/libiberty/strsignal.c:568: warning: comparison between signed and unsignedmprotect... make[1]: *** [strsignal.o] Error 1make[1]: Leaving directory `/export/hda3/dkegel/queue/jobdir.produser_cpsm17/crosstool-0.32/build/i686-unknown-linux-gnu/gcc-2.95.3-glibc-2.1.3/build-binutils/libiberty'make: *** [all-libiberty] Error 2when building on red hat 7.1though it's a bit of a mystery why libiberty's psignal is being compiled atall, since red hat 7.1's glibc supports psignal (hence the error message)--- binutils-2.15/libiberty/strsignal.c.old	2005-04-18 13:57:40.000000000 -0700+++ binutils-2.15/libiberty/strsignal.c	2005-04-18 13:59:09.000000000 -0700@@ -544,7 +544,7 @@  /* -@deftypefn Supplemental void psignal (unsigned @var{signo}, char *@var{message})+@deftypefn Supplemental void psignal (int @var{signo}, const char *@var{message})  Print @var{message} to the standard error, followed by a colon, followed by the description of the signal specified by @var{signo},@@ -557,9 +557,7 @@ #ifndef HAVE_PSIGNAL  void-psignal (signo, message)-  unsigned signo;-  char *message;+psignal (int signo, const char *message) {   if (signal_names == NULL)     {

⌨️ 快捷键说明

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