免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2481 | 回复: 0
打印 上一主题 下一主题

arm insight6.8_1编译错误解决办法 insight 6.8-1 http://sou [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-30 00:20 |只看该作者 |倒序浏览

       
        insight 6.8-1
       
http://sourceware.org/insight/
        A graphical interface to the GNU debugger
       
       
        unsupported :: devel
        Maintainer: robbel
        Votes: 23
       
       
License: GPL
       
       
        Last Updated: Wed, 04 Jun 2008 18:10:02 +0000
        First Submitted: Mon, 26 Feb 2007 17:50:40 +0000       
       
       
Tarball
::
Files
::
PKGBUILD
This package has been flagged out of date.       
Dependencies
libx11
        Sources
       
ftp://sourceware.org/pub/insight/releases/insight-6.8.tar.bz2
insight.profile
       
       
        Comment by: legolas558 on Thu, 17 Sep 2009 13:42:18 +0000
       
       
Modify line 1644 of gdb/eval.c
        int subscript_array[MAX_FORTRAN_DIMS] = {0};
Now it will compile successfully       
       
        Comment by: adriaticc on Fri, 19 Jun 2009 16:52:49 +0000
       
       
I know it's bad form to reference a cvs snapshot in a static way like
this, but if you need the package this PKGBUILD will work when paired
with the existing insight.install and insight.profile.
pkgname=insight
pkgver=6.8.50
pkgrel=1
pkgdesc="A graphical interface to the GNU debugger"
arch=('i686')
url="http://sourceware.org/insight/"
license=('GPL')
depends=('libx11')
install=('insight.install')
source=(ftp://sourceware.org/pub/insight/snapshots/current/insight-weekly-6.8.50-20090427-tar.bz2 insight.profile)
build() {
  cd $startdir/src/src
  sed -ie '/@include/d' gdb/doc/all-cfg.texi
  cat >>gdb/doc/all-cfg.texi
       
        Comment by: joephantom on Fri, 29 May 2009 15:56:38 +0000
       
       
Getting this error:
cc1: warnings being treated as errors
eval.c: In function ‘evaluate_subexp_standard’:
eval.c:1705: error: ‘subscript_array’ may be used uninitialized in this function
make[2]: *** [eval.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/tmp/yaourt-tmp-joephantom/aur-insight/insight/src/insight-6.8/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-joephantom/aur-insight/insight/src/insight-6.8'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build insight package.
       
       
        Comment by: firewalker on Sat, 06 Dec 2008 17:57:01 +0000
       
       
In order to work with the new xproto 7.0.14 it needs some patching.
tk.h.patch:
--- tk.h.old        2003-01-21 22:24:42.000000000 +0200
+++ insight-6.8/tk/generic/tk.h        2008-12-06 19:16:28.000000000 +0200
@@ -650,17 +650,18 @@
  *
  *---------------------------------------------------------------------------
  */
-#define VirtualEvent            (LASTEvent)
-#define ActivateNotify            (LASTEvent + 1)
-#define DeactivateNotify    (LASTEvent + 2)
-#define MouseWheelEvent     (LASTEvent + 3)
-#define TK_LASTEVENT            (LASTEvent + 4)
+#if (TK_MAJOR_VERSION > 8)
+#error Maintenance todo: Fix GenericEvent/VirtualEvent clash. [Bug 2010422]
+#endif
+#define VirtualEvent            (MappingNotify + 1)
+#define ActivateNotify            (MappingNotify + 2)
+#define DeactivateNotify    (MappingNotify + 3)
+#define MouseWheelEvent     (MappingNotify + 4)
+#define TK_LASTEVENT            (MappingNotify + 5)

#define MouseWheelMask            (1L
pkgname=insight
pkgver=6.8
pkgrel=1
pkgdesc="A graphical interface to the GNU debugger"
arch=('i686')
url="http://sourceware.org/insight/"
license=('GPL')
depends=('libx11')
install=('insight.install')
source=(ftp://sourceware.org/pub/insight/releases/$pkgname-$pkgver.tar.bz2 insight.profile tk.h.patch)
md5sums=('b403972b35520399663c7054e8132ca9' '16dddd252c8d64a1f4757626ee895b03'
         '9D7A03AC50431B5F5C2AC3250567332C')
build() {
  cd $startdir/src/
  patch -p0 -i tk.h.patch
  cd $startdir/src/$pkgname-$pkgver       
  ./configure --prefix=/opt/insight --mandir=/opt/insight/share/man --infodir=/opt/insight/share/info
  make || return 1
make prefix=$startdir/pkg/opt/insight
mandir=$startdir/pkg/opt/insight/share/man
infodir=$startdir/pkg/opt/insight/share/info install || return 1
  rm -rf $startdir/pkg/opt/insight/share/info
  # environment variables
  mkdir -p $startdir/pkg/etc/profile.d
  install -m755 $startdir/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
}       
       
        Comment by: GuoXi on Mon, 30 Jun 2008 09:49:57 +0000
       
       
i get a error:
"can't create dir “/home/guoxi/src/insight/pkg/opt/insight/share/itcl3.2”: file exist"
the original error message is chinese, i translate it into english.
Thank you~~~
       
       
        Comment by: robbel on Wed, 04 Jun 2008 18:10:45 +0000
       
       
Version bump to 6.8       
       
        Comment by: robbel on Sat, 17 Nov 2007 20:44:06 +0000
       
       
Version bump to 6.7.1       
       
        Comment by: robbel on Mon, 26 Feb 2007 17:50:57 +0000
       
       
Initial release.       
       


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/101140/showart_2134936.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP