[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die |
Date: |
Fri, 15 Oct 2004 19:06:43 +0200 |
User-agent: |
KMail/1.5 |
Simon Josefsson wrote:
> It seems to me that the Mac OS X linker is too picky.
No, the Mac OS X linker is fine. It's giving errors for violations of ANSI C.
You have two functions with the same name; this is an error.
> On all other
> systems, the linker presumably just ignore the xalloc_die inside
> libshishi when linking libgss.
But on ELF systems, only one of the two functions will be active. I.e.
an allocation failure in libshishi will call the xalloc_die from libgss.
You said that this is not what you want.
> solve in some clean way.
The clean way is: You want to have two functions of different behaviour,
so give them different names. For example, while compiling libshishi,
add "-Dxalloc_die=shishi_xalloc_die" to the CPPFLAGS, and similarly for
libgss. At the linker level, the two function names will be different,
and all is fine.
Bruno
- [Bug-gnulib] Multiple definitions of symbol _xalloc_die, Simon Josefsson, 2004/10/15
- Re: [Bug-gnulib] Multiple definitions of symbol _xalloc_die, Bruno Haible, 2004/10/15
- [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Simon Josefsson, 2004/10/15
- Re: [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die,
Bruno Haible <=
- [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Simon Josefsson, 2004/10/15
- [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Bruno Haible, 2004/10/15
- [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Simon Josefsson, 2004/10/15
- Re: [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Bruno Haible, 2004/10/15
- [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Simon Josefsson, 2004/10/15
- Re: [Bug-gnulib] Re: Multiple definitions of symbol _xalloc_die, Bruno Haible, 2004/10/15