Problem on compiling fcitx, undefined reference to '_XpmCreateImageFromData'

Xu Ning xuning@sinosoft-technology.com
Sat Jun 6 00:24:00 GMT 2009


Dear All

When compiling fcitx 3.6.0 with gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) but some errors.
I have libXpm and libiconv installed.

Any one have same problem and could give some advice?

Thank a lot !

ERROR MESSAGE ===============================================================================
$ make
make  all-recursive
make[1]: Entering directory `/home/Administrator/tools/fcitx-3.6.0-rc'
Making all in doc
make[2]: Entering directory `/home/Administrator/tools/fcitx-3.6.0-rc/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Administrator/tools/fcitx-3.6.0-rc/doc'
Making all in xpm
make[2]: Entering directory `/home/Administrator/tools/fcitx-3.6.0-rc/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Administrator/tools/fcitx-3.6.0-rc/xpm'
Making all in lib
make[2]: Entering directory `/home/Administrator/tools/fcitx-3.6.0-rc/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Administrator/tools/fcitx-3.6.0-rc/lib'
Making all in src
make[2]: Entering directory `/home/Administrator/tools/fcitx-3.6.0-rc/src'
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduc
e -g -O2    -D_USE_XFT -Wall -MT InputWindow.o -MD -MP -MF .deps/InputWindow.Tpo -c -o InputWindow.o
 InputWindow.c
mv -f .deps/InputWindow.Tpo .deps/InputWindow.Po
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduc
e -g -O2    -D_USE_XFT -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduc
e -g -O2    -D_USE_XFT -Wall -MT tools.o -MD -MP -MF .deps/tools.Tpo -c -o tools.o tools.c
tools.c:695: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c:700: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c:736: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c:741: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c:1064: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c:1069: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c:1074: warning: dereferencing type-punned pointer will break strict-aliasing rules
tools.c: In function `ConvertGBKSimple2Tradition':
tools.c:1811: warning: dereferencing type-punned pointer will break strict-aliasing rules
mv -f .deps/tools.Tpo .deps/tools.Po
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduc
e -g -O2    -D_USE_XFT -Wall -MT about.o -MD -MP -MF .deps/about.Tpo -c -o about.o about.c
about.c: In function `InitWindowProperty':
about.c:127: warning: passing arg 2 of `libiconv' from incompatible pointer type
mv -f .deps/about.Tpo .deps/about.Po
gcc -O2 -fno-strength-reduce -g -O2    -D_USE_XFT -Wall -lXpm  -o fcitx.exe IC.o ime.o InputWindow.o
 KeyList.o main.o MainWindow.o MyErrorsHandlers.o punc.o py.o PYFA.o pyMapTable.o pyParser.o sp.o to
ols.o ui.o table.o xim.o qw.o vk.o about.o QuickPhrase.o AutoEng.o extra.o internalVersion.o ../lib/
libXimd.a -lX11
InputWindow.o: In function `DrawInputWindow':
/home/Administrator/tools/fcitx-3.6.0-rc/src/InputWindow.c:444: undefined reference to `_XpmCreateIm
ageFromData'
/home/Administrator/tools/fcitx-3.6.0-rc/src/InputWindow.c:436: undefined reference to `_XpmCreateIm
ageFromData'
MainWindow.o: In function `DrawMainWindow':
/home/Administrator/tools/fcitx-3.6.0-rc/src/MainWindow.c:250: undefined reference to `_XpmCreateIma
geFromData'
/home/Administrator/tools/fcitx-3.6.0-rc/src/MainWindow.c:198: undefined reference to `_XpmCreateIma
geFromData'
/home/Administrator/tools/fcitx-3.6.0-rc/src/MainWindow.c:193: undefined reference to `_XpmCreateIma
geFromData'
MainWindow.o:/home/Administrator/tools/fcitx-3.6.0-rc/src/MainWindow.c:241: more undefined reference
s to `_XpmCreateImageFromData' follow
ui.o: In function `InitX':
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:129: undefined reference to `_libiconv_open'
ui.o: In function `CreateFont':
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:250: undefined reference to `_XftFontOpen'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:254: undefined reference to `_XftFontOpen'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:258: undefined reference to `_XftFontOpen'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:263: undefined reference to `_XftFontOpen'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:268: undefined reference to `_XftFontOpen'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:272: undefined reference to `_XftDrawCreate'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:249: undefined reference to `_XftFontClose'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:271: undefined reference to `_XftDrawDestroy'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:267: undefined reference to `_XftFontClose'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:262: undefined reference to `_XftFontClose'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:257: undefined reference to `_XftFontClose'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:253: undefined reference to `_XftFontClose'
ui.o: In function `StringWidth':
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:540: undefined reference to `_libiconv'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:542: undefined reference to `_XftTextExtentsUtf8'
ui.o: In function `FontHeight':
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:565: undefined reference to `_libiconv'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:568: undefined reference to `_XftTextExtentsUtf8'
ui.o: In function `OutputString':
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:618: undefined reference to `_libiconv'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:626: undefined reference to `_XftColorAllocValue'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:627: undefined reference to `_XftDrawChange'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:628: undefined reference to `_XftDrawStringUtf8'
/home/Administrator/tools/fcitx-3.6.0-rc/src/ui.c:630: undefined reference to `_XftColorFree'
xim.o: In function `SendHZtoClient':
/home/Administrator/tools/fcitx-3.6.0-rc/src/xim.c:507: undefined reference to `_libiconv'
xim.o: In function `InitXIM':
/home/Administrator/tools/fcitx-3.6.0-rc/src/xim.c:574: undefined reference to `_strcasestr'
vk.o: In function `DrawVKWindow':
/home/Administrator/tools/fcitx-3.6.0-rc/src/vk.c:149: undefined reference to `_XpmCreateImageFromDa
ta'
about.o: In function `InitWindowProperty':
/home/Administrator/tools/fcitx-3.6.0-rc/src/about.c:127: undefined reference to `_libiconv'
about.o: In function `setIcon':
/home/Administrator/tools/fcitx-3.6.0-rc/src/about.c:194: undefined reference to `_XpmCreatePixmapFr
omData'
/home/Administrator/tools/fcitx-3.6.0-rc/src/about.c:196: undefined reference to `_XpmGetErrorString
'
extra.o: In function `ExtraGetSelect':
/home/Administrator/tools/fcitx-3.6.0-rc/src/extra.c:387: undefined reference to `_libiconv'
extra.o: In function `LoadExtraIM':
/home/Administrator/tools/fcitx-3.6.0-rc/src/extra.c:424: undefined reference to `_libiconv_open'
collect2: ld returned 1 exit status
make[2]: *** [fcitx.exe] Error 1
make[2]: Leaving directory `/home/Administrator/tools/fcitx-3.6.0-rc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/tools/fcitx-3.6.0-rc'
make: *** [all] Error 2

ERROR MESSAGE END ======================================================================
 
Xu Ning 
Sinosoft Technology 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list