Opened 18 months ago

Last modified 6 months ago

#58605 assigned defect

cryptlib @3.4.5: Build fails due to undefined _Static_assert

Reported by: ryandesign (Ryan Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc:
Port: cryptlib

Description

cryptlib forces the use of clang and assumes it supports _Static_assert; the ancient version on Snow Leopard apparently does not.

Change History (1)

comment:1 Changed 6 months ago by kencu (Ken)

This doesn't happen any more, now that 10.6.8 defaults to clang-9.0.

However, build still fails because the clang-9.0 on 10.6.8 has the sanitzers disabled:

/opt/local/bin/clang-mp-9.0 -Os -isystem/opt/local/include -arch x86_64 -c -D__UNIX__ -DNDEBUG -I. -DDATA_LITTLEENDIAN -DFIXED_SEED=0xafe58b0d -DHAS_ODBC -I/usr/include -DHAS_LDAP -DHAS_ZLIB -Wno-pointer-sign -Wno-switch -fsanitize=safe-stack -fPIC -fno-common -DHAS_RECURSIVE_MUTEX -DOSVERSION=10 -fomit-frame-pointer -o ./shared-obj/bn_asm.o bn/bn_asm.c
clang: error: unsupported option '-fsanitize=safe-stack' for target 'x86_64-apple-darwin10.8.0'
clang: error: unsupported option '-fsanitize=safe-stack' for target 'x86_64-apple-darwin10.8.0'
Note: See TracTickets for help on using tickets.