premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.24k stars 618 forks source link

5.0.0-alpha10 gmake.unix does not link against openssl #594

Closed manxorist closed 8 years ago

manxorist commented 8 years ago
$ ~/tmp/pm/premake-5.0.0-alpha10/build/gmake.unix $ make
==== Building lua-lib (release) ====
Creating bin/Release
Creating obj/Release/lua-lib
lapi.c
lbaselib.c
lcode.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
lobject.c
loadlib.c
lopcodes.c
loslib.c
lparser.c
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
lundump.c
lvm.c
lzio.c
Linking lua-lib
==== Building zip-lib (release) ====
Creating obj/Release/zip-lib
mkstemp.c
zip_add.c
zip_add_dir.c
zip_add_entry.c
zip_close.c
zip_delete.c
zip_dir_add.c
zip_dirent.c
zip_discard.c
zip_entry.c
zip_err_str.c
zip_error.c
zip_error_clear.c
zip_error_get.c
zip_error_get_sys_type.c
zip_error_strerror.c
zip_error_to_str.c
zip_extra_field.c
zip_extra_field_api.c
zip_fclose.c
zip_fdopen.c
zip_file_add.c
zip_file_error_clear.c
zip_file_error_get.c
zip_file_get_comment.c
zip_file_get_external_attributes.c
zip_file_get_offset.c
zip_file_rename.c
zip_file_replace.c
zip_file_set_comment.c
zip_file_set_external_attributes.c
zip_file_strerror.c
zip_filerange_crc.c
zip_fopen.c
zip_fopen_encrypted.c
zip_fopen_index.c
zip_fopen_index_encrypted.c
zip_fread.c
zip_get_archive_comment.c
zip_get_archive_flag.c
zip_get_compression_implementation.c
zip_get_encryption_implementation.c
zip_get_file_comment.c
zip_get_name.c
zip_get_num_entries.c
zip_get_num_files.c
zip_memdup.c
zip_name_locate.c
zip_new.c
zip_open.c
zip_rename.c
zip_replace.c
zip_set_archive_comment.c
zip_set_default_password.c
zip_set_archive_flag.c
zip_set_file_comment.c
zip_set_name.c
zip_set_file_compression.c
zip_source_buffer.c
zip_source_close.c
zip_source_crc.c
zip_source_error.c
zip_source_deflate.c
zip_source_file.c
zip_source_filep.c
zip_source_free.c
zip_source_function.c
zip_source_layered.c
zip_source_open.c
zip_source_pkware.c
zip_source_pop.c
zip_source_read.c
zip_source_stat.c
zip_source_window.c
zip_source_zip.c
zip_source_zip_new.c
zip_stat.c
zip_stat_index.c
zip_stat_init.c
zip_strerror.c
zip_string.c
zip_unchange.c
zip_unchange_all.c
zip_unchange_data.c
zip_unchange_archive.c
zip_utf-8.c
Linking zip-lib
==== Building zlib-lib (release) ====
Creating obj/Release/zlib-lib
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
uncompr.c
trees.c
zutil.c
Linking zlib-lib
==== Building curl-lib (release) ====
Creating obj/Release/curl-lib
amigaos.c
asyn-ares.c
asyn-thread.c
base64.c
conncache.c
connect.c
content_encoding.c
cookie.c
curl_addrinfo.c
curl_des.c
curl_endian.c
curl_fnmatch.c
curl_gethostname.c
curl_gssapi.c
curl_memrchr.c
curl_multibyte.c
curl_ntlm.c
curl_ntlm_msgs.c
curl_ntlm_core.c
curl_ntlm_wb.c
curl_rtmp.c
curl_sasl.c
curl_sasl_sspi.c
curl_sasl_gssapi.c
curl_sspi.c
curl_threads.c
dict.c
dotdot.c
easy.c
escape.c
file.c
fileinfo.c
formdata.c
ftp.c
ftplistparser.c
getenv.c
getinfo.c
gopher.c
hash.c
hmac.c
hostasyn.c
hostcheck.c
hostip.c
hostip4.c
hostip6.c
hostsyn.c
http.c
http2.c
http_chunks.c
http_digest.c
http_negotiate.c
http_negotiate_sspi.c
http_proxy.c
idn_win32.c
if2ip.c
imap.c
inet_ntop.c
inet_pton.c
krb5.c
ldap.c
llist.c
md4.c
md5.c
memdebug.c
mprintf.c
multi.c
netrc.c
non-ascii.c
nonblock.c
nwlib.c
nwos.c
openldap.c
pingpong.c
parsedate.c
pipeline.c
pop3.c
progress.c
rawstr.c
rtsp.c
security.c
select.c
sendf.c
share.c
slist.c
smb.c
smtp.c
socks.c
socks_gssapi.c
socks_sspi.c
speedcheck.c
splay.c
ssh.c
strdup.c
strequal.c
strerror.c
strtok.c
strtoofft.c
telnet.c
tftp.c
timeval.c
transfer.c
url.c
version.c
axtls.c
cyassl.c
darwinssl.c
gskit.c
gtls.c
nss.c
openssl.c
polarssl.c
polarssl_threadlock.c
schannel.c
vtls.c
warnless.c
wildcard.c
x509asn1.c
Linking curl-lib
==== Building Premake5 (release) ====
Creating ../../bin/release
Creating obj/Release/Premake5
buffered_io.c
criteria_matches.c
debug_prompt.c
http.c
lua_auxlib.c
../../src/host/http.c: In function ‘curl_request’:
../../src/host/http.c:178:1157: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
     curl_easy_setopt(curl, CURLOPT_TIMEOUT, luaL_checknumber(L, -1));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
