{"action":"created","issue":{"url":"https://api.github.com/repos/curl/curl/issues/3006","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/3006/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/3006/comments","events_url":"https://api.github.com/repos/curl/curl/issues/3006/events","html_url":"https://github.com/curl/curl/issues/3006","id":360798209,"node_id":"MDU6SXNzdWUzNjA3OTgyMDk=","number":3006,"title":"./configure'ing with built but not installed SSL breaks some features","user":{"login":"unlightable","id":43645,"node_id":"MDQ6VXNlcjQzNjQ1","avatar_url":"https://avatars1.githubusercontent.com/u/43645?v=4","gravatar_id":"","url":"https://api.github.com/users/unlightable","html_url":"https://github.com/unlightable","followers_url":"https://api.github.com/users/unlightable/followers","following_url":"https://api.github.com/users/unlightable/following{/other_user}","gists_url":"https://api.github.com/users/unlightable/gists{/gist_id}","starred_url":"https://api.github.com/users/unlightable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlightable/subscriptions","organizations_url":"https://api.github.com/users/unlightable/orgs","repos_url":"https://api.github.com/users/unlightable/repos","events_url":"https://api.github.com/users/unlightable/events{/privacy}","received_events_url":"https://api.github.com/users/unlightable/received_events","type":"User","site_admin":false},"labels":[{"id":184118221,"node_id":"MDU6TGFiZWwxODQxMTgyMjE=","url":"https://api.github.com/repos/curl/curl/labels/SSL/TLS","name":"SSL/TLS","color":"bfdadc","default":false},{"id":184118182,"node_id":"MDU6TGFiZWwxODQxMTgxODI=","url":"https://api.github.com/repos/curl/curl/labels/build","name":"build","color":"bfdadc","default":false},{"id":192515830,"node_id":"MDU6TGFiZWwxOTI1MTU4MzA=","url":"https://api.github.com/repos/curl/curl/labels/needs-info-or-update","name":"needs-info-or-update","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-17T10:02:26Z","updated_at":"2018-09-25T13:44:26Z","closed_at":null,"author_association":"NONE","body":"Maybe that's something I actually do wrong and it's not a legit problem, but still.\r\n\r\n### I did this\r\nI'm trying to build libcurl as a shared library that depends on prebuilt libssl that differs from installed in the system.\r\nThat libssl is bundled with another libraries (including libcurl) and deployed with an executable that is built with `$ORIGIN` in `rpath`. This is not the issue, but that usage pattern leads to an actuall one.\r\n\r\n`./configure --prefix=/home/user  --enable-ares=/home/user --with-ssl=/home/user` does what it's suppose to do, but with a twist.\r\n\r\n### I experienced the following\r\n`./configure` executes fine, but it fails some 'seems to work' tests like this:\r\n```\r\n...\r\nconfigure:48929: checking if poll is prototyped\r\nconfigure:48944: result: yes\r\nconfigure:48960: checking if poll is compilable\r\nconfigure:48989: gcc -c -Werror-implicit-function-declaration -O2 -Wno-system-headers    -I/home/user/include   conftest.c >&5\r\nconfigure:48996: $? = 0\r\nconfigure:49002: result: yes\r\nconfigure:49022: checking if poll seems to work\r\nconfigure:49079: gcc -o conftest -Werror-implicit-function-declaration -O2 -Wno-system-headers    -I/home/user/include      -L/home/user/lib   conftest.c -lssl -lcrypto -lssl -lcrypto   -lz -lrt >&5\r\nconfigure:49083: $? = 0\r\nconfigure:49089: ./conftest\r\n./conftest: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory\r\nconfigure:49093: $? = 127\r\nconfigure: program exited with status 127\r\n...\r\n```\r\nThere are about 8 test that fail in a similar fashion and disable some features, although for me disabling `poll` was critical.\r\n\r\nThe issue here, if I'm seeing it right, is that it can't load .so's that are not in `ld` search path, but still links against them.\r\n\r\nI'm not really sure if\r\n- those test do need to link against all libraries libcurl will be linked against\r\n- LD_LIBRARY_PATH, modifying `rpath` of test executable or similar tools should be used\r\n\r\nMy dirty fix is to just put prebuilt libraries in `./` before running `configure`, but it seems... bad?\r\n\r\n### curl/libcurl version\r\n```\r\n$ ~/bin/curl --version\r\ncurl 7.61.1-DEV (x86_64-unknown-linux-gnu) libcurl/7.61.1-DEV OpenSSL/1.1.0h zlib/1.2.3 c-ares/1.14.0\r\nRelease-Date: [unreleased]\r\nProtocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp\r\nFeatures: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy\r\n```\r\n### operating system\r\nCentos 6"},"comment":{"url":"https://api.github.com/repos/curl/curl/issues/comments/424348868","html_url":"https://github.com/curl/curl/issues/3006#issuecomment-424348868","issue_url":"https://api.github.com/repos/curl/curl/issues/3006","id":424348868,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDM0ODg2OA==","user":{"login":"bagder","id":177011,"node_id":"MDQ6VXNlcjE3NzAxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/177011?v=4","gravatar_id":"","url":"https://api.github.com/users/bagder","html_url":"https://github.com/bagder","followers_url":"https://api.github.com/users/bagder/followers","following_url":"https://api.github.com/users/bagder/following{/other_user}","gists_url":"https://api.github.com/users/bagder/gists{/gist_id}","starred_url":"https://api.github.com/users/bagder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagder/subscriptions","organizations_url":"https://api.github.com/users/bagder/orgs","repos_url":"https://api.github.com/users/bagder/repos","events_url":"https://api.github.com/users/bagder/events{/privacy}","received_events_url":"https://api.github.com/users/bagder/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T13:44:26Z","updated_at":"2018-09-25T13:44:26Z","author_association":"MEMBER","body":"> It links its tests to 'correct' SSL version, but tries to run in w/o including the path from --with-ssl=..., where those libs reside, in neither LD_LIBRARY_PATH nor rpath or any other ld-affecting mechanism\r\n\r\nThat's not true. The configure.ac script uses the `CURL_RUN_IFELSE` macro when it needs to run something to be tested by executing code in the configure script, and that macro is defined here:\r\n\r\nhttps://github.com/curl/curl/blob/4058cf2a7f7e2590c26588c4eb476ac5c029cb5a/m4/curl-functions.m4#L7012-L7027\r\n\r\nAs you can see here, that macro sets `LD_LIBRARY_PATH`.\r\n\r\nSo, I understand that something breaks when you run configure but your analysis is directed to the wrong thing - the problem is not the lack of using the variable, the problem is either that it passes on the wrong directory or that you've found a case where it doesn't use this macro to execute the check. Also remember that countless of people already run and use this configure script without these problems.\r\n\r\nIf you would attach your config.log file, we might be able to help you narrow this search faster."}}
{"actor":{"display_login":"bagder"}}