CRUX

Welcome to CRUX bug tracking.
Tasklist

FS#1784 - xorg-libxfont2 build fails when libbsd is installed

Attached to Project: CRUX
Opened by Jan-Michael Franz (jmf) - Wednesday, 08 January 2020, 18:59 GMT
Last edited by Juergen Daubert (jue) - Thursday, 09 April 2020, 11:38 GMT
Task Type Bug Report
Category ports → xorg
Status Closed
Assigned To No-one
Operating System CRUX
Severity Low
Priority Normal
Reported Version 3.5
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When the libbsd package is installed, the compilation of xorg-libxfont2 fails with the following error messages:

´´´
src/util/fontxlfd.c: In function 'append_ranges':
src/util/fontxlfd.c:361:9: error: implicit declaration of function 'strlcat'; did you mean 'strncat'? [-Werror=implicit-function-declaration]
strlcat(fname, "[", fnamelen);
^~~~~~~
strncat
src/util/fontxlfd.c:361:9: warning: nested extern declaration of 'strlcat' [-Wnested-externs]
src/util/fontxlfd.c: In function 'FontParseXLFDName':
src/util/fontxlfd.c:453:2: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Werror=implicit-function-declaration]
strlcpy(tmpBuf, ptr2, sizeof(tmpBuf));
^~~~~~~
strncpy
src/util/fontxlfd.c:453:2: warning: nested extern declaration of 'strlcpy' [-Wnested-externs]

´´´
This task depends upon

Closed by  Juergen Daubert (jue)
Thursday, 09 April 2020, 11:38 GMT
Reason for closing:  Implemented
Comment by Tim Biermann (tb) - Thursday, 23 January 2020, 16:42 GMT
I ran into the same problem on my rpi using armv7l architecture. It built fine with "--disable-selective-werror".
Comment by Alexander Matviychuk (alexmat) - Thursday, 09 April 2020, 10:45 GMT
Had the same issue. Was resolved using Tim's suggestion by adding --disable-selective-werror to ./configure

Loading...