LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1509|回复: 17

刚将openQ0.3.0.p3移植到gaim0.82.1,但是还有一些问题,请大家帮助。

[复制链接]
发表于 2004-8-29 21:02:11 | 显示全部楼层 |阅读模式
刚将openQ0.3.0.p3移植到gaim0.82.1上
#./configure
#make
#make install
都没有什么问题,而且在插件里也有QQ
但是运行时,如果启动QQ,Gaim就会关闭,启动其他的如msn,就没有问题。
使用gaim -d,查看debug信息,也没有什么有用的
==================================================
Shadow gaim-0.82.1 # gaim -d
sound: Initializing sound output drivers.
plugins: registering plugin-load signal
plugins: registering plugin-unload signal
plugins: probing /usr/local/lib/gaim/libnovell.la
plugins: probing /usr/local/lib/gaim/libnovell.so
plugins: probing /usr/local/lib/gaim/gaim-remote.la
plugins: probing /usr/local/lib/gaim/gaim-remote.so
plugins: probing /usr/local/lib/gaim/libirc.la
plugins: probing /usr/local/lib/gaim/libirc.so
plugins: probing /usr/local/lib/gaim/libmsn.la
plugins: probing /usr/local/lib/gaim/libmsn.so
plugins: probing /usr/local/lib/gaim/timestamp.la
plugins: probing /usr/local/lib/gaim/timestamp.so
plugins: probing /usr/local/lib/gaim/libzephyr.la
plugins: probing /usr/local/lib/gaim/libzephyr.so
plugins: probing /usr/local/lib/gaim/statenotify.la
plugins: probing /usr/local/lib/gaim/statenotify.so
plugins: probing /usr/local/lib/gaim/libyahoo.la
plugins: probing /usr/local/lib/gaim/libyahoo.so
plugins: probing /usr/local/lib/gaim/ssl-gnutls.la
plugins: probing /usr/local/lib/gaim/ssl-gnutls.so
plugins: probing /usr/local/lib/gaim/notify.la
plugins: probing /usr/local/lib/gaim/notify.so
plugins: probing /usr/local/lib/gaim/gestures.la
plugins: probing /usr/local/lib/gaim/gestures.so
plugins: probing /usr/local/lib/gaim/ssl-nss.la
plugins: probing /usr/local/lib/gaim/ssl-nss.so
plugins: probing /usr/local/lib/gaim/libjabber.la
plugins: probing /usr/local/lib/gaim/libjabber.so
plugins: probing /usr/local/lib/gaim/iconaway.la
plugins: probing /usr/local/lib/gaim/iconaway.so
plugins: probing /usr/local/lib/gaim/history.la
plugins: probing /usr/local/lib/gaim/history.so
plugins: probing /usr/local/lib/gaim/spellchk.la
plugins: probing /usr/local/lib/gaim/spellchk.so
plugins: probing /usr/local/lib/gaim/tcl.la
plugins: probing /usr/local/lib/gaim/tcl.so
plugins: probing /usr/local/lib/gaim/ssl.la
plugins: probing /usr/local/lib/gaim/ssl.so
plugins: probing /usr/local/lib/gaim/relnot.la
plugins: probing /usr/local/lib/gaim/relnot.so
plugins: probing /usr/local/lib/gaim/liboscar.la
plugins: probing /usr/local/lib/gaim/liboscar.so
plugins: probing /usr/local/lib/gaim/extplacement.la
plugins: probing /usr/local/lib/gaim/extplacement.so
plugins: probing /usr/local/lib/gaim/idle.la
plugins: probing /usr/local/lib/gaim/idle.so
plugins: probing /usr/local/lib/gaim/perl.la
plugins: probing /usr/local/lib/gaim/perl.so
plugins: probing /usr/local/lib/gaim/libgg.la
plugins: probing /usr/local/lib/gaim/libgg.so
plugins: probing /usr/local/lib/gaim/libqq.la
plugins: probing /usr/local/lib/gaim/libqq.so
plugins: probing /usr/local/lib/gaim/libnapster.la
plugins: probing /usr/local/lib/gaim/libnapster.so
plugins: probing /usr/local/lib/gaim/ticker.la
plugins: probing /usr/local/lib/gaim/ticker.so
plugins: probing /usr/local/lib/gaim/docklet.la
plugins: probing /usr/local/lib/gaim/docklet.so
plugins: probing /usr/local/lib/gaim/autorecon.la
plugins: probing /usr/local/lib/gaim/autorecon.so
plugins: probing /root/.gaim/icons
plugins: probing /root/.gaim/prefs.xml
plugins: probing /root/.gaim/blist.xml
plugins: probing /root/.gaim/smileys
plugins: probing /root/.gaim/accels
plugins: probing /root/.gaim/qqshow
plugins: probing /root/.gaim/status.xml
plugins: probing /root/.gaim/accounts.xml
plugins: registering plugin-load signal
plugins: registering plugin-unload signal
plugins: registering plugin-load signal
plugins: registering plugin-unload signal
blist import: Reading /root/.gaim/blist.xml
blist import: Finished reading /root/.gaim/blist.xml
prefs: Reading /root/.gaim/prefs.xml
prefs: Finished reading /root/.gaim/prefs.xml
prefs: removing pref /core/away/auto_response/enabled
prefs: removing pref /core/away/auto_response/idle_only
prefs: removing pref /core/away/auto_response
plugins: Loading saved plugin docklet.so
tray icon: plugin loaded
tray icon: created
plugins: Loading saved plugin notify.so
plugins: Loading saved plugin ssl-gnutls.so
plugins: Loading saved plugin ssl.so
pounces: Error reading pounces: 无法打开文件“/root/.gaim/pounces.xml”:没有那个文件或目录
Session Management: ICE initialized.
Session Management: Connecting with no previous ID
Session Management: Handling new ICE connection... done.
Session Management: Connected to manager (KDE) with client ID 11c0a80106000109378462400000186810056
Session Management: Using gaim as command
Session Management: Received first save_yourself
Session Management: Received save_complete
tray icon: embedded                     <=================这里之后点击登陆QQ
account: Connecting to account 0x81d9a30. gc = 0x832b4e8
connection: Connecting. gc = 0x832b4e8
connection: Calling serv_login
server: gaim 0.82.1 logging in 120160195 using QQ
Gaim has segfaulted and attempted to dump a core file.
This is a bug in the software and has happened through
no fault of your own.

