Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libXfont
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • lib
  • libXfont
  • Issues
  • #11

Closed
Open
Created Jun 05, 2021 by Roman Gilg@romangg

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.

Assignee
Assign to
Time tracking