Not compiling on Archlinux

Bug #1068868 reported by Luis Sarmiento
4
Affects Status Importance Assigned to Milestone
Artha - The Open Thesaurus
New
Undecided
Unassigned

Bug Description

Following the rather straightforward instructions of

./configure
make

I encounter the following error:

/usr/bin/ld: gui.o: undefined reference to symbol 'g_file_delete'
/usr/bin/ld: note: 'g_file_delete' is defined in DSO /usr/lib/libgio-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgio-2.0.so.0: could not read symbols: Invalid operation

To mee it seem related to this http://fedoraproject.org/wiki/UnderstandingDSOLinkChange and I did not manage to include the proposed explanation/solution into a patch for the Archlinux AUR package I am trying to maintain

Revision history for this message
Kael Shipman (kael-shipman) wrote :

I confess, I'm a novice as far as the internals of the standard configure/make/make-install process, but I figured out a very dirty fix that allows artha to be compiled. Maybe it will help you build the package, or help someone else get past this error, since there doesn't seem to be a lot of documentation about it online:

1. Run configure with whatever options you want.
2. Now open src/Makefile in your text editor
3. Find the following lines:
    128 am__objects_1 = eggaccelerators.$(OBJEXT) \
    129 tomboyutil.$(OBJEXT) instance_handler.$(OBJEXT)
As you can see, for me these were lines 128 and 129.
4. Add /usr/lib/libgio-2.0.so.0 to the end of the second line. The two lines should now look like this:
    128 am__objects_1 = eggaccelerators.$(OBJEXT) \
    129 tomboyutil.$(OBJEXT) instance_handler.$(OBJEXT) /usr/lib/libgio-2.0.so.0
5. Save the file
6. Now run make. You shouldn't get any more errors.
7. Run make install

Hope that helps someone!

Revision history for this message
Luis Sarmiento (donpikoro) wrote :

Uh, sorry... I forgot to mention that I found a workaround.

it is just a matter of modifying the compilation flags. All I did was to add some flags to the existing ones with the line

sed -i "200 s/LDFLAGS = /& -Wl,--copy-dt-needed-entries /g" src/Makefile

before issuing "make" :D
Sorry for keeping this bug open. I completely forgot to close it.

Thanks for your response though.

/Pico

Revision history for this message
Eric (kuchaguangjie) wrote :

@Luis Sarmiento Works perfectly, thx.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.