google-code-export / imsettings

Automatically exported from code.google.com/p/imsettings
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Link fail #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download maemo5 SDK
2. download libgxim-0.3.3.tar.gz
3. try compile

What is the expected output? What do you see instead?
/bin/sh ../libtool --tag=CC   --mode=link arm-linux-gnueabi-gcc 
-DG_LOG_DOMAIN="\"GXIM\""  -Wall -g -O2 -Wall -Wmissing-prototypes  
-fno-strict-aliasing -fdiagnostics-show-option -Wl,-z,defs -version-info 3:1:1  
-Wl,-z,defs -o libgxim.la -rpath /usr/lib libgxim_la-gximattr.lo 
libgxim_la-gximclconn.lo libgxim_la-gximcltmpl.lo libgxim_la-gximconnection.lo 
libgxim_la-gximcore.lo libgxim_la-gximerror.lo libgxim_la-gximmessage.lo 
libgxim_la-gximmisc.lo libgxim_la-gximprotocol.lo libgxim_la-gximprotocol10.lo 
libgxim_la-gximsrvconn.lo libgxim_la-gximsrvtmpl.lo libgxim_la-gximtransport.lo 
libgxim_la-gximacc.lo libgxim_la-gximmarshal.lo    -Wl,-z,defs -pthread 
-lgthread-2.0 -lrt -lgio-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 
-lpango-1.0 -lcairo -lgmodule-2.0 -ldbus-glib-1 -ldbus-1 -lpthread 
-lgobject-2.0 -lglib-2.0   
arm-linux-gnueabi-gcc -shared  .libs/libgxim_la-gximattr.o 
.libs/libgxim_la-gximclconn.o .libs/libgxim_la-gximcltmpl.o 
.libs/libgxim_la-gximconnection.o .libs/libgxim_la-gximcore.o 
.libs/libgxim_la-gximerror.o .libs/libgxim_la-gximmessage.o 
.libs/libgxim_la-gximmisc.o .libs/libgxim_la-gximprotocol.o 
.libs/libgxim_la-gximprotocol10.o .libs/libgxim_la-gximsrvconn.o 
.libs/libgxim_la-gximsrvtmpl.o .libs/libgxim_la-gximtransport.o 
.libs/libgxim_la-gximacc.o .libs/libgxim_la-gximmarshal.o  
/usr/lib/libgthread-2.0.so -lrt /usr/lib/libgio-2.0.so -lgdk-x11-2.0 
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 /usr/lib/libcairo.so 
/usr/lib/libgmodule-2.0.so -ldbus-glib-1 -ldbus-1 -lpthread 
/usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so  -Wl,-z -Wl,defs -Wl,-z 
-Wl,defs -Wl,-z -Wl,defs -pthread -Wl,-soname -Wl,libgxim.so.2 -o 
.libs/libgxim.so.2.1.1
.libs/libgxim_la-gximclconn.o: In function 
`g_xim_client_transport_real_do_get_property':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximclconn.c:621: 
undefined reference to `XGetWindowProperty'
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximclconn.c:631: 
undefined reference to `XFree'
.libs/libgxim_la-gximcltmpl.o: In function 
`g_xim_cl_tmpl_send_selection_request':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximcltmpl.c:725: 
undefined reference to `XConvertSelection'
.libs/libgxim_la-gximerror.o: In function `g_xim_error_pop':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximerror.c:138: 
undefined reference to `XSetErrorHandler'
.libs/libgxim_la-gximerror.o: In function `g_xim_error_push':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximerror.c:112: 
undefined reference to `XSetErrorHandler'
.libs/libgxim_la-gximerror.o: In function `_g_xim_error_handler':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximerror.c:53: undefined 
reference to `XGetErrorText'
.libs/libgxim_la-gximmisc.o: In function `g_xim_get_selection_owner':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximmisc.c:761: undefined 
reference to `XGetSelectionOwner'
.libs/libgxim_la-gximsrvconn.o: In function 
`g_xim_server_transport_real_do_get_property':
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximsrvconn.c:637: 
undefined reference to `XGetWindowProperty'
/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim/gximsrvconn.c:647: 
undefined reference to `XFree'
collect2: ld returned 1 exit status
make[3]: *** [libgxim.la] Error 1
make[3]: Leaving directory 
`/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3/libgxim'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cm/ibus-pinyin/imsettings/libgxim-0.3.3'
make: *** [build-stamp] Error 2

What version of the product are you using? On what operating system?
0.3.3
maemo5 and Fedora

Please provide any additional information below.

Should add -lX11 to Makefile.am when do linking

Original issue reported on code.google.com by snnn119 on 1 Nov 2010 at 8:21

GoogleCodeExporter commented 9 years ago
This isn't actually an imsettings issue but libgxim. please file a bug from 
http://code.google.com/p/libgxim/issues/entry. though libgdk-x11-2.0.so usually 
should be linked against libX11.so. so this shouldn't be happened.

Original comment by ak...@tagoh.org on 1 Nov 2010 at 9:01