GIT source build failure: wcwidth.c::_wcwidth misses __locale_cjk_lang()

Hans-Bernhard Bröker HBBroeker@t-online.de
Sun Aug 21 04:01:00 GMT 2016


Hello everyone,

FWIW, I can't get the current may git clone of Cygwin to build on the 
current release version of itself: (64-bit "Current" on Win10):

/home/hbbro/prg/cygwin/bld/x86_64-unknown-cygwin/newlib/libc/libc.a(lib_a-wcwidth.o): 
In function `__wcwidth':
/home/hbbro/prg/cygwin/bld/x86_64-unknown-cygwin/newlib/libc/string/../../../../../newlib-cygwin/newlib/libc/string/wcwidth.c:301: 
undefined reference to `__locale_cjk_lang'
/home/hbbro/prg/cygwin/bld/x86_64-unknown-cygwin/newlib/libc/citrin/../../../../../newlib-cygwin/newlib/libc/string/wcwidth.c:301:(.text+0xa4):relocation 
truncated to fit: R_X86_64_PC32 against undefined symbol `__locale_cjk_lang'
collect2: error: ld returned 1 exit status
make: *** [Makefile:670: cygwin0.dll] Error 1


Adding

	#include "../locale/setlocale.h"
	
in libc/string/wcwidth.c appears to fix this.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list