{"action":"created","issue":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/1681","repository_url":"https://api.github.com/repos/edenhill/librdkafka","labels_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1681/labels{/name}","comments_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1681/comments","events_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1681/events","html_url":"https://github.com/edenhill/librdkafka/issues/1681","id":296462249,"number":1681,"title":"Issues compiling the library on MacOS High Sierra","user":{"login":"vvraskin","id":7526585,"avatar_url":"https://avatars3.githubusercontent.com/u/7526585?v=4","gravatar_id":"","url":"https://api.github.com/users/vvraskin","html_url":"https://github.com/vvraskin","followers_url":"https://api.github.com/users/vvraskin/followers","following_url":"https://api.github.com/users/vvraskin/following{/other_user}","gists_url":"https://api.github.com/users/vvraskin/gists{/gist_id}","starred_url":"https://api.github.com/users/vvraskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvraskin/subscriptions","organizations_url":"https://api.github.com/users/vvraskin/orgs","repos_url":"https://api.github.com/users/vvraskin/repos","events_url":"https://api.github.com/users/vvraskin/events{/privacy}","received_events_url":"https://api.github.com/users/vvraskin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-12T17:34:27Z","updated_at":"2018-02-13T09:13:52Z","closed_at":"2018-02-13T09:13:52Z","author_association":"NONE","body":"Read the FAQ first: https://github.com/edenhill/librdkafka/wiki/FAQ\r\n\r\n\r\n\r\nDescription\r\n===========\r\nIt seems that there is a conflict between the openssl version that I have and the headers that are required for the compilation.\r\nWhen I `make` the latest master version I get the following error (sorry for the long output):\r\n```\r\nCreating shared library librdkafka.1.dylib\r\ngcc  -shared -dynamiclib -Wl,-install_name,/usr/local/lib/librdkafka.1.dylib rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdaddr.o rdrand.o rdlist.o tinycthread.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o snappy.o rdgz.o rdkafka_lz4.o xxhash.o rddl.o rdkafka_plugin.o -o librdkafka.1.dylib -lpthread -lz -L/usr/local/Cellar/lz4/1.8.1.2/lib -llz4 -L/usr/local/Cellar/openssl/1.0.2n/lib -lssl -lsasl2 -ldl\r\nUndefined symbols for architecture x86_64:\r\n  \"_BIO_ctrl\", referenced from:\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_f_base64\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_free_all\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_new\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_new_mem_buf\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n  \"_BIO_push\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_read\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n  \"_BIO_s_mem\", referenced from:\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_set_flags\", referenced from:\r\n      _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_BIO_write\", referenced from:\r\n      _rd_base64_encode in rdkafka_sasl_scram.o\r\n  \"_CRYPTO_cleanup_all_ex_data\", referenced from:\r\n      _rd_kafka_transport_ssl_term in rdkafka_transport.o\r\n  \"_CRYPTO_num_locks\", referenced from:\r\n      _rd_kafka_transport_ssl_init in rdkafka_transport.o\r\n  \"_CRYPTO_set_id_callback\", referenced from:\r\n      _rd_kafka_transport_ssl_term in rdkafka_transport.o\r\n      _rd_kafka_transport_ssl_init in rdkafka_transport.o\r\n  \"_CRYPTO_set_locking_callback\", referenced from:\r\n      _rd_kafka_transport_ssl_term in rdkafka_transport.o\r\n      _rd_kafka_transport_ssl_init in rdkafka_transport.o\r\n  \"_ERR_error_string_n\", referenced from:\r\n      _rd_kafka_ssl_error in rdkafka_transport.o\r\n  \"_ERR_get_error_line_data\", referenced from:\r\n      _rd_kafka_ssl_error in rdkafka_transport.o\r\n  \"_ERR_remove_thread_state\", referenced from:\r\n      _rd_kafka_broker_thread_main in rdkafka_broker.o\r\n  \"_EVP_PKEY_free\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_EVP_PKEY_new\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_EVP_sha1\", referenced from:\r\n      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o\r\n  \"_EVP_sha256\", referenced from:\r\n      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o\r\n  \"_EVP_sha512\", referenced from:\r\n      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o\r\n  \"_HMAC\", referenced from:\r\n      _rd_kafka_sasl_scram_Hi in rdkafka_sasl_scram.o\r\n      _rd_kafka_sasl_scram_HMAC in rdkafka_sasl_scram.o\r\n  \"_OPENSSL_add_all_algorithms_noconf\", referenced from:\r\n      _rd_kafka_transport_ssl_init in rdkafka_transport.o\r\n  \"_PKCS12_free\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_PKCS12_parse\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_SHA1\", referenced from:\r\n      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o\r\n  \"_SHA256\", referenced from:\r\n      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o\r\n  \"_SHA512\", referenced from:\r\n      _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o\r\n  \"_X509_STORE_set_flags\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_X509_free\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n      _rd_kafka_transport_io_serve in rdkafka_transport.o\r\n  \"_X509_new\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_X509_verify_cert_error_string\", referenced from:\r\n      _rd_kafka_transport_io_serve in rdkafka_transport.o\r\n  \"_d2i_PKCS12_fp\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\n  \"_sk_pop_free\", referenced from:\r\n      _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[1]: *** [librdkafka.1.dylib] Error 1\r\nmake: *** [libs] Error 2\r\n```\r\nHas someone seen this error before?\r\n\r\nThank you. \r\n\r\nChecklist\r\n=========\r\n\r\n - [x] librdkafka version (release number or git tag): `v0.11.3`\r\n - [x] Operating system: `MacOS High Sierra 10.13.3`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/comments/365198063","html_url":"https://github.com/edenhill/librdkafka/issues/1681#issuecomment-365198063","issue_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1681","id":365198063,"user":{"login":"vvraskin","id":7526585,"avatar_url":"https://avatars3.githubusercontent.com/u/7526585?v=4","gravatar_id":"","url":"https://api.github.com/users/vvraskin","html_url":"https://github.com/vvraskin","followers_url":"https://api.github.com/users/vvraskin/followers","following_url":"https://api.github.com/users/vvraskin/following{/other_user}","gists_url":"https://api.github.com/users/vvraskin/gists{/gist_id}","starred_url":"https://api.github.com/users/vvraskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvraskin/subscriptions","organizations_url":"https://api.github.com/users/vvraskin/orgs","repos_url":"https://api.github.com/users/vvraskin/repos","events_url":"https://api.github.com/users/vvraskin/events{/privacy}","received_events_url":"https://api.github.com/users/vvraskin/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T09:13:52Z","updated_at":"2018-02-13T09:13:52Z","author_association":"NONE","body":"Unfortunately reinstalling openssl did not help. \r\nThe problem seems to be related to the conflict of openssl versions (macos native and the one installed by brew). Specifying the binaries and headers explicitly by exporting the env vars unravels the mystery:\r\n```\r\nexport LDFLAGS=-L/usr/local/opt/openssl/lib\r\nexport CPPFLAGS=-I/usr/local/opt/openssl/include\r\n```"}}
{"actor":{"display_login":"vvraskin"}}