os_chdir.c
os_chmod.c
os_compile.c
os_copyfile.c
os_getcwd.c
os_getpass.c
os_getversion.c
os_is64bit.c
os_isdir.c
os_isfile.c
os_islink.c
os_locate.c
os_match.c
os_mkdir.c
os_pathsearch.c
os_realpath.c
os_rmdir.c
os_stat.c
os_uuid.c
os_writefile_ifnotequal.c
path_getabsolute.c
path_getrelative.c
path_isabsolute.c
path_join.c
path_normalize.c
path_translate.c
path_wildcards.c
premake.c
premake_main.c
string_endswith.c
string_hash.c
string_sha1.c
string_startswith.c
zip_extract.c
scripts.c
Linking Premake5
bin/Release/libcurl-lib.a(md5.o): In function `Curl_md5it':
md5.c:(.text+0x10): undefined reference to `MD5_Init'
md5.c:(.text+0x2d): undefined reference to `MD5_Update'
md5.c:(.text+0x38): undefined reference to `MD5_Final'
bin/Release/libcurl-lib.a(md5.o):(.rodata+0x0): undefined reference to `MD5_Init'
bin/Release/libcurl-lib.a(md5.o):(.rodata+0x8): undefined reference to `MD5_Update'
bin/Release/libcurl-lib.a(md5.o):(.rodata+0x10): undefined reference to `MD5_Final'
bin/Release/libcurl-lib.a(md5.o):(.rodata+0x20): undefined reference to `MD5_Init'
bin/Release/libcurl-lib.a(md5.o):(.rodata+0x28): undefined reference to `MD5_Update'
bin/Release/libcurl-lib.a(md5.o):(.rodata+0x30): undefined reference to `MD5_Final'
bin/Release/libcurl-lib.a(openssl.o): In function `ossl_recv':
openssl.c:(.text+0x2c): undefined reference to `ERR_clear_error'
openssl.c:(.text+0x58): undefined reference to `SSL_read'
openssl.c:(.text+0x98): undefined reference to `SSL_get_error'
openssl.c:(.text+0xb1): undefined reference to `ERR_get_error'
openssl.c:(.text+0x107): undefined reference to `ERR_error_string'
bin/Release/libcurl-lib.a(openssl.o): In function `ossl_send':
openssl.c:(.text+0x16c): undefined reference to `ERR_clear_error'
openssl.c:(.text+0x198): undefined reference to `SSL_write'
openssl.c:(.text+0x1da): undefined reference to `SSL_get_error'
openssl.c:(.text+0x1f3): undefined reference to `ERR_get_error'
openssl.c:(.text+0x1fe): undefined reference to `ERR_error_string'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_seed':
openssl.c:(.text+0x595): undefined reference to `RAND_load_file'
openssl.c:(.text+0x5b1): undefined reference to `RAND_bytes'
openssl.c:(.text+0x5c6): undefined reference to `RAND_add'
openssl.c:(.text+0x5cb): undefined reference to `RAND_status'
openssl.c:(.text+0x5e3): undefined reference to `RAND_file_name'
openssl.c:(.text+0x5f9): undefined reference to `RAND_load_file'
bin/Release/libcurl-lib.a(openssl.o): In function `ssl_ui_writer':
openssl.c:(.text+0x680): undefined reference to `UI_get_string_type'
openssl.c:(.text+0x690): undefined reference to `UI_get0_user_data'
openssl.c:(.text+0x69d): undefined reference to `UI_get_input_flags'
openssl.c:(.text+0x6a6): undefined reference to `UI_OpenSSL'
openssl.c:(.text+0x6ae): undefined reference to `UI_method_get_writer'
bin/Release/libcurl-lib.a(openssl.o): In function `ssl_ui_reader':
openssl.c:(.text+0x6de): undefined reference to `UI_get_string_type'
openssl.c:(.text+0x6ee): undefined reference to `UI_get0_user_data'
openssl.c:(.text+0x6fe): undefined reference to `UI_get_input_flags'
openssl.c:(.text+0x707): undefined reference to `UI_OpenSSL'
openssl.c:(.text+0x70f): undefined reference to `UI_method_get_reader'
openssl.c:(.text+0x72a): undefined reference to `UI_set_result'
bin/Release/libcurl-lib.a(openssl.o): In function `X509V3_ext':
openssl.c:(.text+0x773): undefined reference to `sk_num'
openssl.c:(.text+0x78e): undefined reference to `sk_num'
openssl.c:(.text+0x7a2): undefined reference to `sk_value'
openssl.c:(.text+0x7aa): undefined reference to `BIO_s_mem'
openssl.c:(.text+0x7b2): undefined reference to `BIO_new'
openssl.c:(.text+0x7c6): undefined reference to `X509_EXTENSION_get_object'
openssl.c:(.text+0x7d8): undefined reference to `i2t_ASN1_OBJECT'
openssl.c:(.text+0x7e7): undefined reference to `X509V3_EXT_print'
openssl.c:(.text+0x809): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x8a3): undefined reference to `BIO_free'
openssl.c:(.text+0x8ab): undefined reference to `sk_num'
openssl.c:(.text+0x8d2): undefined reference to `X509_EXTENSION_get_data'
openssl.c:(.text+0x8dd): undefined reference to `ASN1_STRING_print'
bin/Release/libcurl-lib.a(openssl.o): In function `ossl_connect_common':
openssl.c:(.text+0xb04): undefined reference to `ERR_clear_error'
openssl.c:(.text+0xb0d): undefined reference to `SSL_connect'
openssl.c:(.text+0xb21): undefined reference to `SSL_get_error'
openssl.c:(.text+0xb5d): undefined reference to `ERR_get_error'
openssl.c:(.text+0xb90): undefined reference to `ERR_error_string_n'
openssl.c:(.text+0xc4c): undefined reference to `SSL_get_current_cipher'
openssl.c:(.text+0xc54): undefined reference to `SSL_CIPHER_get_name'
openssl.c:(.text+0xc6f): undefined reference to `SSL_version'
openssl.c:(.text+0xd05): undefined reference to `SSL_get_verify_result'
openssl.c:(.text+0xd1e): undefined reference to `X509_verify_cert_error_string'
openssl.c:(.text+0xea8): undefined reference to `SSLv23_client_method'
openssl.c:(.text+0xebe): undefined reference to `SSL_CTX_free'
openssl.c:(.text+0xec6): undefined reference to `SSL_CTX_new'
openssl.c:(.text+0xee7): undefined reference to `SSL_CTX_ctrl'
openssl.c:(.text+0xfd9): undefined reference to `SSLv3_client_method'
openssl.c:(.text+0xff9): undefined reference to `SSL_CTX_ctrl'
openssl.c:(.text+0x108c): undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
openssl.c:(.text+0x109b): undefined reference to `SSL_CTX_set_default_passwd_cb'
openssl.c:(.text+0x10f5): undefined reference to `d2i_PKCS12_fp'
openssl.c:(.text+0x1113): undefined reference to `PKCS12_PBE_add'
openssl.c:(.text+0x1142): undefined reference to `PKCS12_parse'
openssl.c:(.text+0x114f): undefined reference to `ERR_get_error'
openssl.c:(.text+0x1159): undefined reference to `ERR_error_string'
openssl.c:(.text+0x1175): undefined reference to `PKCS12_free'
openssl.c:(.text+0x1217): undefined reference to `ERR_peek_error'
openssl.c:(.text+0x1221): undefined reference to `ERR_error_string'
openssl.c:(.text+0x1257): undefined reference to `SSL_get1_session'
openssl.c:(.text+0x12dd): undefined reference to `BIO_s_mem'
openssl.c:(.text+0x12e5): undefined reference to `BIO_new'
openssl.c:(.text+0x1301): undefined reference to `SSL_get_peer_certificate'
openssl.c:(.text+0x133f): undefined reference to `X509_get_subject_name'
openssl.c:(.text+0x1347): undefined reference to `BIO_s_mem'
openssl.c:(.text+0x134f): undefined reference to `BIO_new'
openssl.c:(.text+0x136f): undefined reference to `X509_NAME_print_ex'
openssl.c:(.text+0x138c): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x13c9): undefined reference to `BIO_free'
openssl.c:(.text+0x1404): undefined reference to `ASN1_TIME_print'
openssl.c:(.text+0x141b): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1446): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x145d): undefined reference to `ASN1_TIME_print'
openssl.c:(.text+0x1474): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x149f): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x14a7): undefined reference to `BIO_free'
openssl.c:(.text+0x151f): undefined reference to `X509_get_ext_d2i'
openssl.c:(.text+0x1535): undefined reference to `sk_num'
openssl.c:(.text+0x157e): undefined reference to `sk_value'
openssl.c:(.text+0x1591): undefined reference to `ASN1_STRING_data'
openssl.c:(.text+0x15a2): undefined reference to `ASN1_STRING_length'
openssl.c:(.text+0x1610): undefined reference to `SSL_CTX_set_cipher_list'
openssl.c:(.text+0x16fd): undefined reference to `SSL_CTX_set_msg_callback'
openssl.c:(.text+0x1710): undefined reference to `SSL_CTX_ctrl'
openssl.c:(.text+0x1726): undefined reference to `SSL_CTX_set_next_proto_select_cb'
openssl.c:(.text+0x173a): undefined reference to `GENERAL_NAMES_free'
openssl.c:(.text+0x1755): undefined reference to `X509_get_subject_name'
openssl.c:(.text+0x177d): undefined reference to `X509_NAME_get_index_by_NID'
openssl.c:(.text+0x1793): undefined reference to `X509_NAME_get_entry'
openssl.c:(.text+0x179b): undefined reference to `X509_NAME_ENTRY_get_data'
openssl.c:(.text+0x17af): undefined reference to `ASN1_STRING_type'
openssl.c:(.text+0x17c8): undefined reference to `ASN1_STRING_to_UTF8'
openssl.c:(.text+0x186d): undefined reference to `CRYPTO_free'
openssl.c:(.text+0x187e): undefined reference to `X509_get_issuer_name'
openssl.c:(.text+0x1886): undefined reference to `BIO_s_mem'
openssl.c:(.text+0x188e): undefined reference to `BIO_new'
openssl.c:(.text+0x18ae): undefined reference to `X509_NAME_print_ex'
openssl.c:(.text+0x18c8): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1904): undefined reference to `BIO_free'
openssl.c:(.text+0x1961): undefined reference to `X509_free'
openssl.c:(.text+0x198f): undefined reference to `SSL_CTX_use_certificate_chain_file'
openssl.c:(.text+0x199d): undefined reference to `ERR_get_error'
openssl.c:(.text+0x19a7): undefined reference to `ERR_error_string'
openssl.c:(.text+0x19f4): undefined reference to `SSL_CTX_load_verify_locations'
openssl.c:(.text+0x1a70): undefined reference to `SSL_CTX_use_certificate_file'
openssl.c:(.text+0x1a7e): undefined reference to `ERR_get_error'
openssl.c:(.text+0x1a88): undefined reference to `ERR_error_string'
openssl.c:(.text+0x1ade): undefined reference to `ENGINE_ctrl'
openssl.c:(.text+0x1b37): undefined reference to `SSL_CTX_use_PrivateKey_file'
openssl.c:(.text+0x1bc4): undefined reference to `SSL_get_peer_cert_chain'
openssl.c:(.text+0x1bda): undefined reference to `sk_num'
openssl.c:(.text+0x1bf5): undefined reference to `BIO_s_mem'
openssl.c:(.text+0x1bfd): undefined reference to `BIO_new'
openssl.c:(.text+0x1c33): undefined reference to `sk_value'
openssl.c:(.text+0x1c3e): undefined reference to `X509_get_subject_name'
openssl.c:(.text+0x1c50): undefined reference to `X509_NAME_print_ex'
openssl.c:(.text+0x1c67): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1c92): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1c9a): undefined reference to `X509_get_issuer_name'
openssl.c:(.text+0x1cac): undefined reference to `X509_NAME_print_ex'
openssl.c:(.text+0x1cbe): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1ce9): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1cf5): undefined reference to `ASN1_INTEGER_get'
openssl.c:(.text+0x1d07): undefined reference to `BIO_printf'
openssl.c:(.text+0x1d19): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1d44): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1d4c): undefined reference to `X509_get_serialNumber'
openssl.c:(.text+0x1d84): undefined reference to `BIO_printf'
openssl.c:(.text+0x1da8): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1dd3): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1de6): undefined reference to `i2a_ASN1_OBJECT'
openssl.c:(.text+0x1df8): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1e23): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1e36): undefined reference to `ASN1_TIME_print'
openssl.c:(.text+0x1e48): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1e73): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1e87): undefined reference to `ASN1_TIME_print'
openssl.c:(.text+0x1e99): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1ec4): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1ed6): undefined reference to `i2a_ASN1_OBJECT'
openssl.c:(.text+0x1ee8): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1f13): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1f1b): undefined reference to `X509_get_pubkey'
openssl.c:(.text+0x1f4c): undefined reference to `EVP_PKEY_free'
openssl.c:(.text+0x1f84): undefined reference to `BIO_printf'
openssl.c:(.text+0x1fac): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1fd7): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x1fe2): undefined reference to `PEM_write_bio_X509'
openssl.c:(.text+0x1ff4): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2022): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x203e): undefined reference to `BIO_free'
openssl.c:(.text+0x206f): undefined reference to `i2d_X509_PUBKEY'
openssl.c:(.text+0x2089): undefined reference to `CRYPTO_malloc'
openssl.c:(.text+0x20ad): undefined reference to `i2d_X509_PUBKEY'
openssl.c:(.text+0x20be): undefined reference to `CRYPTO_free'
openssl.c:(.text+0x20dd): undefined reference to `X509_free'
openssl.c:(.text+0x2140): undefined reference to `PEM_read_X509'
openssl.c:(.text+0x2160): undefined reference to `X509_check_issued'
openssl.c:(.text+0x217c): undefined reference to `X509_free'
openssl.c:(.text+0x2184): undefined reference to `X509_free'
openssl.c:(.text+0x219e): undefined reference to `SSL_SESSION_free'
openssl.c:(.text+0x21b2): undefined reference to `GENERAL_NAMES_free'
openssl.c:(.text+0x2200): undefined reference to `X509_free'
openssl.c:(.text+0x2217): undefined reference to `EVP_PKEY_free'
openssl.c:(.text+0x2221): undefined reference to `SSL_new'
openssl.c:(.text+0x2235): undefined reference to `SSL_get_certificate'
openssl.c:(.text+0x224a): undefined reference to `X509_get_pubkey'
openssl.c:(.text+0x2255): undefined reference to `SSL_get_privatekey'
openssl.c:(.text+0x2260): undefined reference to `EVP_PKEY_copy_parameters'
openssl.c:(.text+0x2268): undefined reference to `EVP_PKEY_free'
openssl.c:(.text+0x2270): undefined reference to `SSL_free'
openssl.c:(.text+0x227a): undefined reference to `SSL_CTX_check_private_key'
openssl.c:(.text+0x22d6): undefined reference to `SSL_CTX_use_PrivateKey_file'
openssl.c:(.text+0x231d): undefined reference to `ENGINE_ctrl_cmd'
openssl.c:(.text+0x2340): undefined reference to `SSL_CTX_use_certificate'
openssl.c:(.text+0x2367): undefined reference to `X509_free'
openssl.c:(.text+0x23a3): undefined reference to `CRYPTO_free'
openssl.c:(.text+0x23b4): undefined reference to `X509_free'
openssl.c:(.text+0x23dc): undefined reference to `SSL_ctrl'
openssl.c:(.text+0x23fd): undefined reference to `d2i_OCSP_RESPONSE'
openssl.c:(.text+0x2411): undefined reference to `OCSP_response_status'
openssl.c:(.text+0x2423): undefined reference to `OCSP_response_status_str'
openssl.c:(.text+0x243f): undefined reference to `OCSP_RESPONSE_free'
openssl.c:(.text+0x2448): undefined reference to `X509_free'
openssl.c:(.text+0x250d): undefined reference to `X509_LOOKUP_file'
openssl.c:(.text+0x2519): undefined reference to `SSL_CTX_get_cert_store'
openssl.c:(.text+0x2524): undefined reference to `X509_STORE_add_lookup'
openssl.c:(.text+0x2542): undefined reference to `X509_load_crl_file'
openssl.c:(.text+0x257c): undefined reference to `BN_num_bits'
openssl.c:(.text+0x258d): undefined reference to `BIO_printf'
openssl.c:(.text+0x25a1): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x25cc): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2612): undefined reference to `BN_print'
openssl.c:(.text+0x2629): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2657): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x269d): undefined reference to `BN_print'
openssl.c:(.text+0x26b4): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x26e2): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2728): undefined reference to `BN_print'
openssl.c:(.text+0x273f): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x276d): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x27b3): undefined reference to `BN_print'
openssl.c:(.text+0x27ca): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x27f8): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x283e): undefined reference to `BN_print'
openssl.c:(.text+0x2855): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2883): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x28c9): undefined reference to `BN_print'
openssl.c:(.text+0x28e0): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x290e): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2954): undefined reference to `BN_print'
openssl.c:(.text+0x296b): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2999): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x29e3): undefined reference to `BN_print'
openssl.c:(.text+0x29fa): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2a28): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2a35): undefined reference to `PKCS12_free'
openssl.c:(.text+0x2a47): undefined reference to `SSL_CTX_use_certificate'
openssl.c:(.text+0x2a55): undefined reference to `ERR_get_error'
openssl.c:(.text+0x2a5f): undefined reference to `ERR_error_string'
openssl.c:(.text+0x2a80): undefined reference to `EVP_PKEY_free'
openssl.c:(.text+0x2a8d): undefined reference to `X509_free'
openssl.c:(.text+0x2a9a): undefined reference to `X509_free'
openssl.c:(.text+0x2a9f): undefined reference to `sk_pop_free'
openssl.c:(.text+0x2aea): undefined reference to `BN_print'
openssl.c:(.text+0x2b01): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2b2f): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2b75): undefined reference to `BN_print'
openssl.c:(.text+0x2b8c): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2bba): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2c00): undefined reference to `BN_print'
openssl.c:(.text+0x2c17): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2c45): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2c8b): undefined reference to `BN_print'
openssl.c:(.text+0x2ca2): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2cd0): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2d3c): undefined reference to `BN_print'
openssl.c:(.text+0x2d53): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2d81): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2dc7): undefined reference to `BN_print'
openssl.c:(.text+0x2dde): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2e0c): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2e52): undefined reference to `BN_print'
openssl.c:(.text+0x2e69): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2e97): undefined reference to `BIO_ctrl'
openssl.c:(.text+0x2eca): undefined reference to `BIO_puts'
openssl.c:(.text+0x2f4a): undefined reference to `X509_free'
openssl.c:(.text+0x2f6b): undefined reference to `GENERAL_NAMES_free'
openssl.c:(.text+0x2fde): undefined reference to `X509_free'
openssl.c:(.text+0x2fe8): undefined reference to `ERR_get_error'
openssl.c:(.text+0x2ff2): undefined reference to `ERR_error_string'
openssl.c:(.text+0x3032): undefined reference to `SSL_CTX_get_cert_store'
openssl.c:(.text+0x303f): undefined reference to `X509_STORE_set_flags'
openssl.c:(.text+0x3079): undefined reference to `SSL_CTX_set_verify'
openssl.c:(.text+0x30ad): undefined reference to `SSL_free'
openssl.c:(.text+0x30b6): undefined reference to `SSL_new'
openssl.c:(.text+0x30dd): undefined reference to `SSL_set_connect_state'
openssl.c:(.text+0x3134): undefined reference to `SSL_set_session'
openssl.c:(.text+0x3141): undefined reference to `ERR_get_error'
openssl.c:(.text+0x314b): undefined reference to `ERR_error_string'
openssl.c:(.text+0x3200): undefined reference to `OCSP_response_get1_basic'
openssl.c:(.text+0x3211): undefined reference to `SSL_get_peer_cert_chain'
openssl.c:(.text+0x321d): undefined reference to `SSL_CTX_get_cert_store'
openssl.c:(.text+0x322a): undefined reference to `sk_num'
openssl.c:(.text+0x323c): undefined reference to `sk_num'
openssl.c:(.text+0x324d): undefined reference to `sk_num'
openssl.c:(.text+0x3259): undefined reference to `sk_value'
openssl.c:(.text+0x3279): undefined reference to `sk_num'
openssl.c:(.text+0x328f): undefined reference to `sk_value'
openssl.c:(.text+0x32a1): undefined reference to `X509_check_issued'
openssl.c:(.text+0x32b5): undefined reference to `OCSP_basic_add1_cert'
openssl.c:(.text+0x32ce): undefined reference to `OCSP_BASICRESP_free'
openssl.c:(.text+0x3301): undefined reference to `X509_free'
openssl.c:(.text+0x3308): undefined reference to `X509_free'
openssl.c:(.text+0x333d): undefined reference to `X509_free'
openssl.c:(.text+0x3346): undefined reference to `SSL_get_verify_result'
openssl.c:(.text+0x3380): undefined reference to `X509_verify_cert_error_string'
openssl.c:(.text+0x33ae): undefined reference to `SSL_CTX_use_PrivateKey'
openssl.c:(.text+0x33d7): undefined reference to `X509_verify_cert_error_string'
openssl.c:(.text+0x3436): undefined reference to `SSL_CTX_check_private_key'
openssl.c:(.text+0x3450): undefined reference to `sk_num'
openssl.c:(.text+0x346a): undefined reference to `EVP_PKEY_free'
openssl.c:(.text+0x3477): undefined reference to `X509_free'
openssl.c:(.text+0x3484): undefined reference to `X509_free'
openssl.c:(.text+0x3489): undefined reference to `sk_pop_free'
openssl.c:(.text+0x34a1): undefined reference to `SSL_CTX_add_client_CA'
openssl.c:(.text+0x34b6): undefined reference to `sk_num'
openssl.c:(.text+0x34c8): undefined reference to `sk_pop'
openssl.c:(.text+0x34e1): undefined reference to `SSL_CTX_ctrl'
openssl.c:(.text+0x355b): undefined reference to `ASN1_STRING_length'
openssl.c:(.text+0x3577): undefined reference to `CRYPTO_malloc'
openssl.c:(.text+0x3595): undefined reference to `ASN1_STRING_data'
openssl.c:(.text+0x35cc): undefined reference to `OCSP_basic_verify'
openssl.c:(.text+0x35e4): undefined reference to `OCSP_resp_count'
openssl.c:(.text+0x35f8): undefined reference to `OCSP_resp_get0'
openssl.c:(.text+0x3626): undefined reference to `OCSP_single_get0_status'
openssl.c:(.text+0x3646): undefined reference to `OCSP_check_validity'
openssl.c:(.text+0x3652): undefined reference to `OCSP_cert_status_str'
openssl.c:(.text+0x36ac): undefined reference to `OCSP_crl_reason_str'
openssl.c:(.text+0x36f6): undefined reference to `OCSP_BASICRESP_free'
openssl.c:(.text+0x36fe): undefined reference to `OCSP_RESPONSE_free'
openssl.c:(.text+0x374b): undefined reference to `UI_create_method'
openssl.c:(.text+0x375c): undefined reference to `UI_OpenSSL'
openssl.c:(.text+0x3764): undefined reference to `UI_method_get_opener'
openssl.c:(.text+0x376f): undefined reference to `UI_method_set_opener'
openssl.c:(.text+0x3774): undefined reference to `UI_OpenSSL'
openssl.c:(.text+0x377c): undefined reference to `UI_method_get_closer'
openssl.c:(.text+0x3787): undefined reference to `UI_method_set_closer'
openssl.c:(.text+0x3794): undefined reference to `UI_method_set_reader'
openssl.c:(.text+0x37a1): undefined reference to `UI_method_set_writer'
openssl.c:(.text+0x37c1): undefined reference to `ENGINE_load_private_key'
openssl.c:(.text+0x37cc): undefined reference to `UI_destroy_method'
openssl.c:(.text+0x37de): undefined reference to `SSL_CTX_use_PrivateKey'
openssl.c:(.text+0x3800): undefined reference to `EVP_PKEY_free'
openssl.c:(.text+0x389b): undefined reference to `SSL_set_fd'
openssl.c:(.text+0x38ee): undefined reference to `SSL_ctrl'
openssl.c:(.text+0x3910): undefined reference to `ERR_get_error'
openssl.c:(.text+0x391a): undefined reference to `ERR_error_string'
openssl.c:(.text+0x3949): undefined reference to `SSL_ctrl'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_init':
openssl.c:(.text+0x39d5): undefined reference to `OPENSSL_load_builtin_modules'
openssl.c:(.text+0x39e3): undefined reference to `CONF_modules_load_file'
openssl.c:(.text+0x39e8): undefined reference to `SSL_load_error_strings'
openssl.c:(.text+0x39ed): undefined reference to `SSL_library_init'
openssl.c:(.text+0x39f6): undefined reference to `OPENSSL_add_all_algorithms_noconf'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_cleanup':
openssl.c:(.text+0x3a15): undefined reference to `EVP_cleanup'
openssl.c:(.text+0x3a1a): undefined reference to `ERR_free_strings'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_check_cxn':
openssl.c:(.text+0x3a44): undefined reference to `SSL_peek'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_set_engine':
openssl.c:(.text+0x3a98): undefined reference to `ENGINE_by_id'
openssl.c:(.text+0x3ab5): undefined reference to `ENGINE_finish'
openssl.c:(.text+0x3ac1): undefined reference to `ENGINE_free'
openssl.c:(.text+0x3ad4): undefined reference to `ENGINE_init'
openssl.c:(.text+0x3b0c): undefined reference to `ENGINE_free'
openssl.c:(.text+0x3b11): undefined reference to `ERR_get_error'
openssl.c:(.text+0x3b21): undefined reference to `ERR_error_string_n'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_set_engine_default':
openssl.c:(.text+0x3b8d): undefined reference to `ENGINE_set_default'
openssl.c:(.text+0x3b9d): undefined reference to `ENGINE_get_id'
openssl.c:(.text+0x3bc1): undefined reference to `ENGINE_get_id'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_engines_list':
openssl.c:(.text+0x3bf5): undefined reference to `ENGINE_get_first'
openssl.c:(.text+0x3c14): undefined reference to `ENGINE_get_next'
openssl.c:(.text+0x3c27): undefined reference to `ENGINE_get_id'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_close':
openssl.c:(.text+0x3c7a): undefined reference to `SSL_shutdown'
openssl.c:(.text+0x3c83): undefined reference to `SSL_set_connect_state'
openssl.c:(.text+0x3c8c): undefined reference to `SSL_free'
openssl.c:(.text+0x3ca2): undefined reference to `SSL_CTX_free'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_shutdown':
openssl.c:(.text+0x3d26): undefined reference to `ERR_clear_error'
openssl.c:(.text+0x3d3b): undefined reference to `SSL_read'
openssl.c:(.text+0x3d4a): undefined reference to `SSL_get_error'
openssl.c:(.text+0x3d71): undefined reference to `ERR_get_error'
openssl.c:(.text+0x3d86): undefined reference to `ERR_error_string'
openssl.c:(.text+0x3da5): undefined reference to `SSL_free'
openssl.c:(.text+0x3e55): undefined reference to `SSL_shutdown'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_close_all':
openssl.c:(.text+0x3ea1): undefined reference to `ENGINE_finish'
openssl.c:(.text+0x3ead): undefined reference to `ENGINE_free'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_data_pending':
openssl.c:(.text+0x3f0b): undefined reference to `SSL_pending'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_version':
openssl.c:(.text+0x3f37): undefined reference to `SSLeay'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_random':
openssl.c:(.text+0x4044): undefined reference to `RAND_bytes'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_md5sum':
openssl.c:(.text+0x4075): undefined reference to `MD5_Init'
openssl.c:(.text+0x4083): undefined reference to `MD5_Update'
openssl.c:(.text+0x408e): undefined reference to `MD5_Final'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_sha256sum':
openssl.c:(.text+0x40b5): undefined reference to `SHA256_Init'
openssl.c:(.text+0x40c3): undefined reference to `SHA256_Update'
openssl.c:(.text+0x40ce): undefined reference to `SHA256_Final'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_cleanup':
openssl.c:(.text+0x3a25): undefined reference to `ERR_remove_thread_state'
bin/Release/libcurl-lib.a(openssl.o): In function `Curl_ossl_session_free':
openssl.c:(.text+0x3e81): undefined reference to `SSL_SESSION_free'
bin/Release/libcurl-lib.a(curl_ntlm_core.o): In function `Curl_ntlm_core_lm_resp':
curl_ntlm_core.c:(.text+0xd7): undefined reference to `DES_set_key'
curl_ntlm_core.c:(.text+0xea): undefined reference to `DES_ecb_encrypt'
curl_ntlm_core.c:(.text+0x19f): undefined reference to `DES_set_key'
curl_ntlm_core.c:(.text+0x1b4): undefined reference to `DES_ecb_encrypt'
curl_ntlm_core.c:(.text+0x269): undefined reference to `DES_set_key'
curl_ntlm_core.c:(.text+0x27e): undefined reference to `DES_ecb_encrypt'
bin/Release/libcurl-lib.a(curl_ntlm_core.o): In function `Curl_ntlm_core_mk_lm_hash':
curl_ntlm_core.c:(.text+0x3ea): undefined reference to `DES_set_key'
curl_ntlm_core.c:(.text+0x3ff): undefined reference to `DES_ecb_encrypt'
curl_ntlm_core.c:(.text+0x4d0): undefined reference to `DES_set_key'
curl_ntlm_core.c:(.text+0x4e6): undefined reference to `DES_ecb_encrypt'
bin/Release/libcurl-lib.a(curl_ntlm_core.o): In function `Curl_ntlm_core_mk_nt_hash':
curl_ntlm_core.c:(.text+0x60a): undefined reference to `MD4_Init'
curl_ntlm_core.c:(.text+0x618): undefined reference to `MD4_Update'
curl_ntlm_core.c:(.text+0x623): undefined reference to `MD4_Final'
collect2: error: ld returned 1 exit status
make[1]: *** [../../bin/release/premake5] Error 1
make: *** [Premake5] Error 2
$ ~/tmp/pm/premake-5.0.0-alpha10/build/gmake.unix $ 

Editing build/gmake.unix/Premake5.lua and adding -lssl -lcrypto by hand fixes it.

fangainl commented 8 years ago

Thanks for this. You mean editing build/gmake.unix/Premake5.make

manxorist commented 8 years ago

Yes, I mean editing build/gmake.unix/Premake5.make.

samsinsane commented 8 years ago

Looking at the premake5.lua file for alpha10, it contains:

filter "system:linux"
    if not _OPTIONS["no-curl"] and os.findlib("ssl") then
        links       { "ssl", "crypto" }
    end

I'm assuming that the system that generated these makefiles did not have ssl. This is no longer an issue going forward as we don't use that function in the premake5.lua anymore, nor do we rely on ssl or crypto.