|
发表于 2006-3-21 15:30:32
|
显示全部楼层
Post by mars_engle
我写了一个补丁修正了这个问题,但不知道怎么提交,我把我修改的内容贴上来。修改是基于openq-0.3.2,gaim 的版本是1.5.0下面是修改的步骤:
1. 运行"tar -xjvf openq-0.3.2.qq2006.patch.tar.bz2 -C /tmp", 解压下载的附件。
2。进入到openq 0.3.2的源代码目录里,运行命令"patch -p1 -i /tmp/openq-0.3.2.qq2006.patch".
3. 按标准的openq编译方法再编译一遍就行了。
希望楼主弄的详细点:
我先根据楼主说的,打patch,结果失败,
# patch -p1 -i /tmp/openq-0.3.2.qq2006.patch
patching file src/header_info.c
Hunk #2 succeeded at 81 (offset 4 lines).
patching file src/header_info.h
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 57.
2 out of 2 hunks FAILED -- saving rejects to file src/header_info.h.rej
patching file src/keep_alive.c
Hunk #1 FAILED at 79.
1 out of 1 hunk FAILED -- saving rejects to file src/keep_alive.c.rej
patching file src/login_logout.c
Hunk #1 FAILED at 40.
Hunk #2 FAILED at 58.
Hunk #3 succeeded at 362 (offset 64 lines).
Hunk #4 FAILED at 381.
Hunk #5 succeeded at 420 (offset 37 lines).
Hunk #6 succeeded at 490 (offset 70 lines).
3 out of 6 hunks FAILED -- saving rejects to file src/login_logout.c.rej
patching file src/login_logout.h
Hunk #1 succeeded at 39 with fuzz 2 (offset 2 lines).
patching file src/qq.h
Hunk #1 succeeded at 68 (offset 3 lines).
patching file src/qq_proxy.c
Hunk #1 FAILED at 155.
Hunk #2 succeeded at 375 (offset 17 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/qq_proxy.c.rej
patching file src/recv_core.c
Hunk #1 FAILED at 164.
Hunk #2 succeeded at 270 (offset 6 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/recv_core.c.rej
查原因发现是因为打了一个补丁 penq_patch_06-01-31.tar
重新解压缩打patch没问题:
可是编译出错:
make all-recursive
make[1]: Entering directory `/root/software/openq-0.3.2'
Making all in intl
make[2]: Entering directory `/root/software/openq-0.3.2/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/software/openq-0.3.2/intl'
Making all in nsis
make[2]: Entering directory `/root/software/openq-0.3.2/nsis'
Making all in translations
make[3]: Entering directory `/root/software/openq-0.3.2/nsis/translations'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/software/openq-0.3.2/nsis/translations'
make[3]: Entering directory `/root/software/openq-0.3.2/nsis'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/software/openq-0.3.2/nsis'
make[2]: Leaving directory `/root/software/openq-0.3.2/nsis'
Making all in po
make[2]: Entering directory `/root/software/openq-0.3.2/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/software/openq-0.3.2/po'
Making all in src
make[2]: Entering directory `/root/software/openq-0.3.2/src'
source='utils.c' object='utils.lo' libtool=yes\
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATADIR=\"/usr/local/share\" -DLIBDIR=\"/usr/local/lib/gaim/\" -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -DGAIM_PLUGINS -Wall -g -O2 -Wall -g3 -c -o qq.lo `test -f 'qq.c' || echo './'`qq.c
qq.c: In function `_qq_away_states':
qq.c:263: `GAIM_AWAY_CUSTOM' undeclared (first use in this function)
qq.c:263: (Each undeclared identifier is reported only once
qq.c:263: for each function it appears in.)
qq.c: In function `_qq_set_away':
qq.c:276: structure has no member named `away'
qq.c:277: structure has no member named `away'
qq.c:278: structure has no member named `away'
qq.c:283: structure has no member named `away'
qq.c:285: structure has no member named `away'
qq.c:292: `GAIM_AWAY_CUSTOM' undeclared (first use in this function)
qq.c:293: structure has no member named `is_idle'
qq.c:298: structure has no member named `is_idle'
qq.c: At top level:
qq.c:307: parse error before "GaimConvImFlags"
qq.c: In function `_qq_send_im':
qq.c:312: `gc' undeclared (first use in this function)
qq.c:312: `who' undeclared (first use in this function)
qq.c:316: `message' undeclared (first use in this function)
qq.c:318: `flags' undeclared (first use in this function)
qq.c:318: `GAIM_CONV_IM_AUTO_RESP' undeclared (first use in this function)
qq.c: In function `_qq_buddy_menu':
qq.c:685: `GaimBlistNodeAction' undeclared (first use in this function)
qq.c:685: `act' undeclared (first use in this function)
qq.c:688: warning: implicit declaration of function `gaim_blist_node_action_new'qq.c: In function `_qq_chat_menu':
qq.c:702: `GaimBlistNodeAction' undeclared (first use in this function)
qq.c:702: `act' undeclared (first use in this function)
qq.c: At top level:
qq.c:813: warning: initialization from incompatible pointer type
qq.c:815: warning: initialization from incompatible pointer type
qq.c:816: warning: initialization from incompatible pointer type
qq.c:826: warning: initialization from incompatible pointer type
qq.c:845: warning: initialization from incompatible pointer type
qq.c:846: warning: initialization from incompatible pointer type
qq.c:858: warning: initialization from incompatible pointer type
qq.c:861: warning: initialization from incompatible pointer type
qq.c:862: warning: initialization from incompatible pointer type
make[2]: *** [qq.lo] Error 1
make[2]: Leaving directory `/root/software/openq-0.3.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/software/openq-0.3.2'
make: *** [all] Error 2 |
|