meseretakalu / iptux

Automatically exported from code.google.com/p/iptux
0 stars 0 forks source link

amd64 平台编译失败 #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
日志文件如下:

g++ -DHAVE_CONFIG_H -I. -I..  -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 -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DGETTEXT_PACKAGE=\""iptux"\" -D__LOCALE_DIR=\""/usr/share/locale"\"
-D__LOGO_DIR=\""/usr/share/pixmaps"\"
-D__BACK_DIR=\""/usr/share/iptux/back"\"
-D__ICON_DIR=\""/usr/share/iptux/icon"\"
-D__TIP_DIR=\""/usr/share/iptux/tip"\" -D__IP_TUX__ -DWARNING    -O3 -MT
utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cpp
utils.cpp: In function 'char* _iconv(const char*, const char*, const char*)':
utils.cpp:45: error: cast from 'void*' to 'int' loses precision

Original issue reported on code.google.com by lidaob...@gmail.com on 2 Nov 2008 at 11:52

GoogleCodeExporter commented 8 years ago
补丁:

--- iptux-0.3.3.orig/src/utils.cpp
+++ iptux-0.3.3/src/utils.cpp
@@ -42,7 +42,7 @@
        size_t size, len;

        cd = iconv_open(tocode, fromcode);
-       if ((int)cd == -1) {
+       if (cd == iconv_t(-1)) {
                pwarning(Fail,
                         _("act: create encode conversion table,warning: %s\n"),
                         strerror(errno));

Original comment by lidaob...@gmail.com on 2 Nov 2008 at 12:22

GoogleCodeExporter commented 8 years ago
定会尽早修正,多谢!!

Original comment by jal...@163.com on 3 Nov 2008 at 9:46

GoogleCodeExporter commented 8 years ago

Original comment by jal...@163.com on 9 Nov 2008 at 7:32