我无法编译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的内容。
最佳答案
除了对debian包的更改之外,我唯一能发现的更改是从linc2/src/makefile.am中的cppflags中删除“-dg_disable_deprecated”
试试看!