bug-gnulib
[Top][All Lists]
Advanced

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

test-parse-duration link failure


From: Bruno Haible
Subject: test-parse-duration link failure
Date: Wed, 26 Aug 2009 23:54:24 +0200
User-agent: KMail/1.9.9

Hi,

On Solaris/x86 with Sun C 5.9, test-parse-duration fails to link:

cc -xc99=all  -g  -Wl,-z,ignore -o test-parse-duration test-parse-duration.o 
../gllib/libgnu.a -lm  
ld: fatal: symbol `xstrdup' is multiply-defined:
        (file test-parse-duration.o type=FUNC; file 
../gllib/libgnu.a(xmalloc.o) type=FUNC);
ld: fatal: File processing errors. No output written to test-parse-duration
*** Error code 1
make: Fatal error: Command failed for target `test-parse-duration'

Removing the definition of xstrdup from tests/test-parse-duration.c fixes
the problem. OK to apply?


--- tests/test-parse-duration.c.orig    2009-08-26 23:53:29.000000000 +0200
+++ tests/test-parse-duration.c 2009-08-26 23:53:12.000000000 +0200
@@ -1,5 +1,5 @@
 /* Test of parsing durations.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -25,12 +25,6 @@
 
 #include "parse-duration.h"
 
-char *
-xstrdup(char const * p)
-{
-  return strdup (p);
-}
-
 int
 main (int argc, char *argv[])
 {




reply via email to

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