Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873619 - media-libs/nas-1.9.5 will fail to build with clang16 (error: call to undeclared function 'getpid')
Summary: media-libs/nas-1.9.5 will fail to build with clang16 (error: call to undeclar...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
Depends on:
Blocks: c99-porting, clang-16-porting
  Show dependency tree
Reported: 2022-09-30 07:52 UTC by Ionen Wolkens
Modified: 2022-09-30 11:02 UTC (History)
0 users

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

build.log + emerge --info.txt (build.log-emerge-info.txt,178.30 KB, text/plain)
2022-09-30 07:52 UTC, Ionen Wolkens

Note You need to log in before you can comment on or make changes to this bug.
Description Ionen Wolkens gentoo-dev 2022-09-30 07:52:57 UTC
Created attachment 814771 [details]
build.log + emerge --info.txt

Long list of implicit warnings with gcc that will all be failures here.

Also the kind: error: call to undeclared function 'yylex'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
      yychar = yylex ();

Some ./configure tests are broken too, e.g.

checking for working snprintf... no
checking for working vsnprintf... no
configure: WARNING: Replacing missing/broken (v)snprintf() with version from

Also imake cpp issues, but will fix that bit myself soon which lets it build clang15 without the -Werror=*
Comment 1 Larry the Git Cow gentoo-dev 2022-09-30 11:02:14 UTC
The bug has been referenced in the following commit(s):

commit efcf37fd016d067e816fd73cf0953c06819f799f
Author:     Ionen Wolkens <>
AuthorDate: 2022-09-30 06:59:51 +0000
Commit:     Ionen Wolkens <>
CommitDate: 2022-09-30 10:48:09 +0000

    media-libs/nas: force gcc -E for imake's generation
    Requires traditional cpp support and is broken in all sort of ways
    with clang-cpp / -E.
    Bit messier here because of multilib, hopefully this is right and
    doesn't affect other arches. If multilib support is ever removed,
    replace by ":-${CHOST}-gcc -E}" like other ebuilds.
    wrt #873619, this is still severely broken with >=clang16
    Signed-off-by: Ionen Wolkens <>

 media-libs/nas/nas-1.9.5.ebuild | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)