bug-gnulib
[Top][All Lists]
Advanced

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

Re: multiple definitions of __printf__


From: Ben Pfaff
Subject: Re: multiple definitions of __printf__
Date: Sat, 15 May 2010 21:33:02 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Bruno Haible <address@hidden> 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
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 and, according to reports on pspp-dev,
OpenSUSE as well.

Is the best solution to check whether libintl defines __printf__
and, if so, avoid defining it in Gnulib?

Thanks,

Ben.
-- 
Ben Pfaff 
http://benpfaff.org




reply via email to

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