Problem building master with autotools

Geert Janssens geert.gnucash at
Tue Jul 11 08:33:52 EDT 2017

On dinsdag 11 juli 2017 03:38:16 CEST Alex Aycinena wrote:
> With a fresh checkout of master, I try to build with the autotools but I
> get an error in linking test-import-pending-matches with test-engine-stuff
> during make as follows:
> /usr/bin/ld:
> ../../../src/engine/test-core/.libs/libgncmod-test-engine.a(test-engine-stuf
> f.o): undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
> /usr/lib64/ error adding symbols: DSO missing from command
> line
> collect2: error: ld returned 1 exit status
> Makefile:837: recipe for target 'test-import-pending-matches' failed
> I can build with cmake but I would like to run make check after an
> autotools make because I think it runs different checks.
> Can anyone give me an idea of how to get this to work? This is Fedora 25.

Odd I don't get this on my system (Fedora 25 as well).

The linker is having issues resolving "__gxx_personality_v0". The internet 
cites two common issues for this:
- either a library is missing
- or the sequence of libraries on the command line is wrong (a symbol to 
resolve should appear after the source in which it's being imported).

For the first I option I don't have many clues. The symbol is defined in 
libstdc++. You could check whether it's installed on your system, including 
the devel package.

If it's a case of out of order mentioning of link libraries, we could use my 
system as a reference as I don't have the issue.

Below is the full command issued to build test-import-pending-matches:

libtool: link: gcc
 -pthread -I/usr/include/glib-2.0
 -g -O2 -std=gnu11
 -o .libs/test-import-pending-matches
 -pthread -Wl,--export-dynamic -pthread

Do you see any differences with yours ?

Others may be able to give you more direct help. I'm not very fluent in linker 
stuff I'm afraid...


More information about the gnucash-devel mailing list