Re: multiple definitions of __printf__

2010-05-16 Thread Bruno Haible
Ben Pfaff wrote: > This fixes the build in the case where both libintl and PSPP's > Gnulib define __printf__. But it broke the build in the > previously working case where libintl did not define __printf__ > but PSPP's Gnulib did and no longer does. This is the case on, > for example, FreeBSD 7.3

Re: multiple definitions of __printf__

2010-05-15 Thread Ben Pfaff
Bruno Haible writes, some time ago: >> +#if !DEPENDS_ON_LIBINTL /* avoid collision with intl/printf.c */ > > Also, your configure.ac should define DEPENDS_ON_LIBINTL if LIBINTL > (determined by AM_GNU_GETTEXT) evaluates to non-empty. This fixes the build in the case where both libintl and PSPP's

Re: multiple definitions of __printf__

2010-03-25 Thread Bruno Haible
> +#if !DEPENDS_ON_LIBINTL /* avoid collision with intl/printf.c */ Also, your configure.ac should define DEPENDS_ON_LIBINTL if LIBINTL (determined by AM_GNU_GETTEXT) evaluates to non-empty. Bruno

Re: multiple definitions of __printf__

2010-03-25 Thread Bruno Haible
Hello, Michel Boaventura wrote: > I'm trying to compile a project which uses both gettext and gnulib. I'm > using mingw, and getting the above error: > > /home/michel/prof/pspp/sources/mingw/usr/i686-pc-mingw32/lib/libintl.a(printf.o): > In function `__printf__': > /home/arquivos/prof/pspp/sourc

Re: multiple definitions of __printf__

2010-03-25 Thread Michel Boaventura
This really only happens when I compile gettext with --disable-shared. I _think_ that gettext-0.17 doesn't have the gnulib version with this fix, since it is dated from 2007. The reason why I'm compiling it using --disable-shared is to avoid dll hell (http://en.wikipedia.org/wiki/DLL_hell) and to m

Re: multiple definitions of __printf__

2010-03-24 Thread Michel Boaventura
The project is pspp, and I'm using the latest git version of gnulib Could be other problem?

Re: multiple definitions of __printf__

2010-03-24 Thread Eric Blake
On 03/24/2010 04:21 PM, Michel Boaventura wrote: > Hello, > > I'm trying to compile a project which uses both gettext and gnulib. I'm > using mingw, and getting the above error: Could the project just be using a stale snapshot of gnulib? > Looking at the archive of this list, this error should b

multiple definitions of __printf__

2010-03-24 Thread Michel Boaventura
Hello, I'm trying to compile a project which uses both gettext and gnulib. I'm using mingw, and getting the above error: /home/michel/prof/pspp/sources/mingw/usr/i686-pc-mingw32/lib/libintl.a(printf.o): In function `__printf__': /home/arquivos/prof/pspp/sources/mingw/tmp-gettext/gettext-0.17/get