Problem building master with autotools

Geert Janssens geert.gnucash at kobaltwit.be
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/libstdc++.so.6: 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
 -I/gitsrc-dir/src
 -I/gitsrc-dir/src/gnc-module
 -I/gitsrc-dir/src/test-core
 -I/gitsrc-dir/src/engine
 -I/gitsrc-dir/src/app-utils
 -I/gitsrc-dir/src/import-export
 -I/gitsrc-dir/src/libqof/qof
 -I/gitsrc-dir/src/engine/test-core
 -pthread
 -I/usr/include/gtk-3.0
 -I/usr/include/at-spi2-atk/2.0
 -I/usr/include/at-spi-2.0
 -I/usr/include/dbus-1.0
 -I/usr/lib64/dbus-1.0/include
 -I/usr/include/gtk-3.0
 -I/usr/include/gio-unix-2.0/
 -I/usr/include/cairo
 -I/usr/include/pango-1.0
 -I/usr/include/harfbuzz
 -I/usr/include/pango-1.0
 -I/usr/include/atk-1.0
 -I/usr/include/cairo
 -I/usr/include/pixman-1
 -I/usr/include/freetype2
 -I/usr/include/libpng16
 -I/usr/include/freetype2
 -I/usr/include/libdrm
 -I/usr/include/libpng16
 -I/usr/include/gdk-pixbuf-2.0
 -I/usr/include/libpng16
 -I/usr/include/glib-2.0
 -I/usr/lib64/glib-2.0/include
 -pthread
 -I/usr/include/guile/2.0
 -pthread -I/usr/include/glib-2.0
 -I/usr/lib64/glib-2.0/include
 -g -O2 -std=gnu11
 -o .libs/test-import-pending-matches
 test_import_pending_matches-test-import-pending-matches.o
 -pthread -Wl,--export-dynamic -pthread
  ../../../src/libqof/qof/.libs/libgnc-qof.so
 -L/usr/lib64
 ../../../src/engine/.libs/libgncmod-engine.so
 ../.libs/libgncmod-generic-import.so
 /build-dir/src/gnome-utils/.libs/libgncmod-gnome-utils.so
 /build-dir/src/backend/xml/.libs/libgnc-backend-xml-utils.so
 -lgnome-keyring
 -lsecret-1
 -lX11
 /build-dir/src/app-utils/.libs/libgncmod-app-utils.so
 -lgtk-3
 -lgdk-3
 -lpangocairo-1.0
 -lpango-1.0
 -latk-1.0
 -lcairo-gobject
 -lcairo
 -lgdk_pixbuf-2.0
 -lxslt
 -lz
 -ldl
 -lxml2
 ../../../src/engine/test-core/.libs/libgncmod-test-engine.a
 /build-dir/src/engine/.libs/libgncmod-engine.so
 /build-dir/src/gnc-module/.libs/libgnc-module.so
 /build-dir/src/core-utils/.libs/libgnc-core-utils.so
 -lpthread
 -lguile-2.0
 -lgc
 ../../../src/test-core/.libs/libtest-core.so
 /build-dir/src/libqof/qof/.libs/libgnc-qof.so
 -lboost_regex
 -lgio-2.0
 -lgthread-2.0
 -lgobject-2.0
 -lgmodule-2.0
 -lglib-2.0
 -lm
 -pthread
 -Wl,-rpath
 -Wl,/install-dir/lib
 -Wl,-rpath
 -Wl,/install-dir/lib/gnucash

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...

Geert


More information about the gnucash-devel mailing list