Opened 4 years ago

Closed 4 years ago

#62101 closed defect (duplicate)

libgcrypt @1.9.0 fails on undeclared 'getentropy'

Reported by: hadrabap (Petr Hadraba) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula), hadrabap (Petr Hadraba)
Port: libgcrypt

Description

Hello friends,

The libgcrypt build fails on

rndlinux.c:273:21: error: implicit declaration of function 'getentropy'

error message when building from source on macOS Catalina 10.15.7 (Intel machine).

When digging inside the source tree I found that the library uses Linux implementation (rndlinux.c). When adding

--enable-random=unix

as configure parameter which effectively forces generic UNIX random implementation (rndunix.c), the problem goes away.

Thanks,

PETR

Change History (2)

comment:1 Changed 4 years ago by hadrabap (Petr Hadraba)

Cc: hadrabap added

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.