{"action":"opened","issue":{"url":"https://api.github.com/repos/curl/curl/issues/3429","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/3429/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/3429/comments","events_url":"https://api.github.com/repos/curl/curl/issues/3429/events","html_url":"https://github.com/curl/curl/issues/3429","id":395409278,"node_id":"MDU6SXNzdWUzOTU0MDkyNzg=","number":3429,"title":"Curl linking against old openssl instead of custom installed openssl","user":{"login":"ekhanad","id":4742453,"node_id":"MDQ6VXNlcjQ3NDI0NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/4742453?v=4","gravatar_id":"","url":"https://api.github.com/users/ekhanad","html_url":"https://github.com/ekhanad","followers_url":"https://api.github.com/users/ekhanad/followers","following_url":"https://api.github.com/users/ekhanad/following{/other_user}","gists_url":"https://api.github.com/users/ekhanad/gists{/gist_id}","starred_url":"https://api.github.com/users/ekhanad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekhanad/subscriptions","organizations_url":"https://api.github.com/users/ekhanad/orgs","repos_url":"https://api.github.com/users/ekhanad/repos","events_url":"https://api.github.com/users/ekhanad/events{/privacy}","received_events_url":"https://api.github.com/users/ekhanad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-02T23:02:55Z","updated_at":"2019-01-02T23:02:55Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\n### I did this\r\n\r\n**openssl**\r\n```¨\r\n./config shared --prefix=\"/usr1/test/openssl\" openssldir=\"/usr1/test/openssl\"\r\nmake\r\nmake install\r\n```\r\n**curl 7.63.0**\r\n```\r\nexport LDFLAGS=\"-L/usr1/test/openssl/lib\"\r\nexport CPPFLAGS=\"-I/usr1/test/openssl/include\"\r\nexport CURL_LIBRARY_PATH=\"-L/usr1/test/openssl/lib\"\r\nexport LIBPATH=/usr1/test/openssl/lib\r\n./configure --prefix=$BUILD_DIR --exec-prefix=$THE_PREFIX --without-pic --with-ssl=/usr1/test/openssl --disable-dependency-tracking\r\ngmake\r\ngmake install\r\n```\r\n### I expected the following\r\n\r\nSuccessful install\r\n\r\n### Instead I got this\r\nI can see that config is finding the right lib but make fails as it tries to link to the old lib in /opt/freeware/lib.\r\n\r\nconfigure: Added /usr1/nkstd/MaDistrProd/openssl/lib to CURL_LIBRARY_PATH\r\nchecking for OpenSSL headers version... 1.1.1 - 0x1010101fL\r\nchecking for OpenSSL library version... 1.1.1\r\nchecking for OpenSSL headers and library versions matching... yes\r\n....\r\nMaking all in lib\r\n......\r\n  CCLD     curl\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_free\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_filename\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_data_cb\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_filedata\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_addpart\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_headers\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_type\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_encoder\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_data\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_name\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_init\r\nld: 0711-317 ERROR: Undefined symbol: .curl_mime_subparts\r\nld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.\r\ncollect2: error: ld returned 8 exit status\r\n\r\n\r\nI can see in the Makefile \r\n`CPPFLAGS = -isystem /usr1/test/openssl/include -I/opt/freeware/include -I/usr1/test/openssl/include`\r\n`LDFLAGS = -L/usr1/test/openssl/lib -L/opt/freeware/lib -L/usr1/test/openssl/lib`\r\n\r\nas soon as I remove the /opt/freeware/include from both flags, the linking works.\r\n\r\n### curl/libcurl version\r\ncurl 7.63.0\r\n[curl -V output]\r\n\r\n### operating system\r\nAIX"}}
{"actor":{"display_login":"ekhanad"}}