bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] Building on OS X Lion


From: Bruno Haible
Subject: Re: [bug-gettext] Building on OS X Lion
Date: Sun, 14 Aug 2011 13:49:59 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

> Franck Rousseau wrote:
> >   i ran into a problem building gettext on OS X prerelease Lion / 10.7 / 
> > darwin 
> > 11 using homebrew 0.8 (it uses the genuine package anyway)
> > 
> >   the build crashes on gettext-0.18.1.1/gettext-tools/gnulib-lib/stpncpy.c 
> > with 
> > the same error shown here 
> > https://gist.github.com/856443
> > 
> > 
> >   actually, there is already stpncpy defined on this OS X version and the 
> > quirk 
> > comes from /usr/include/secure/_string.h included from 
> > /usr/include/string.h 
> > were the macro #define stpncpy(dest, src, len) is declared and the 
> > substitution 
> > made on the function declaration !
> > 
> >   i did a quick dirty fix to have everything compile with #undef stpncpy 
> > just 
> > after #include string.h but i think there might be a better option :-)
> 
> See <https://savannah.gnu.org/bugs/index.php?33999>.

Thanks to both of you for the report.

Your analysis and patch is right. 
 
This problem was already fixed in gnulib, see
  http://lists.gnu.org/archive/html/bug-gnulib/2010-08/msg00092.html
and
  
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=c5728261c324a75f8d23dd7d10cb42dde9420227

The fix will be contained in the next gettext release.

Bruno
-- 
In memoriam Maximilian Kolbe <http://en.wikipedia.org/wiki/Maximilian_Kolbe>



reply via email to

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