bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localename on AIX 7


From: Bruno Haible
Subject: localename on AIX 7
Date: Sun, 5 Jun 2011 16:19:34 +0200
User-agent: KMail/1.9.9

On AIX 7.1, I get a link error:

  xlc -D_ALL_SOURCE -O  -g   -o test-localename test-localename.o 
../gllib/libgnu.a  
  ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
  ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
  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.

This fixes it:


2011-06-05  Bruno Haible  <address@hidden>

        localename: Fix link dependencies.
        * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
        * modules/localename-tests (Makefile.am): Link test-localename with
        $(LIBTHREAD).

--- modules/localename.orig     Sun Jun  5 16:05:58 2011
+++ modules/localename  Sun Jun  5 16:04:49 2011
@@ -23,6 +23,7 @@
 
 Link:
 @INTL_MACOSX_LIBS@
+$(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise
 
 License:
 LGPLv2+
--- modules/localename-tests.orig       Sun Jun  5 16:05:59 2011
+++ modules/localename-tests    Sun Jun  5 16:05:19 2011
@@ -14,5 +14,5 @@
 Makefile.am:
 TESTS += test-localename
 check_PROGRAMS += test-localename
-test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@
+test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
 

-- 
In memoriam Eduard Lederer <http://de.wikipedia.org/wiki/Eduard_Lederer>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]