Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497110 - app-editors/gedit-2.30.4 fails to link libgmodule, libICE, and possibly more
Summary: app-editors/gedit-2.30.4 fails to link libgmodule, libICE, and possibly more
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-05 06:51 UTC by d_dart
Modified: 2014-01-05 08:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log for plain emerge -v1 gedit (file_497110.txt,130.27 KB, text/plain)
2014-01-05 07:19 UTC, d_dart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description d_dart 2014-01-05 06:51:14 UTC
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
Comment 1 d_dart 2014-01-05 07:19:24 UTC
Created attachment 367046 [details]
build log for plain emerge -v1 gedit
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-01-05 08:11:12 UTC
(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"
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-01-05 08:17:40 UTC
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).