Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881585 - sys-apps/mawk: configure breakage with Clang 16
Summary: sys-apps/mawk: configure breakage with Clang 16
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 906027
  Show dependency tree
 
Reported: 2022-11-17 03:09 UTC by Sam James
Modified: 2024-01-26 12:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-17 03:09:57 UTC
```
226:configure:4185:16: error: call to undeclared function 'arc4random_push'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
229:configure:4185:46: error: call to undeclared function 'arc4random'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
253:configure:4185:37: error: call to undeclared function 'arc4random'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
277:configure:4185:16: error: call to undeclared function 'srandom'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
280:configure:4185:38: error: call to undeclared function 'random'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
304:configure:4185:16: error: call to undeclared function 'srand48'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
307:configure:4185:38: error: call to undeclared function 'lrand48'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
331:configure:4185:16: error: call to undeclared function 'srand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
334:configure:4185:36: error: call to undeclared function 'rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
```

This leads to e.g.:
```
checking if you want to use mawk's own srand/rand functions... no
checking for random-integer functions... unknown
checking if you want mawk to initialize random numbers at startup... yes
```

instead of:
```
checking if you want to use mawk's own srand/rand functions... no
checking for random-integer functions... arc4random_stir/arc4random
checking for range of random-integers... 0xFFFFFFFFUL
checking if <bsd/stdlib.h> should be included... yes
checking if you want mawk to initialize random numbers at startup... yes
```

I've reported this upstream via email.
Comment 1 Larry the Git Cow gentoo-dev 2024-01-26 12:51:10 UTC
The bug has been closed via the following commit(s):

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

commit 77f788b0982ac8c3239d4107deae1d5cee1cb5c2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-26 12:50:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-26 12:50:26 +0000

    sys-apps/mawk: add 1.3.4_p20240123
    
    Closes: https://bugs.gentoo.org/881585
    Closes: https://bugs.gentoo.org/908531
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/mawk/Manifest                    |  2 ++
 sys-apps/mawk/mawk-1.3.4_p20240123.ebuild | 51 +++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)