Skip to content

Instantly share code, notes, and snippets.

@adamf
Created February 24, 2014 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamf/9199371 to your computer and use it in GitHub Desktop.
Save adamf/9199371 to your computer and use it in GitHub Desktop.
making all in crypto...
( echo "#ifndef MK1MF_BUILD"; \
echo ' /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
echo ' #define CFLAGS "clang -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Werror -Weverything"'; \
echo ' #define PLATFORM "darwin-i386-cc"'; \
echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
clang -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Werror -Weverything -c -o cryptlib.o cryptlib.c
cryptlib.c:459:9: error: will never be executed [-Werror,-Wunreachable-code]
while (dnum--)
^~~~
cryptlib.c:907:22: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
vfprintf (stderr,fmta,ap);
^~~~
cryptlib.c:914:2: error: function 'OpenSSLDie' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]
{
^
3 errors generated.
make[1]: *** [cryptlib.o] Error 1
make: *** [build_crypto] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment