Compile from master branch fails on Arch Linux
Going on for quite some time now. Fails on some string function:
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/fontfile/fontfile.c: In function ‘FontFileOpenFont’:
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/fontfile/fontfile.c:358:13: error: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? [-Werror=implicit-function-declaration]
358 | strlcpy(lowerName, entry->name.name, sizeof(lowerName));
| ^~~~~~~
| strncpy
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/fontfile/fontfile.c:358:13: warning: nested extern declaration of ‘strlcpy’ [-Wnested-externs]
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/fontfile/fontfile.c:447:25: error: implicit declaration of function ‘strlcat’; did you mean ‘strncat’? [-Werror=implicit-function-declaration]
447 | strlcat (fileName, scalable->fileName, sizeof(fileName));
| ^~~~~~~
| strncat
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/fontfile/fontfile.c:447:25: warning: nested extern declaration of ‘strlcat’ [-Wnested-externs]
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c: In function ‘FreeTypeAddProperties’:
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c:1608:5: error: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? [-Werror=implicit-function-declaration]
1608 | strlcpy(val, fontname, sizeof(val));
| ^~~~~~~
| strncpy
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c:1608:5: warning: nested extern declaration of ‘strlcpy’ [-Wnested-externs]
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c: In function ‘FreeTypeSetUpTTCap’:
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c:2285:17: error: implicit declaration of function ‘strlcat’; did you mean ‘strncat’? [-Werror=implicit-function-declaration]
2285 | strlcat(*dynStrFTFileName, *dynStrRealFileName, dsftlen);
| ^~~~~~~
| strncat
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c:2285:17: warning: nested extern declaration of ‘strlcat’ [-Wnested-externs]
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c: In function ‘ft_compute_bounds’:
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/FreeType/ftfuncs.c:2956:30: warning: overflow in conversion from ‘CARD16’ {aka ‘short unsigned int’} to ‘INT16’ {aka ‘short int’} changes value from ‘maxchar.attributes = 32769’ to ‘-32767’ [-Woverflow]
2956 | maxchar.characterWidth = maxchar.attributes = -32767;
| ^~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:1063: src/util/fontxlfd.lo] Error 1
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/bitmap/bitscale.c: In function ‘BitmapOpenScalable’:
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/bitmap/bitscale.c:1602:5: error: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? [-Werror=implicit-function-declaration]
1602 | strlcpy (fontName, scaleFrom->name.name, sizeof(fontName));
| ^~~~~~~
| strncpy
/home/roman/dev/gfx/xorg/src/lib/libXfont/src/bitmap/bitscale.c:1602:5: warning: nested extern declaration of ‘strlcpy’ [-Wnested-externs]
libbsd package is installed.