Skip to content

Instantly share code, notes, and snippets.

@tosik
Last active September 20, 2018 13:01
Show Gist options
  • Save tosik/0a921e16a6163b4bb777f4fe670c1ad7 to your computer and use it in GitHub Desktop.
Save tosik/0a921e16a6163b4bb777f4fe670c1ad7 to your computer and use it in GitHub Desktop.
gettext windows compilation error
curl -O http://public.p-knowledge.co.jp/gnu/gettext/gettext-0.19.8.1.tar.gz
tar -zxvf gettext-0.19.8.1.tar.gz
(cd gettext-0.19.8.1 && ./configure && make && make install)
2018-09-20T12:27:21.0932779Z libtool: compile: gcc -c -DLOCALEDIR=/usr/local/share/locale -DLOCALE_ALIAS_PATH=/usr/local/share/locale -DLIBDIR=/usr/local/lib -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=/usr/local/lib -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -fvisibility=hidden ./localealias.c -DDLL_EXPORT -DPIC -o .libs/localealias.o
2018-09-20T12:27:21.1509590Z ./localealias.c: In function '_nl_expand_alias':
2018-09-20T12:27:21.1513543Z <command-line>:0:19: error: 'C' undeclared (first use in this function)
2018-09-20T12:27:21.1513798Z ./localealias.c:166:25: note: in expansion of macro 'LOCALE_ALIAS_PATH'
2018-09-20T12:27:21.1514047Z locale_alias_path = LOCALE_ALIAS_PATH;
2018-09-20T12:27:21.1514256Z ^
2018-09-20T12:27:21.1514557Z <command-line>:0:19: note: each undeclared identifier is reported only once for each function it appears in
2018-09-20T12:27:21.1515007Z ./localealias.c:166:25: note: in expansion of macro 'LOCALE_ALIAS_PATH'
2018-09-20T12:27:21.1515229Z locale_alias_path = LOCALE_ALIAS_PATH;
2018-09-20T12:27:21.1515426Z ^
2018-09-20T12:27:21.1515628Z <command-line>:0:20: error: expected ';' before ':' token
2018-09-20T12:27:21.1515840Z ./localealias.c:166:25: note: in expansion of macro 'LOCALE_ALIAS_PATH'
2018-09-20T12:27:21.1516040Z locale_alias_path = LOCALE_ALIAS_PATH;
2018-09-20T12:27:21.1516238Z ^
2018-09-20T12:27:21.1654604Z Makefile:269: recipe for target 'localealias.lo' failed
@tosik
Copy link
Author

tosik commented Sep 20, 2018

-DLOCALE_ALIAS_PATH=/usr/local/share/locale

が windows で C になってる?よくわからない。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment