Menu

#1276 Undefined reference to symbol 'g_module_close'

Bug
closed-fixed
SciTE (664)
5
2014-10-06
2012-01-03
No

Hi
When building SciTE on the Open Build Service against the latest GNOME Factory, I get the following error;
===================================================================================
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ../../scintilla/bin/scintilla.a(PlatGTK.o): undefined reference to symbol 'g_module_close'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'g_module_close' 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
collect2: ld returned 1 exit status
make: *** [../bin/SciTE] Error 1
make: Leaving directory `/home/abuild/rpmbuild/BUILD/scite-gtk3-3.02/scite/gtk'
===================================================================================

This is due to recent changes upstream and have attached a patch to fix the issue.

Discussion

  • Malcolm Lewis

    Malcolm Lewis - 2012-01-03

    scite-fix-missing-gmodule-reference.patch

     
  • Neil Hodgson

    Neil Hodgson - 2012-01-04
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-accepted
     
  • Neil Hodgson

    Neil Hodgson - 2012-01-04

    Any reason for gmodule-2.0 instead of gmodule-no-export-2.0? Including -Wl,--export-dynamic exposes all the symbols in the application. There have previously been issues with exposing symbols from SciTE.

     
  • Malcolm Lewis

    Malcolm Lewis - 2012-01-04

    Hi
    I was unaware of this, and have changed to the no export version as we don't need the export-dynamic flag. Do you want me to provide an updated patch?

     
  • Neil Hodgson

    Neil Hodgson - 2012-01-05
    • status: open-accepted --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2012-01-28
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.