Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 683 by [email protected]: IBus build fails with gold linker on  
Ununtu 9.10
http://code.google.com/p/ibus/issues/detail?id=683

What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...): Ubuntu 9.10, binutils-gold Ubuntu  
package is installed.
Architecture (i386, x86_64): i386
IBus version: tip of the tree

What steps will reproduce the problem?

On /path/to/ibus-git/, run "touch ChangeLog && ./autogen.sh && make"

What is the expected output?

IBus compiles and links.

What do you see instead?

Linking fails.

/bin/bash ../libtool --tag=CC   --mode=link gcc -I/usr/include/glib-2.0  
-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0  
-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-
2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include  
-DG_LOG_DOMAIN=\"IBUS\"  -g -O2 libibus.la    -o test-text test-text.o
libtool: link: gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0  
-I/usr/lib/glib-2.0/include -I/usr/include/dbus-
1.0 -I/usr/lib/dbus-1.0/include -DG_LOG_DOMAIN=\"IBUS\" -g -O2  
-o .libs/test-text test-text.o  ./.libs/libibus.so
/usr/bin/ld: test-text.o: in function main:test-text.c:5: error: undefined  
reference to 'g_type_init'
/usr/bin/ld: test-text.o: in function main:test-text.c:25: error: undefined  
reference to 'g_object_unref'
/usr/bin/ld: test-text.o: in function main:test-text.c:26: error: undefined  
reference to 'g_object_unref'
/usr/bin/ld: test-text.o: in function main:test-text.c:34: error: undefined  
reference to 'g_strcmp0'
/usr/bin/ld: test-text.o: in function main:test-text.c:35: error: undefined  
reference to 'g_strcmp0'
/usr/bin/ld: test-text.o: in function main:test-text.c:37: error: undefined  
reference to 'g_object_unref'
/usr/bin/ld: test-text.o: in function main:test-text.c:38: error: undefined  
reference to 'g_object_unref'
/usr/bin/ld: test-text.o: in function main:test-text.c:24: error: undefined  
reference to 'g_assertion_message_expr'
/usr/bin/ld: test-text.o: in function main:test-text.c:33: error: undefined  
reference to 'g_assertion_message_expr'
/usr/bin/ld: test-text.o: in function main:test-text.c:34: error: undefined  
reference to 'g_assertion_message_cmpstr'
/usr/bin/ld: test-text.o: in function main:test-text.c:35: error: undefined  
reference to 'g_assertion_message_cmpstr'


Please provide any additional information below.

Related to issue 660, but not the same.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

-- 
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复