Title: Two copies of `zlib` are linked when using local build of zlib · Issue #5079 · libgit2/libgit2 · GitHub
Open Graph Title: Two copies of `zlib` are linked when using local build of zlib · Issue #5079 · libgit2/libgit2
X Title: Two copies of `zlib` are linked when using local build of zlib · Issue #5079 · libgit2/libgit2
Description: Reproduction steps git clone https://github.com/libgit2/libgit2.git cd libgit2 mkdir build cd build cmake -DBUILD_CLAR=OFF -DUSE_HTTPS=OpenSSL -DUSE_SSH=OFF -DWINHTTP=OFF \ -DOPENSSL_ROOT_DIR=/Users/dave/build/OpenCOR/src/plugins/thirdPa...
Open Graph Description: Reproduction steps git clone https://github.com/libgit2/libgit2.git cd libgit2 mkdir build cd build cmake -DBUILD_CLAR=OFF -DUSE_HTTPS=OpenSSL -DUSE_SSH=OFF -DWINHTTP=OFF \ -DOPENSSL_ROOT_DIR=/User...
X Description: Reproduction steps git clone https://github.com/libgit2/libgit2.git cd libgit2 mkdir build cd build cmake -DBUILD_CLAR=OFF -DUSE_HTTPS=OpenSSL -DUSE_SSH=OFF -DWINHTTP=OFF \ -DOPENSSL_ROOT_DIR=/User...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5079
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two copies of `zlib` are linked when using local build of zlib ","articleBody":"### Reproduction steps\r\n```\r\ngit clone https://github.com/libgit2/libgit2.git\r\ncd libgit2\r\nmkdir build\r\ncd build\r\ncmake -DBUILD_CLAR=OFF -DUSE_HTTPS=OpenSSL -DUSE_SSH=OFF -DWINHTTP=OFF \\\r\n -DOPENSSL_ROOT_DIR=/Users/dave/build/OpenCOR/src/plugins/thirdParty/OpenSSL/ext \\\r\n -DOPENSSL_SSL_LIBRARY=/Users/dave/build/OpenCOR/src/plugins/thirdParty/OpenSSL/ext/lib/libssl.1.0.0.dylib \\\r\n -DOPENSSL_CRYPTO_LIBRARY=/Users/dave/build/OpenCOR/src/plugins/thirdParty/OpenSSL/ext/lib/libcrypto.1.0.0.dylib \\\r\n -DZLIB_INCLUDE_DIR=/Users/dave/build/OpenCOR/src/plugins/thirdParty/zlib/ext/include \\\r\n -DZLIB_LIBRARY=/Users/dave/build/OpenCOR/src/plugins/thirdParty/zlib/ext/lib/libz.1.dylib \\\r\n -G Ninja ..\r\nninja\r\n$ otool -L libgit2.dylib\r\n```\r\n### Expected behavior\r\n```\r\nlibgit2.dylib:\r\n\t@rpath/libgit2.28.dylib (compatibility version 28.0.0, current version 0.28.0)\r\n\t@rpath/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t@rpath/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)\r\n\t/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)\r\n```\r\n### Actual behavior\r\n```\r\nlibgit2.dylib:\r\n\t@rpath/libgit2.28.dylib (compatibility version 28.0.0, current version 0.28.0)\r\n\t@rpath/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t@rpath/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)\r\n\t/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)\r\n\t/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)\r\n```\r\nNote the two references to `libz`.\r\n\r\n### Version of libgit2 (release number or SHA1)\r\n\r\n`master`\r\n\r\n### Operating system(s) tested\r\n\r\nmacOS\r\n","author":{"url":"https://github.com/dbrnz","@type":"Person","name":"dbrnz"},"datePublished":"2019-05-21T03:40:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5079/libgit2/issues/5079"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a077e7d7-f253-5014-b888-f86437ea42f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF50:246CE:5E23857:7B2E929:6A5DBABC |
| html-safe-nonce | ee79303a141ef633390427ddbb9dc17aee04c006c1a0000c2c684302bd90b719 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjUwOjI0NkNFOjVFMjM4NTc6N0IyRTkyOTo2QTVEQkFCQyIsInZpc2l0b3JfaWQiOiI4MTU2OTk4OTg1ODMwNzE0MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f8ce56dacd15a3516be6478fc5d070bb2246bccf7a9e1e6d2ccfc42bde4ed4b2 |
| hovercard-subject-tag | issue:446402209 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/5079/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2fe27b1caf497d2158c8329c1f4185ddc973772a6a622f4f65294781825ad5d/libgit2/libgit2/issues/5079 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2fe27b1caf497d2158c8329c1f4185ddc973772a6a622f4f65294781825ad5d/libgit2/libgit2/issues/5079 |
| og:image:alt | Reproduction steps git clone https://github.com/libgit2/libgit2.git cd libgit2 mkdir build cd build cmake -DBUILD_CLAR=OFF -DUSE_HTTPS=OpenSSL -DUSE_SSH=OFF -DWINHTTP=OFF \ -DOPENSSL_ROOT_DIR=/User... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dbrnz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width