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 tolocale_charset'

I am compiling it on centos5. I have compiled it before on other machines (Centos too) so I have no idea whats wrong.

  1. run ./configure

  2. go to eglib/

  3. 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
原文地址:https://www.cnblogs.com/shiningrise/p/2785120.html