I'm filing a marathon of gnome2 bugs of the same nature, Please excuse the terseness. If more information is needed ill gladly provide it #emerge -v1 gedit produces: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libgedit.a(gedit-object-module.o): undefined reference to symbol 'g_module_symbol' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_module_symbol' is defined in DSO /usr/lib64/libgmodule-2.0.so.0 so try adding it to the linker command line /usr/lib64/libgmodule-2.0.so.0: could not read symbols: Invalid operation # LDFLAGS="/usr/lib64/libgmodule-2.0.so" emerge -v1 gedit produces: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libgedit.a(eggsmclient-xsmp.o): undefined reference to symbol 'IceConnectionNumber' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'IceConnectionNumber' is defined in DSO /usr/lib64/libICE.so.6 so try adding it to the linker command line /usr/lib64/libICE.so.6: could not read symbols: Invalid operation I don't know how to pass more than 1 thing with LDFLAGS so i couldn't continue
Created attachment 367046 [details] build log for plain emerge -v1 gedit
(In reply to d_dart from comment #0) > I don't know how to pass more than 1 thing with LDFLAGS so i couldn't > continue You can pass it space-delimeted lists of things :) And instead of using an absolute path, it's usually better to use "-l" options to let the linker automatically find the library location. In other words, LDFLAGS="-lgmodule-2.0 -lICE"
Fixed without a revision bump. Thanks for reporting. 3.x is not affected. + 05 Jan 2014; Alexandre Rostovtsev <tetromino@gentoo.org> gedit-2.30.4.ebuild, + +files/gedit-2.30.4-underlinking.patch: + Fix underlinking failure (bug #497110, thanks to d_dart).