cht電腦資訊gcin已解決問題
adm Find login register

請問 64bit-portability-issue 是什麼

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
1subject: 請問 64bit-portability-issue 是什麼Promote 0 Bookmark 02008-12-07quote  

在openSUSE Build Service 上編譯

rpm 都包出來了

但是最後出現這樣的訊息

 ... checking for files with abuild user/group
... running 00-check-install-rpms
... installing all built rpms
Preparing packages for installation...
gcin-1.4.3pre10-14.1
gcin-i18n-1.4.3pre10-14.1
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)

I: File is compiled without RPM_OPT_FLAGS
W: gcin no-rpm-opt-flags <cmdline>:*.c, gcin.c, eve.c, util.c, gcin-conf.c, gcin-settings.c, locale.c, gcin-icon.c, gcin-switch.c, gcin-exec-script.c, intcode.c, win-int.c, win-message.c, win-sym.c, win-inmd-switch.c, pinyin.c, win-pho-near.c, win-kbm.c, tsin-char.c, t2s-lookup.c, pho-play.c, cache.c, win-pho.c, pho-util.c, pho-sym.c, table-update.c, pho-dbg.c, gtab.c, win-gtab.c, gtab-util.c, gtab-list.c, gtab-buf.c, gcin-common.c, gcb.c, phrase.c, IC.c, tray.c, eggtrayicon.c, tsin.c, tsin-util.c, win0.c, win1.c, tsin-parse.c, IMConn.c, IMValues.c, IMMethod.c, FrameMgr.c, i18nIMProto.c, i18nAttr.c, i18nMethod.c, i18nUtil.c, i18nPtHdr.c, i18nIc.c, i18nClbk.c, i18nX.c, im-srv.c, im-addr.c, im-dispatch.c, ../im-client/gcin-crypt.c, tsd2a.c, tsd2a32.c, tsa2d32.c, gcin-send.c, pho-lookup.c, phoa2d.c, phod2a.c, tslearn.c, gcin-setup.c, gcin-setup-list.c, gcin-setup-pho.c, about.c, gcin-setup-gtab.c, gcin2tab.c, juyin-learn.c, sim2trad.c, gcin-gb-toggle.c, gcin-message.c, gtab-merge.c, gcin-setup-tab.c, gcin-kbm-toggle.c, kbmcv.c, pin-juyin.c, extr1.c, t2s-file.c, gcin-im-client.c, ../im-srv/im-addr.c, ../gcin-conf.c, ../util.c, imgcin.c, gtkimcontextgcin.c, qgcininputcontextplugin.h_moc.cpp, qgcininputcontextplugin_my.cpp, qgcininputcontext.h_moc.cpp, qgcininputcontext_x11.cpp, *.cpp, moc_gcin-qt.cpp, im-gcin-qt.cpp, gcin-imcontext-qt.cpp
E: gcin 64bit-portability-issue pho-play.c:15
E: gcin 64bit-portability-issue tsin-parse.c:120
System halted.)

 

caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
2subject: 請問 64bit-portability-issue 是什麼Promote 0 Bookmark 02008-12-07quote  

不同 distro 處理 32bit / 64bit multiarch 方式不同,

gcin configure / Makefile 是手刻的,可能遇到 linking 錯誤的情形。

以 Debian / Ubuntu 為例,要 fix configure。

--- gcin-1.4.3~pre10.orig/configure
+++ gcin-1.4.3~pre10/configure
@@ -107,9 +107,6 @@
 fi
 
 LIB='lib'
-if [ -d /lib64 ]; then
-LIB='lib64'
-fi
 
 QT_IM='N'
 QT_IM_DIR=/usr/lib/qt3/plugins/lib/inputmethods

guest
3subject: Promote 0 Bookmark 02008-12-07quote  

可能不是這個問題

我從 log 中找到

 gcc -O -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I./IMdkit/include -DDEBUG="0" -DGCIN_TABLE_DIR=\"/usr/share/gcin/table\" -DGCIN_OGG_DIR=\"/usr/share/gcin/ogg\" -DDOC_DIR=\"/usr/share/doc/packages/gcin\" -DGCIN_ICON_DIR=\"/usr/share/icons/gcin\" -DGCIN_VERSION=\"1.4.3.pre10\" -DGCIN_SCRIPT_DIR=\"/usr/share/gcin/script\" -DGCIN_BIN_DIR=\"/usr/bin\" -DSYS_ICON_DIR=\"/usr/share/icons\" -DFREEBSD=0 -DMAC_OS=0 -DUSE_XIM=1 -DTRAY_ENABLED=1 -DGCIN_i18n_message=1 -DUSE_TSIN=1 -c -o pho-play.o pho-play.c
pho-play.c: In function 'pho_play':
pho-play.c:15: warning: initialization makes pointer from integer without a cast

 gcc -O -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I./IMdkit/include -DDEBUG="0" -DGCIN_TABLE_DIR=\"/usr/share/gcin/table\" -DGCIN_OGG_DIR=\"/usr/share/gcin/ogg\" -DDOC_DIR=\"/usr/share/doc/packages/gcin\" -DGCIN_ICON_DIR=\"/usr/share/icons/gcin\" -DGCIN_VERSION=\"1.4.3.pre10\" -DGCIN_SCRIPT_DIR=\"/usr/share/gcin/script\" -DGCIN_BIN_DIR=\"/usr/bin\" -DSYS_ICON_DIR=\"/usr/share/icons\" -DFREEBSD=0 -DMAC_OS=0 -DUSE_XIM=1 -DTRAY_ENABLED=1 -DGCIN_i18n_message=1 -DUSE_TSIN=1 -c -o tsin-parse.o tsin-parse.c
tsin-parse.c: In function 'tsin_parse_recur':
tsin-parse.c:120: warning: assignment makes pointer from integer without a cast

看起來是這兩個地方的問題

 gcc-4.3-34.168

可以去掉這兩個 warning 嗎?

swyear

eliu

joined: 2007-08-09
posted: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
5subject: Promote 0 Bookmark 02008-12-08quote  

pho.h  加上

char *phokey_to_str2(phokey_t kk, int last_number);

 

tsin-parse.h 加上

 CACHE *cache_lookup(int start);

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
6subject: Promote 0 Bookmark 02008-12-08quote  

老大謝謝您,可以了。

請問這些以後會加入原始碼中吧?

 caleb 也謝謝您

eliu

joined: 2007-08-09
posted: 11480
promoted: 617
bookmarked: 187
新竹, 台灣
7subject: Promote 0 Bookmark 02008-12-08quote  

swyear
請問這些以後會加入原始碼中吧?

yes

cht電腦資訊gcin已解決問題
adm Find login register
views:13691