[augeas-devel] fatest linking

Francis Giraldeau francis.giraldeau at gmail.com
Fri Dec 23 15:00:41 UTC 2011


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?

Francis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-fatest-linking.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20111223/e261c4a3/attachment.bin>


More information about the augeas-devel mailing list