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
>From 7ff7488d44542da18832ed5297e4423eec9a21fa Mon Sep 17 00:00:00 2001
From: Francis Giraldeau <[email protected]>
Date: Fri, 23 Dec 2011 09:59:31 -0500
Subject: [PATCH] fix fatest linking

---
 tests/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 65553c7..825acf2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -176,7 +176,7 @@ TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
 INCLUDES = -I$(top_srcdir)/src
 
 fatest_SOURCES = fatest.c cutest.c cutest.h $(top_srcdir)/src/memory.c $(top_srcdir)/src/memory.h
-fatest_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
+fatest_LDADD = $(top_builddir)/src/libfa.la $(LIBXML_LIBS) $(GNULIB)
 
 test_xpath_SOURCES = test-xpath.c $(top_srcdir)/src/memory.c
 test_xpath_LDADD = $(top_builddir)/src/libaugeas.la $(LIBXML_LIBS) $(GNULIB)
-- 
1.7.5.4

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to