Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879797 - net-misc/turbovnc: possible configure breakage with Clang 16
Summary: net-misc/turbovnc: possible configure breakage with Clang 16
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: clang-16-porting
  Show dependency tree
 
Reported: 2022-11-04 23:10 UTC by Matt Jolly
Modified: 2022-11-06 07:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
clang-14 log (clang-14.log,9.21 KB, text/x-log)
2022-11-04 23:10 UTC, Matt Jolly
Details
clang-15 log (clang-15.log,9.19 KB, text/x-log)
2022-11-04 23:10 UTC, Matt Jolly
Details
clang.diff (clang.diff,13.16 KB, patch)
2022-11-04 23:10 UTC, Matt Jolly
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Jolly 2022-11-04 23:10:04 UTC
Created attachment 827655 [details]
clang-14 log

This package has been identified via automation as potentially impacted by upcoming Clang 16 changes.
The following have been identified as potential issues:

[-Werror,-Wimplicit-function-declaration]

[-Werror,-Wimplicit-function-declaration]
error: call to undeclared library function 'strlcat' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared library function 'strlcpy' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Comment 1 Matt Jolly 2022-11-04 23:10:27 UTC
Created attachment 827657 [details]
clang-15 log
Comment 2 Matt Jolly 2022-11-04 23:10:43 UTC
Created attachment 827659 [details, diff]
clang.diff
Comment 3 Viorel Munteanu gentoo-dev 2022-11-05 09:50:13 UTC
I looked at the diff.  It is true clang-14 gives a warning while clang-15 gives an error, but they both fail afterwards at link time (the functions in question do not exist by default, they are in <bsd/string.h> and -lbsd).  So in this case the functions are not implicitly declared, they are simply missing.

Also if the functions did exist, `check_symbol_exists` has an include file, so they would both succeed.