[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
conflict between 'canonicalize' and 'canonicalize-lgpl'
From: |
Bruno Haible |
Subject: |
conflict between 'canonicalize' and 'canonicalize-lgpl' |
Date: |
Sun, 13 Apr 2008 22:42:23 +0200 |
User-agent: |
KMail/1.5.4 |
The modules 'canonicalize' and 'canonicalize-lgpl' each provide a function
canonicalize_file_name().
On HP-UX, when building all of gnulib, the linker complains because it doesn't
know which object file inside libgnu.a to choose:
/usr/ccs/bin/ld: Duplicate symbol "canonicalize_file_name" in files
../gllib/libgnu.a(canonicalize.o) and ../gllib/libgnu.a(canonicalize-lgpl.o)
/usr/ccs/bin/ld: Found 1 duplicate symbol(s)
*** Error exit code 1
This should fix it.
2008-04-13 Bruno Haible <address@hidden>
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
* lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
module is also used and while not building the reloc-wrapper.
--- lib/canonicalize-lgpl.c.orig 2008-04-13 22:37:54.000000000 +0200
+++ lib/canonicalize-lgpl.c 2008-04-13 22:37:20.000000000 +0200
@@ -21,7 +21,7 @@
<stdlib.h> on Solaris 2.5.1. */
#undef realpath
-#if !HAVE_CANONICALIZE_FILE_NAME || defined _LIBC
+#if !(HAVE_CANONICALIZE_FILE_NAME || (GNULIB_CANONICALIZE && !defined
IN_RELOCWRAPPER)) || defined _LIBC
#include <alloca.h>
- conflict between 'canonicalize' and 'canonicalize-lgpl',
Bruno Haible <=