[augeas-devel] fatest linking

David Lutterkort lutter at redhat.com
Tue Jan 10 00:27:37 UTC 2012


On Fri, 2011-12-23 at 10:00 -0500, Francis Giraldeau wrote:
> I got an error on fatest linking when running make check:
> 
> libtool: link: gcc -std=gnu99 -Wall -Wformat -Wformat-security
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow
> -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
> -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fasynchronous-unwind-tables -I ../gnulib/lib
> -I/usr/include/libxml2 -I ../src -g -O2 -o .libs/fatest fatest.o
> cutest.o memory.o  ../src/.libs/libaugeas.so /usr/lib/libxml2.so
> ../gnulib/lib/.libs/libgnu.a fatest.o: In function `teardown':
> /home/francis/workspace/augeas/tests/fatest.c:66: undefined reference
> to `fa_free'
> [...]
> 
> Normaly, symbols from libfa are not available within libaugeas, so I
> changed the linking to libfa and it works. This has not changed from
> quite a while, so maybe it's a new libtool version that enforce sym
> version for tests?

Very strange .. I've never seen this error. Is this something that gets
better if you rerun configure/autogen ?

Either way, ACK to the patch since we shouldn't link fatest with
libaugeas.

David





More information about the augeas-devel mailing list