Skip to content

PowerMac and error: 'kCCSuccess' undeclared (first use in this function) #16408

@noloader

Description

@noloader

I'm building the latest OpenSSL and OpenSSH on a PowerMac G5. I'm using OpenSSL 1.1.1l.

Make is failing with:

cc  -I. -Iinclude -fPIC -fno-common -arch ppc -std=gnu9x -Wa,-force_cpusubtype_ALL -g2 -O2 -mlong-double-64 -fno-common -maltivec -fPIC -pthread -DB_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DVPAES_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/opt/ssh\"" -DENGINESDIR="\"/opt/ssh/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -I/opt/ssh/include -DNDEBUG -DPEDANTIC  -c -o crypto/rand/rand_unix.o crypto/rand/rand_unix.c
crypto/rand/rand_unix.c:38:40: error: CommonCrypto/CommonRandom.h: No such file or directory
crypto/rand/rand_unix.c: In function 'syscall_random':
crypto/rand/rand_unix.c:385: warning: implicit declaration of function 'CCRandomGenerateBytes'
crypto/rand/rand_unix.c:385: error: 'kCCSuccess' undeclared (first use in this function)
crypto/rand/rand_unix.c:385: error: (Each undeclared identifier is reported only once
crypto/rand/rand_unix.c:385: error: for each function it appears in.)

Also see GH #16248.

Here is the configdata file produced during config: configdata.pm.zip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bug reportThe issue was opened to report a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions