Mono undefined reference to `locale_charset'
I am trying to compile mono from source and am getting this error.
../src/.libs/libeglib.a(libeglib_la-gunicode.o): In function monoeg_g_get_charset': /opt/mono-2.10.1/eglib/src/gunicode.c:312: undefined reference to
locale_charset'
I am compiling it on centos5. I have compiled it before on other machines (Centos too) so I have no idea whats wrong.
-
run ./configure
-
go to eglib/
-
open config.h and replace following string
#define HAVE_LOCALCHARSET_H 1
by
#define HAVE_LOCALCHARSET_H 0
http://serverfault.com/questions/249411/mono-undefined-reference-to-locale-charset