Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#62098 closed defect (fixed)

libgcrypt 1.9.0_0: compile fails on Catalina w/ Xcode 12.3

Reported by: blair (Blair Zajac) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libgcrypt

Description

libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/include -pipe -O0 -std=gnu89 -fheinous-gnu-extensions -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -fno-delete-null-pointer-checks -Wall -c ./rndjent.c  -fno-common -DPIC -o .libs/rndjent.o
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/include -pipe -Os -std=gnu89 -fheinous-gnu-extensions -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -fno-delete-null-pointer-checks -Wall -MT rndlinux.lo -MD -MP -MF .deps/rndlinux.Tpo -c rndlinux.c  -fno-common -DPIC -o .libs/rndlinux.o
In file included from ./rndjent.c:86:
./jitterentropy-base.c:53:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC optimize ("O0")
            ^
./jitterentropy-base.c:119:18: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
        jent_get_nstime(&time);
                        ^~~~~
./jitterentropy-base-user.h:67:22: note: passing argument to parameter 'out' here
jent_get_nstime(u64 *out)
                     ^
In file included from ./rndjent.c:86:
./jitterentropy-base.c:347:18: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
        jent_get_nstime(&time);
                        ^~~~~
./jitterentropy-base-user.h:67:22: note: passing argument to parameter 'out' here
jent_get_nstime(u64 *out)
                     ^
In file included from ./rndjent.c:86:
./jitterentropy-base.c:679:19: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
                jent_get_nstime(&time);
                                ^~~~~
./jitterentropy-base-user.h:67:22: note: passing argument to parameter 'out' here
jent_get_nstime(u64 *out)
                     ^
In file included from ./rndjent.c:86:
./jitterentropy-base.c:682:19: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
                jent_get_nstime(&time2);
                                ^~~~~~
./jitterentropy-base-user.h:67:22: note: passing argument to parameter 'out' here
jent_get_nstime(u64 *out)
                     ^
rndlinux.c:273:21: error: implicit declaration of function 'getentropy' [-Werror,-Wimplicit-function-declaration]
              ret = getentropy (buffer, nbytes);
                    ^
1 error generated.
make[2]: *** [rndlinux.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
5 warnings generated.

Change History (2)

comment:1 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In 597c4aafaa937f94636afd177e667f87cba80319/macports-ports (master):

libgcrypt: fix implicit declaration error

Closes: #62098

comment:2 Changed 4 years ago by dbl001 (dbl)

Catalina 10.15.7:

---> Building libgcrypt Error: Failed to build libgcrypt: command execution failed

info:build rndlinux.c:273:21: error: implicit declaration of function 'getentropy' [-Werror,-Wimplicit-function-declaration]
:info:build               ret = getentropy (buffer, nbytes);

Note: See TracTickets for help on using tickets.