Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873619 - media-libs/nas-1.9.5 fails to compile: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Summary: media-libs/nas-1.9.5 fails to compile: error: call to undeclared function 'ge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-30 07:52 UTC by Ionen Wolkens
Modified: 2024-03-20 06:26 UTC (History)
1 user (show)

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


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

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 y.tab.c kind:

y.tab.c:1172:16: 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 http://www.ijs.si/software/snprintf/.

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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efcf37fd016d067e816fd73cf0953c06819f799f

commit efcf37fd016d067e816fd73cf0953c06819f799f
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-30 06:59:51 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
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
    
    Bug: https://bugs.gentoo.org/873619
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/nas/nas-1.9.5.ebuild | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-18 06:20:10 UTC
not clang specific
Comment 3 Larry the Git Cow gentoo-dev 2024-03-20 06:26:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2034f4dc27f765d1d8ab8eddaf4142a3286dfa29

commit 2034f4dc27f765d1d8ab8eddaf4142a3286dfa29
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-20 03:13:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-20 06:17:01 +0000

    media-libs/nas: backport upstreamed patches to fix Modern C bugs
    
    Closes: https://bugs.gentoo.org/873619
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...as-1.9.5-Correct-pointer-types-for-GCC-14.patch | 108 +++
 ...o-implicit-ints-and-function-declarations.patch | 834 +++++++++++++++++++++
 media-libs/nas/nas-1.9.5-r1.ebuild                 | 121 +++
 3 files changed, 1063 insertions(+)