HG 版本编译失败

8 views
Skip to first unread message

Carmus

unread,
Jan 4, 2011, 6:29:24 AM1/4/11
to Openfetion
Disable了这些库
==========================================
-- Libnotify support: NO
-- GStreamer support: NO
-- Xscreensaver support: NO
-- NetworkManager support: NO
==========================================

编译出错:
......
.../ofetion/openfetion/src/fx_main.c: In function ‘main’:
.../ofetion/openfetion/src/fx_main.c:1366: error: storage size of ‘sa’
isn’t known
.../ofetion/openfetion/src/fx_main.c:1367: error: ‘SIG_IGN’ undeclared
(first use in this function)
.../ofetion/openfetion/src/fx_main.c:1367: error: (Each undeclared
identifier is reported only once
.../ofetion/openfetion/src/fx_main.c:1367: error: for each function it
appears in.)
.../ofetion/openfetion/src/fx_main.c:1368: warning: implicit
declaration of function ‘sigaction’
.../ofetion/openfetion/src/fx_main.c:1368: error: ‘SIGPIPE’ undeclared
(first use in this function)
.../ofetion/openfetion/src/fx_main.c:1366: warning: unused variable
‘sa’
......

另外试了2.1.0的版本也报同样的错。

Aron Xu

unread,
Jan 4, 2011, 6:32:38 AM1/4/11
to ofe...@googlegroups.com
2011/1/4 Carmus <zij...@gmail.com>:
> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的"Openfetion "论坛。
> 要向此网上论坛发帖,请发送电子邮件至 ofe...@googlegroups.com
> 要取消订阅此网上论坛,请发送电子邮件至 ofetion+u...@googlegroups.com
> 若有更多问题,请通过 http://groups.google.com/group/ofetion?hl=zh-CN 访问此网上论坛。
>
>

说一下你的系统环境,还有 GCC 版本好,GTK 和 GLIB 版本号。最好把完整的编译 log 作为附件发上来,一份 hg 的一份 2.1.0 的。:-)

--
Regards,
Aron Xu

Caspar Zhang

unread,
Jan 4, 2011, 6:35:20 AM1/4/11
to ofe...@googlegroups.com
On 01/04/2011 07:32 PM, Aron Xu wrote:
> 说一下你的系统环境,还有 GCC 版本好,GTK 和 GLIB 版本号。最好把完整的编译 log 作为附件发上来,一份 hg 的一份 2.1.0 的。:-)
>

还有glibc的吧。这问题看起来像是/usr/include/signal.h头文件相关的。


Thanks,
Caspar Zhang
--
WEB: http://www.CasparZhang.com
Twitter: @CasparAnt
--
C-A-S-P-A-R, Caspar /kæspɑ:/ ;-)

Carmus

unread,
Jan 4, 2011, 7:06:42 AM1/4/11
to Openfetion
Debian lenny
Linux 2.6.26-2-686 #1 SMP Sat Nov 20 23:06:30 UTC 2010 i686 GNU/Linux

gcc version 4.3.2 (Debian 4.3.2-1.1)

GLIB:/lib/libc.so.6
GNU C Library stable release version 2.7, by Roland McGrath et al.

GTK: 2.12.12
gtk_binary_version=2.10.0
(整个直接抄 gtk+-2.0.pc 的)

log: (两份log没有实质性差别,故只贴了一份 HG 的)

