无法构建ORBIT2:修复显然发现但它在哪里?

时间:2014-08-31 09:06:15

标签: linux makefile orbit

我无法编译ORBIT2:

make[3]: Entering directory `/home/software/orbit2/ORBit2-2.14.19/linc2/src'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../linc2/include -I../../linc2/include -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -D_GNU_SOURCE    -g -O2 -Werror-implicit-function-declaration  -MT linc.lo -MD -MP -MF .deps/linc.Tpo -c -o linc.lo linc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../linc2/include -I../../linc2/include -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -D_GNU_SOURCE -g -O2 -Werror-implicit-function-declaration -MT linc.lo -MD -MP -MF .deps/linc.Tpo -c linc.c  -fPIC -DPIC -o .libs/linc.o
linc.c: In function ‘link_init’:
linc.c:199:2: error: implicit declaration of function ‘g_thread_supported’
linc.c:200:3: error: implicit declaration of function ‘g_thread_init’
linc.c:204:2: warning: ‘g_type_init’ is deprecated (declared at /usr/local/include/glib-2.0/gobject/gtype.h:667)
linc.c:262:3: error: implicit declaration of function ‘g_cond_new’
linc.c:262:18: warning: assignment makes pointer from integer without a cast
linc.c:263:23: warning: assignment makes pointer from integer without a cast
linc.c: In function ‘link_mutex_new’:
linc.c:324:3: error: implicit declaration of function ‘g_mutex_new’
linc.c:324:3: warning: return makes pointer from integer without a cast
linc.c: In function ‘link_exec_set_io_thread’:
linc.c:463:3: error: implicit declaration of function ‘g_thread_create_full’
linc.c:464:4: error: ‘G_THREAD_PRIORITY_NORMAL’ undeclared (first use in this function)
linc.c:464:4: note: each undeclared identifier is reported only once for each function it appears in
linc.c: In function ‘link_mainloop_handle_input’:
linc.c:94:7: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result

该错误已在2013年10月报告并明显修复: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707456 但修复程序似乎没有在上游提交(最新版本2010): ftp://ftp.gnome.org/pub/gnome/sources/ORBit2/2.14
也不是git存储库(自2013年初以来只有3次提交):
https://git.gnome.org/browse/ORBit2/ 但我找不到解决问题的补丁。

此问题也设置为“固定”:
https://bugs.archlinux.org/task/39138
但是又有补丁吗?

我不明白这些发行版是如何工作的。似乎找到了一个修复程序令人沮丧,但我找不到它。

我不理解debian问题中orbit2-NMU.patch的内容。

1 个答案:

答案 0 :(得分:2)

除了对debian软件包的更改之外,我唯一可以看到的更改是从linc2 / src / Makefile.am中的CPPFLAGS中删除“-DG_DISABLE_DEPRECATED”

试试吧!