Gettext is a function in gnu that allows the user to switch between different languages. Due to the majority of computer science documentation and software being written in english, gettext is meant to help even the field for the rest of the world. It can be downloaded at the following location.
However, there is a known error with gettext versions 0.18 above. Before doing the normal ./configure make
sudo make install
You must change the file stpncpy.c. Go into the directory where gettext is installed.
cd ../gettext-0.18.1/gettext-tools/gnulib-lib
vi stpncpy.c
Then before the line #ifndef weak_alias
add #undef stpncpy
It should look like the following
/* This is almost copied from strncpy.c, written by Torbjorn Granlund. */
#include <config.h>
/* Specification. */
#include <string.h>
#undef stpncpy
#ifndef weak_alias
# define __stpncpy stpncpy
#endif
/* Copy no more than N bytes of SRC to DST, returning a pointer past the
last non-NUL byte written into DST. */
This lets the build compile on a mac machine as there is an overlap in definition issue with stpncpy.c and an already existing strncpy.c in XCode on the mac os. This is not an issue on linux machines.
No comments:
Post a Comment