{"action":"created","issue":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/2237","repository_url":"https://api.github.com/repos/balabit/syslog-ng","labels_url":"https://api.github.com/repos/balabit/syslog-ng/issues/2237/labels{/name}","comments_url":"https://api.github.com/repos/balabit/syslog-ng/issues/2237/comments","events_url":"https://api.github.com/repos/balabit/syslog-ng/issues/2237/events","html_url":"https://github.com/balabit/syslog-ng/issues/2237","id":351886786,"node_id":"MDU6SXNzdWUzNTE4ODY3ODY=","number":2237,"title":"Error in compiling syslog-ng, make[2]: *** [modules/dbparser/pdbtool/pdbtool] Error 1","user":{"login":"ComputerFrek","id":15178408,"node_id":"MDQ6VXNlcjE1MTc4NDA4","avatar_url":"https://avatars1.githubusercontent.com/u/15178408?v=4","gravatar_id":"","url":"https://api.github.com/users/ComputerFrek","html_url":"https://github.com/ComputerFrek","followers_url":"https://api.github.com/users/ComputerFrek/followers","following_url":"https://api.github.com/users/ComputerFrek/following{/other_user}","gists_url":"https://api.github.com/users/ComputerFrek/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputerFrek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputerFrek/subscriptions","organizations_url":"https://api.github.com/users/ComputerFrek/orgs","repos_url":"https://api.github.com/users/ComputerFrek/repos","events_url":"https://api.github.com/users/ComputerFrek/events{/privacy}","received_events_url":"https://api.github.com/users/ComputerFrek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-19T09:00:36Z","updated_at":"2018-08-28T10:37:25Z","closed_at":null,"author_association":"NONE","body":"# syslog-ng\r\n\r\n## Version of syslog-ng\r\n\r\n```\r\nsyslog-ng-3.17.2\r\n```\r\n\r\n## Platform\r\n\r\nRHEL 7.5\r\n\r\n# Issue\r\n\r\n## Failure\r\ngcc: warning: /usr/local/openssl/include: linker input file unused because linking not done\r\n  CCLD     modules/dbparser/pdbtool/pdbtool\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `OPENSSL_sk_num'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_set_ex_data'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_STORE_CTX_set_error'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BIO_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BIO_s_mem'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BIO_ctrl'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `DH_check'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `PKCS12_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_STORE_CTX_get_error'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ASN1_STRING_length'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_get_extension_flags'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_set_verify'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `RAND_load_file'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_set_info_callback'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_check_private_key'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_use_certificate_chain_file'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509V3_EXT_d2i'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_get_peer_certificate'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BIO_new'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_get_subject_name'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_set_options'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ERR_clear_error'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `d2i_PKCS12_fp'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_add_client_CA'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_get_ext_by_NID'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ERR_lib_error_string'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_NAME_get_text_by_NID'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_set_connect_state'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_new'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_get0_param'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_set_accept_state'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_read'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BN_get_rfc3526_prime_2048'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `RAND_bytes'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_set_fd'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_set_session_id_context'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `DH_new'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_use_PrivateKey'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_NAME_print_ex'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_verify_cert_error_string'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_get_ext'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `OPENSSL_sk_value'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_load_verify_locations'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ERR_get_error'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ERR_func_error_string'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `DH_set0_pqg'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_set_options'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ERR_reason_error_string'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `PEM_read_bio_DHparams'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `RAND_file_name'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_VERIFY_PARAM_set_flags'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_use_PrivateKey_file'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_set_default_passwd_cb'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `RAND_write_file'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_get_ex_data'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_clear_options'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BN_dec2bn'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_STORE_CTX_get_current_cert'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_STORE_CTX_get_ex_data'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_set_cipher_list'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_new'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_use_certificate'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_write'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_get_cert_store'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `TLS_client_method'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `OPENSSL_sk_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_get_ex_data_X509_STORE_CTX_idx'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_digest'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BIO_new_file'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_get_issuer_name'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `RAND_status'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_ctrl'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_STORE_CTX_get_error_depth'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `DH_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `ASN1_STRING_get0_data'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `BN_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `EVP_sha1'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_get_error'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `SSL_CTX_free'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `PKCS12_parse'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `X509_STORE_add_cert'\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `TLS_server_method'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [modules/dbparser/pdbtool/pdbtool] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all] Error 2\r\n\r\n## Steps to reproduce\r\n\r\n1. Compiling syslog-ng\r\n\r\n2. ...\r\n\r\n## Compilation Env\r\nLD_LIBRARY_PATH=/usr/local/openssl/lib; export LD_LIBRARY_PATH \r\nLDFLAGS=\"-L/usr/local/openssl/lib\"; export LDFLAGS \r\nCPPFLAGS=\"-I/usr/local/openssl/include\"; export CPPFLAGS \r\nOPENSSL_CFLAGS=/usr/local/openssl/include;export OPENSSL_CFLAGS \r\nOPENSSL_LIBS=/usr/local/openssl/lib;export OPENSSL_LIBS \r\n\r\n## Compilation Options\r\n\r\n./configure --prefix=/usr/local/syslog-ng --enable-debug --enable-mongodb --enable-json --enable-systemd --enable-java --enable-java-modules --enable-smtp --with-libcurl=/usr/local/curl/ --with-libesmtp=/usr/local/libesmtp --with-libmongo-client=system --with-ld-library-path=/usr/local/openssl/lib\r\n\r\n## Input and output logs (if possible)\r\nN/A\r\n"},"comment":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/comments/416535681","html_url":"https://github.com/balabit/syslog-ng/issues/2237#issuecomment-416535681","issue_url":"https://api.github.com/repos/balabit/syslog-ng/issues/2237","id":416535681,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjUzNTY4MQ==","user":{"login":"gaborznagy","id":25612261,"node_id":"MDQ6VXNlcjI1NjEyMjYx","avatar_url":"https://avatars0.githubusercontent.com/u/25612261?v=4","gravatar_id":"","url":"https://api.github.com/users/gaborznagy","html_url":"https://github.com/gaborznagy","followers_url":"https://api.github.com/users/gaborznagy/followers","following_url":"https://api.github.com/users/gaborznagy/following{/other_user}","gists_url":"https://api.github.com/users/gaborznagy/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborznagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborznagy/subscriptions","organizations_url":"https://api.github.com/users/gaborznagy/orgs","repos_url":"https://api.github.com/users/gaborznagy/repos","events_url":"https://api.github.com/users/gaborznagy/events{/privacy}","received_events_url":"https://api.github.com/users/gaborznagy/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T10:37:25Z","updated_at":"2018-08-28T10:37:25Z","author_association":"CONTRIBUTOR","body":"Hi @ComputerFrek,\r\n\r\nDo you still have the compilation problem or were you able to resolve it?\r\nI have created and setup a clean build environment similar to yours with openssl 1.1.0h.\r\n\r\n* I think instead of `--with-libmongo-client` you should use the `--with-mongoc` configure option (the previous one does not exist). This seems to be a doc bug.\r\n\r\n* At first I have found that `OPENSSL_CFLAGS` misses the -I compiler flag.\r\nAfter that loggen has build errors:\r\n```\r\n/usr/bin/ld: cannot find /usr/local/openssl/lib: File format not recognized\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:11220: recipe for target 'tests/loggen/loggen' failed\r\n```\r\nAre you aware that if you use `with-ld-library-path` it will result that syslog-ng will be compiled with an enabled environment wrapper and using the given value as LD_LIBRARY_PATH?\r\nIf I remove the `--with-ld-library-path` then I see the same error as you do.\r\n```\r\n./lib/.libs/libsyslog-ng.so: undefined reference to `TLS_server_method'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:10897: recipe for target 'modules/dbparser/pdbtool/pdbtool' failed\r\nmake[2]: *** [modules/dbparser/pdbtool/pdbtool] Error 1\r\n```\r\nI need to investigate the issue more.\r\n"}}
{"actor":{"display_login":"gaborznagy"}}