[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fstrcmp-test needs some additional libraries
From: |
Ralf Wildenhues |
Subject: |
fstrcmp-test needs some additional libraries |
Date: |
Mon, 22 Oct 2007 22:38:20 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Bruno, all,
(BTW, this testing is all done with `gnulib --with-tests --test'.)
On FreeBSD 6.2, I get in gltests/:
gcc -std=gnu99 -g -O2 -Wl,--as-needed -o test-fstrcmp test-fstrcmp.o
../gllib/libgnu.a -lm
../gllib/libgnu.a(xalloc-die.o)(.text+0xc): In function `xalloc_die':
../../dummy-0/gllib/xalloc-die.c:34: undefined reference to `libintl_gettext'
../gllib/libgnu.a(error.o)(.text+0x89): In function `error_tail':
../../dummy-0/gllib/error.c:125: undefined reference to `libintl_gettext'
gmake[4]: *** [test-fstrcmp] Error 1
And on AIX 4.3.3, fstrcmp.o references pthread_* functions:
source='../../dummy-0/gltests/test-fstrcmp.c' object='test-fstrcmp.o'
libtool=no DEPDIR=.deps depmode=aix /bin/sh
../../dummy-0/gltests/../build-aux/depcomp cc -qlanglvl=extc89
-qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../dummy-0/gltests -I.
-I../../dummy-0/gltests -I.. -I../../dummy-0/gltests/.. -I../gllib
-I../../dummy-0/gltests/../gllib -D_THREAD_SAFE -g -c
../../dummy-0/gltests/test-fstrcmp.c
cc -qlanglvl=extc89 -qlanglvl=extc89 -g -o test-fstrcmp
test-fstrcmp.o ../gllib/libgnu.a -lm
ld: 0711-317 ERROR: Undefined symbol: .pthread_key_create
ld: 0711-317 ERROR: Undefined symbol: .pthread_once
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_settype
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_getspecific
ld: 0711-317 ERROR: Undefined symbol: .pthread_setspecific
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.
I must confess I don't know what I'm doing here, but this patch helped
me build test-fstrcmp. WDYT?
Cheers,
Ralf
2007-10-22 Ralf Wildenhues <address@hidden>
* modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
@LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
diff --git a/modules/fstrcmp-tests b/modules/fstrcmp-tests
index e86e326..cb9eff5 100644
--- a/modules/fstrcmp-tests
+++ b/modules/fstrcmp-tests
@@ -9,4 +9,4 @@ configure.ac:
Makefile.am:
TESTS += test-fstrcmp
check_PROGRAMS += test-fstrcmp
-
+test_fstrcmp_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
- fstrcmp-test needs some additional libraries,
Ralf Wildenhues <=