After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666656 - Fails to build with glib 2.31.x
Fails to build with glib 2.31.x
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: editor: scintilla
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Sébastien Granjoux
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-21 14:40 UTC by Vincent Untz
Modified: 2011-12-21 18:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scintilla: Link to gmodule to fix build against glib >= 2.31 (1.48 KB, patch)
2011-12-21 15:07 UTC, Vincent Untz
accepted-commit_now Details | Review

Description Vincent Untz 2011-12-21 14:40:11 UTC
The plugin should explicitly link to gmodule-2.0:

/bin/sh ../../../libtool --tag=CXX   --mode=link g++ -DGTK -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g   -o test-scintilla test_scintilla-test-scintilla.o libanjuta-scintilla.la
libtool: link: g++ -DGTK -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -o test-scintilla test_scintilla-test-scintilla.o  ./.libs/libanjuta-scintilla.a -lanjuta-3 -lgdl-3 -lgtk-3 /usr/lib/libxml2.so -ldl -lz -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: ./.libs/libanjuta-scintilla.a(PlatGTK.o): undefined reference to symbol 'g_module_close'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'g_module_close' is defined in DSO /usr/lib/libgmodule-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgmodule-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Comment 1 Vincent Untz 2011-12-21 15:07:08 UTC
Created attachment 204041 [details] [review]
scintilla: Link to gmodule to fix build against glib >= 2.31
Comment 2 Sébastien Granjoux 2011-12-21 18:57:36 UTC
Review of attachment 204041 [details] [review]:

Thank you for fixing this, I have committed your patch.