[ 2%] Building C object CMakeFiles/openfetion.dir/src/fx_about.c.o
.../ofetion/openfetion/src/fx_about.c: In function 'follow_if_link':
.../ofetion/openfetion/src/fx_about.c:37: warning: unused parameter
'text_view'
.../ofetion/openfetion/src/fx_about.c: In function 'close_about':
.../ofetion/openfetion/src/fx_about.c:369: warning: unused parameter
'widget'
[ 5%] Building C object CMakeFiles/openfetion.dir/src/fx_addbuddy.c.o
[ 8%] Building C object CMakeFiles/openfetion.dir/src/
fx_add_group.c.o
[ 10%] Building C object CMakeFiles/openfetion.dir/src/fx_app.c.o
[ 13%] Building C object CMakeFiles/openfetion.dir/src/fx_bottom.c.o
[ 16%] Building C object CMakeFiles/openfetion.dir/src/fx_chat.c.o
.../ofetion/openfetion/src/fx_chat.c: In function
'fx_chat_send_nudge_thread':
.../ofetion/openfetion/src/fx_chat.c:856: warning: dereferencing type-
punned pointer will break strict-aliasing rules
.../ofetion/openfetion/src/fx_chat.c:875: warning: dereferencing type-
punned pointer will break strict-aliasing rules
[ 18%] Building C object CMakeFiles/openfetion.dir/src/fx_close.c.o
[ 21%] Building C object CMakeFiles/openfetion.dir/src/fx_code.c.o
[ 24%] Building C object CMakeFiles/openfetion.dir/src/fx_conn.c.o
.../ofetion/openfetion/src/fx_conn.c: In function 'fx_conn_init':
.../ofetion/openfetion/src/fx_conn.c:87: warning: unused parameter
'fxmain'
.../ofetion/openfetion/src/fx_conn.c: In function 'popup_startup_msg':
.../ofetion/openfetion/src/fx_conn.c:131: warning: unused parameter
'fxmain'
[ 27%] Building C object CMakeFiles/openfetion.dir/src/fx_dsms.c.o
[ 29%] Building C object CMakeFiles/openfetion.dir/src/fx_edit.c.o
[ 32%] Building C object CMakeFiles/openfetion.dir/src/fx_emotion.c.o
[ 35%] Building C object CMakeFiles/openfetion.dir/src/fx_gedit.c.o
[ 37%] Building C object CMakeFiles/openfetion.dir/src/fx_head.c.o
.../ofetion/openfetion/src/fx_head.c: In function
'fx_head_set_sms_clicked':
.../ofetion/openfetion/src/fx_head.c:599: warning: unused parameter
'widget'
[ 40%] Building C object CMakeFiles/openfetion.dir/src/fx_history.c.o
.../ofetion/openfetion/src/fx_history.c: In function
'fx_history_on_cleanup_clicked':
.../ofetion/openfetion/src/fx_history.c:303: warning: unused parameter
'widget'
[ 43%] Building C object CMakeFiles/openfetion.dir/src/fx_idle.c.o
[ 45%] Building C object CMakeFiles/openfetion.dir/src/fx_login.c.o
.../ofetion/openfetion/src/fx_login.c: In function
'userlist_remove_clicked':
.../ofetion/openfetion/src/fx_login.c:534: warning: unused parameter
'widget'
[ 48%] Building C object CMakeFiles/openfetion.dir/src/fx_lookup.c.o
[ 51%] Building C object CMakeFiles/openfetion.dir/src/
fx_lookupres.c.o
[ 54%] Building C object CMakeFiles/openfetion.dir/src/fx_main.c.o
.../ofetion/openfetion/src/fx_main.c: In function
'fx_main_create_menu1':
.../ofetion/openfetion/src/fx_main.c:222: warning: unused parameter
'stockid'
.../ofetion/openfetion/src/fx_main.c: In function
'popup_online_notify':
.../ofetion/openfetion/src/fx_main.c:311: warning: unused parameter
'fxmain'
.../ofetion/openfetion/src/fx_main.c:311: warning: unused parameter
'contact'
.../ofetion/openfetion/src/fx_main.c: In function 'popup_msg_notify':
.../ofetion/openfetion/src/fx_main.c:546: warning: unused parameter
'fxmain'
.../ofetion/openfetion/src/fx_main.c:546: warning: unused parameter
'senderContact'
.../ofetion/openfetion/src/fx_main.c:546: warning: unused parameter
'msg'
.../ofetion/openfetion/src/fx_main.c: In function
'fx_main_process_deregistration':
.../ofetion/openfetion/src/fx_main.c:939: warning: unused parameter
'fxmain'
.../ofetion/openfetion/src/fx_main.c: In function 'main':
.../ofetion/openfetion/src/fx_main.c:1366: error: storage size of 'sa'
isn't known
.../ofetion/openfetion/src/fx_main.c:1367: error: 'SIG_IGN' undeclared
(first use in this function)
.../ofetion/openfetion/src/fx_main.c:1367: error: (Each undeclared
identifier is reported only once
.../ofetion/openfetion/src/fx_main.c:1367: error: for each function it
appears in.)
.../ofetion/openfetion/src/fx_main.c:1368: warning: implicit
declaration of function 'sigaction'
.../ofetion/openfetion/src/fx_main.c:1368: error: 'SIGPIPE' undeclared
(first use in this function)
.../ofetion/openfetion/src/fx_main.c:1366: warning: unused variable
'sa'
.../ofetion/openfetion/src/fx_main.c: In function
'fx_main_listen_thread_func':
.../ofetion/openfetion/src/fx_main.c:1443: warning: dereferencing type-
punned pointer will break strict-aliasing rules
.../ofetion/openfetion/src/fx_main.c:1449: warning: dereferencing type-
punned pointer will break strict-aliasing rules
.../ofetion/openfetion/src/fx_main.c: In function
'fx_main_add_history':
.../ofetion/openfetion/src/fx_main.c:1860: warning: dereferencing type-
punned pointer will break strict-aliasing rules
.../ofetion/openfetion/src/fx_main.c:1863: warning: dereferencing type-
punned pointer will break strict-aliasing rules
make[2]: *** [CMakeFiles/openfetion.dir/src/fx_main.c.o] Error 1
make[1]: *** [CMakeFiles/openfetion.dir/all] Error 2
make: *** [all] Error 2
Reply all
Reply to author
Forward
0 new messages