It is possible that this bug is already fixed in CVS.
If you can reproduce the crash, please notify the gaim
maintainers by reporting a bug at
http://gaim.sourceforge.net/bug.php

Please make sure to specify what you were doing at the time,
and post the backtrace from the core file. If you do not know
how to get the backtrace, please get instructions at
http://gaim.sourceforge.net/gdb.php. If you need further
assistance, please IM either RobFlynn or SeanEgn and
they can help you.
已放弃
Shadow gaim-0.82.1 #
================================================
 楼主| 发表于 2004-8-29 21:15:53 | 显示全部楼层
能不能有哪位帮忙调试一下,或给一些建议......
 楼主| 发表于 2004-8-29 21:27:42 | 显示全部楼层
如果需要,可以告诉我上传到什么地方。
发表于 2004-8-29 23:47:24 | 显示全部楼层

协议接口更新了,要改代码编译后才可以使用。

你先试着用 gdb bt 一下,应该可以找出来在什么附近。



另外把这个里面的相关内容改一改,就不会 crash 了:
GaimPluginProtocolInfo




最初由 orphen 发表
能不能有哪位帮忙调试一下,或给一些建议......
 楼主| 发表于 2004-8-30 00:44:05 | 显示全部楼层
没有找到你所说的GaimPluginProtocolInfo
查看了ChangeLog.API按照修改了qq中的头文件的调用。
发表于 2004-8-30 00:50:38 | 显示全部楼层
你的 grep 不会出问题了吧?
尽管我的描述也不太清楚。

不妨把没找到的经验共享一下,以免下次我遇到相同的问题?


qq.c:
...
...
GaimPlugin *my_protocol = NULL;
GaimPluginProtocolInfo prpl_info = {
        GAIM_PRPL_API_VERSION,
        0,                        /* mail check option */
        NULL,                        /* user_splits */
        NULL,                        /* protocol_options */
        NO_BUDDY_ICONS,                /* icon_spec */
        _qq_list_icon,                // 5 This must be defined and return
        // non-NULL string
        _qq_list_emblems,        // 6
        _qq_status_text,        // 7
        _qq_tooltip_text,        // 8
        _qq_away_states,        // 9
        _qq_buddy_menu,                // 10
        qq_chat_info,                // 11
        NULL,                        /* chat_info_defaults */
        _qq_login,                // 12
        _qq_close,                // 13
        _qq_send_im,                // 14
...
...


最初由 orphen 发表
没有找到你所说的GaimPluginProtocolInfo
查看了ChangeLog.API按照修改了qq中的头文件的调用。
 楼主| 发表于 2004-8-30 00:57:39 | 显示全部楼层
晕~
我还以为你说的是gaim/plugin/protocol/info呢......
 楼主| 发表于 2004-8-30 01:00:12 | 显示全部楼层
......
不会改......qq.c
应该从哪里下手呢?
似乎是各项的定义......
可是,该如何定义呢?
发表于 2004-8-30 08:51:34 | 显示全部楼层
啊,那已经是加好的了。
因为加了别的,所以贴 patch 会麻烦。
那你移植都改了哪些内容?是只有编译错误更正?

有没有好的修改大家共享一下?


BTW: 这个改动是从编译错误里面找出来的更正。
如前所贴,改动的就只有一行:
("...// 11" 和 "...// 12" 之间的这一行是新加进来的)

qq_chat_info, // 11
NULL, /* chat_info_defaults */
_qq_login, // 12


最初由 orphen 发表
......
不会改......qq.c
应该从哪里下手呢?
似乎是各项的定义......
可是,该如何定义呢?
发表于 2004-8-30 12:20:02 | 显示全部楼层
http://linuxer.512j.com/OpenQ.tar.bz2
你能在这里找到源代码!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表