bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] Building on OS X Lion


From: Franck Rousseau
Subject: [bug-gettext] Building on OS X Lion
Date: Thu, 21 Apr 2011 01:38:37 +0200

  hi,

  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 :-)

  regards,

-- 
Franck Rousseau                          mailto:address@hidden
Grenoble INP - Ensimag / LIG (UMR5217)    http://drakkar.imag.fr/franck
681 rue de la Passerelle - BP 72               phone: +33 4 76 82 72 92
38402 St Martin d'Hères Cedex - France         fax:   +33 4 76 82 72 87




reply via email to

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