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: CONFIRMED
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: 2023-05-09 13:16 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.