| adm | Find | login register |
swyear joined: 2007-10-04 posted: 127 promoted: 4 bookmarked: 0 |
在 openSUSE Build Service 上編譯 出現 E: gcin 64bit-portability-issue tray.cpp:409 在 log 中可找到的相關資訊為 gcc -x c -DUNIX=1 -O -pthread -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/gdk-pixbuf-2.0 -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 -I./im-client -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.5.6.pre8\" -DGCIN_SCRIPT_DIR=\"/usr/share/gcin/script\" -DGCIN_BIN_DIR=\"/usr/bin\" -DSYS_ICON_DIR=\"/usr/share/icons\" -DFREEBSD=0 -DMAC_OS=0 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DUSE_XIM=1 -DTRAY_ENABLED=1 -DGCIN_i18n_message=1 -DUSE_TSIN=1 -DUSE_ANTHY=1 -DUSE_GCB=1 -c tray.cpp tray.cpp: In function 'create_tray': tray.cpp:409:6: warning: assignment makes pointer from integer without a cast 麻煩各位大哥幫忙一下 | |||||||
eliu joined: 2007-08-09 posted: 11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
以前怎麼沒有這個問題?
#include <signal.h> | |||||||
swyear joined: 2007-10-04 posted: 127 promoted: 4 bookmarked: 0 |
gcc -x c -DUNIX=1 -O -pthread -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/gdk-pixbuf-2.0 -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 -I./im-client -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.5.6.pre8\" -DGCIN_SCRIPT_DIR=\"/usr/share/gcin/script\" -DGCIN_BIN_DIR=\"/usr/bin\" -DSYS_ICON_DIR=\"/usr/share/icons\" -DFREEBSD=0 -DMAC_OS=0 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DUSE_XIM=1 -DTRAY_ENABLED=1 -DGCIN_i18n_message=1 -DUSE_TSIN=1 -DUSE_ANTHY=1 -DUSE_GCB=1 -c tray.cpp tray.cpp: In function 'create_tray': tray.cpp:410:6: warning: assignment makes pointer from integer without a cast 報告: 加了那行結果由 409->410 ^^ 沒用ㄟ 其實這個問題出現一陣子了 但是是在 Factory (openSUSE 的開發版本)裡出現的 所以我就拖著沒來問 還是麻煩您了 | |||||||
eliu joined: 2007-08-09 posted: 11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
make tray.E tray.E 裏面是否有
GType gdk_gc_get_type (void) __attribute__((__const__)); | |||||||
swyear joined: 2007-10-04 posted: 127 promoted: 4 bookmarked: 0 |
好像沒有 完整的 tray.E 如附檔 | |||||||
eliu joined: 2007-08-09 posted: 11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
那可能是
gdkgc.h 缺 如果無法修正這個問題,自己在 tray.c 加入 GdkGC *gdk_gc_new (GdkDrawable *drawable); 也可以 | |||||||
swyear joined: 2007-10-04 posted: 127 promoted: 4 bookmarked: 0 |
在 tray.c 加入 GdkGC *gdk_gc_new (GdkDrawable *drawable); 現在已經正常了 應該就是您說的問題 感謝 |
| adm | Find | login register |