Opened 2 years ago

Last modified 3 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: cooljeanius (Eric Gallager)
Port: cryptlib


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

Change History (2)

comment:1 Changed 16 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'

comment:2 Changed 3 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.