cht電腦資訊gcin
adm Find login register

使用 RPM_OPT_FLAGS 以及 64bit-portability-issue 還有 i18n

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
1subject: 使用 RPM_OPT_FLAGS 以及 64bit-portability-issue 還有 i18nPromote 0 Bookmark 02012-05-24quote  

大家好

在 openSUSE Build Service 上編譯 2.7.6.1

發生如下的警告

是否能夠幫忙修正,謝謝

另,使用英文語系時,在 gcin-tools 中有部份中文字串,是否 i18n 的部份已不再維護?

(預告一下,openSUSE 12.2 繁體中文(可能)會使用 gcin 作為預設輸入法)

I: File is compiled without RPM_OPT_FLAGS
W: gcin no-rpm-opt-flags <cmdline>:*.cpp, gcin.cpp, eve.cpp, util.cpp, gcin-conf.cpp, gcin-settings.cpp, locale.cpp, gcin-icon.cpp, about.cpp, html-browser.cpp, gcin-exec-script.cpp, win-message.cpp, win-sym.cpp, win-inmd-switch.cpp, pinyin.cpp, win-pho-near.cpp, win-kbm.cpp, gcin-module.cpp, pho2pinyin.cpp, pho.cpp, tsin.cpp, gtab.cpp, t2s-lookup.cpp, pho-play.cpp, cache.cpp, gtk_bug_fix.c, phrase-save-menu.cpp, win-pho.cpp, pho-util.cpp, pho-sym.cpp, table-update.cpp, pho-dbg.cpp, win-gtab.cpp, gtab-util.cpp, gtab-list.cpp, gtab-buf.cpp, gcin-common.cpp, phrase.cpp, gtab-use-count.cpp, win-save-phrase.cpp, unix-exec.cpp, pho-kbm-name.cpp, statistic.cpp, tsin-scan.cpp, lang.cpp, gcin-module-cb.cpp, gtab-init.cpp, fullchar.cpp, gtab-tsin-fname.cpp, IC.cpp, tray.cpp, eggtrayicon.cpp, tray-win32.cpp, tsin-util.cpp, win0.cpp, win1.cpp, tsin-parse.cpp, gcb.cpp, IMConn.c, IMMethod.c, FrameMgr.c, i18nIMProto.c, i18nAttr.c, i18nMethod.c, i18nUtil.c, i18nPtHdr.c, i18nIc.c, i18nClbk.c, i18nX.c, im-addr.cpp, im-dispatch.cpp, im-srv.cpp, gcin-crypt.cpp, tsd2a32.cpp, gtab-dbg.cpp, tsa2d32.cpp, gcin-send.cpp, pho-lookup.cpp, gcin-im-client.cpp, ../im-addr.cpp, ../gcin-conf.cpp, ../util.cpp, ../gcin-crypt.cpp, imgcin.c, gtkimcontextgcin.c, phoa2d.cpp, phod2a.cpp, tslearn.cpp, gcin-setup.cpp, gcin-setup-list.cpp, gcin-setup-pho.cpp, gcin-setup-gtab.cpp, gcin2tab.cpp, juyin-learn.cpp, sim2trad.cpp, gcin-gb-toggle.cpp, gcin-message.cpp, gtab-merge.cpp, gcin-kbm-toggle.cpp, tsin2gtab-phrase.cpp, gcin-exit.cpp, ts-edit.cpp, ts-upload.cpp, ts-download.cpp, kbmcv.cpp, pin-juyin.cpp, extr1.c, t2s-file.c, intcode.cpp, win-int.cpp, anthy.cpp, chewing-conf.cpp, chewing.cpp, gcin-setup-chewing.cpp, qgcininputcontextplugin.h_moc.cpp, qgcininputcontextplugin_my.cpp, qgcininputcontext.h_moc.cpp, qgcininputcontext_x11.cpp, moc_gcin-qt.cpp, im-gcin-qt.cpp, gcin-imcontext-qt.cpp
E: gcin 64bit-portability-issue win-int.cpp:171

eliu

joined: 2007-08-09
posted: 11482
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: 使用 RPM_OPT_FLAGS 以及 64bit-portability-issue 還有 i18nPromote 0 Bookmark 02012-05-24quote  

swyear
I: File is compiled without RPM_OPT_FLAGS

請參考

~/gcin/gcin-fedora.spec.in

%build
%configure
perl -pi -e "s/^(OPTFLAGS.*=)/\1 %{optflags} /" config.mak
# fixme: explain how %%{?_smp_mflags} breaks build?
make

不清楚 suse 的 .spec 是否要用同樣的?

E: gcin 64bit-portability-issue win-int.cpp:171

會在下一版 fix

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
3subject: 使用 RPM_OPT_FLAGS 以及 64bit-portability-issue 還有 i18nPromote 0 Bookmark 02012-05-25quote  

eliu

 

請參考

~/gcin/gcin-fedora.spec.in

%build
%configure
perl -pi -e "s/^(OPTFLAGS.*=)/\1 %{optflags} /" config.mak
# fixme: explain how %%{?_smp_mflags} breaks build?
make

不清楚 suse 的 .spec 是否要用同樣的?

 

會在下一版 fix

在 spec 檔中加了上面敘述之後已經不再抱怨 64-bit issue 抱歉寫錯了,是 optflags

但是多了以下的資訊,請也幫忙修正,謝謝

I: Program is using implicit definitions of functions getting
   pointers or implemented by macros. These functions need to use their
   correct prototypes to allow correct argument passing on e.g. x86_64 .
     - Implicit memory/string functions need #include <string.h>.
     - Implicit *printf functions need #include <stdio.h>.
     - Implicit *printf functions need #include <stdio.h>.
     - Implicit *read* functions need #include <unistd.h>.
     - Implicit *recv* functions need #include <sys/socket.h>.
W: gcin implicit-pointer-decl t2s-file.c:29

I: A function uses a 'return;' statement, but has actually a value
   to return, like an integer ('return 42;') or similar.
W: gcin voidreturn gcin-exit.cpp:15
W: gcin voidreturn pho-play.cpp:15
E: gcin 64bit-portability-issue win-int.cpp:171

I: Program returns random data in a function
E: gcin no-return-in-nonvoid-function html-browser.cpp:27

I: Program returns random data in a function
E: gcin no-return-in-nonvoid-function html-browser.cpp:27

 

最近 obs 常當機...

edited: 1
lcp
joined: 2011-09-15
posted: 7
promoted:
bookmarked:
4subject: 使用 RPM_OPT_FLAGS 以及 64bit-portability-issue 還有 i18nPromote 0 Bookmark 02012-05-29quote  

swyear

E: gcin 64bit-portability-issue win-int.cpp:171

我發現這個 error 是因為 gtk3 把 GTK_OBJECT 拿掉了,改成 GTK_BUTTON 就好了

eliu

joined: 2007-08-09
posted: 11482
promoted: 617
bookmarked: 187
新竹, 台灣
5subject: Promote 0 Bookmark 02012-05-29quote  

or use G_OBJECT

cht電腦資訊gcin
adm Find login register
views:12122