René's URL Explorer Experiment


Title: "undefined symbol: gcry_control" after building in linux/amd64 alpine · Issue #1975 · nodegit/nodegit · GitHub

Open Graph Title: "undefined symbol: gcry_control" after building in linux/amd64 alpine · Issue #1975 · nodegit/nodegit

X Title: "undefined symbol: gcry_control" after building in linux/amd64 alpine · Issue #1975 · nodegit/nodegit

Description: System information node version: 18.15.0 npm or yarn version: yarn 1.22.19 OS/version/architecture: Linux a2a48d191f5f 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 x86_64 GNU/Linux Applicable nodegit version: 0.27.0 The i...

Open Graph Description: System information node version: 18.15.0 npm or yarn version: yarn 1.22.19 OS/version/architecture: Linux a2a48d191f5f 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 x86_64 GNU/Linux ...

X Description: System information node version: 18.15.0 npm or yarn version: yarn 1.22.19 OS/version/architecture: Linux a2a48d191f5f 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 x86_64 GNU/Linux ...

Opengraph URL: https://github.com/nodegit/nodegit/issues/1975

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"undefined symbol: gcry_control\" after building in linux/amd64 alpine","articleBody":"## System information\r\n\r\n  - node version: 18.15.0\r\n  - npm or yarn version: yarn 1.22.19\r\n  - OS/version/architecture: Linux a2a48d191f5f 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 x86_64 GNU/Linux\r\n  - Applicable nodegit version: 0.27.0\r\n\r\n## The issue\r\n\r\nI built with following command:\r\n\r\n```sh\r\napt-get install -y libgit2-27 libgit2-dev libkrb5-dev build-essential python2\r\nalias python=python2\r\nyarn --frozen-lockfile\r\n```\r\n\r\nit builds fine, but when I try to run my project, as soon as it requires nodegit:\r\n\r\n```\r\nnode: symbol lookup error: /usr/share/apps/node_modules/nodegit/build/Release/nodegit.node: undefined symbol: gcry_control\r\n```\r\n\r\nOn my runtime I have following packages installed:\r\n\r\n```\r\napt-get install -y git libgit2-27 libkrb5-dev libssl1.1 libgcrypt20\r\n```\r\n\r\nWhen I inspect the built file with `ldd node_modules/nodegit/build/Release/nodegit.node` it says this:\r\n\r\n```\r\n\tlibgssapi_krb5.so.2 =\u003e /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x0000004001cfc000)\r\n\tlibkrb5.so.3 =\u003e /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x0000004001d4b000)\r\n\tlibk5crypto.so.3 =\u003e /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x0000004001e2b000)\r\n\tlibcom_err.so.2 =\u003e /lib/x86_64-linux-gnu/libcom_err.so.2 (0x0000004001e5f000)\r\n\tlibstdc++.so.6 =\u003e /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x0000004001e65000)\r\n\tlibm.so.6 =\u003e /lib/x86_64-linux-gnu/libm.so.6 (0x0000004001fe9000)\r\n\tlibgcc_s.so.1 =\u003e /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000000400216c000)\r\n\tlibpthread.so.0 =\u003e /lib/x86_64-linux-gnu/libpthread.so.0 (0x0000004002188000)\r\n\tlibc.so.6 =\u003e /lib/x86_64-linux-gnu/libc.so.6 (0x00000040021a9000)\r\n\tlibkrb5support.so.0 =\u003e /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x0000004002369000)\r\n\tlibdl.so.2 =\u003e /lib/x86_64-linux-gnu/libdl.so.2 (0x0000004002378000)\r\n\tlibkeyutils.so.1 =\u003e /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x000000400237d000)\r\n\tlibresolv.so.2 =\u003e /lib/x86_64-linux-gnu/libresolv.so.2 (0x0000004002384000)\r\n\t/lib64/ld-linux-x86-64.so.2 (0x0000004000000000)\r\n```\r\n\r\n## The workaround\r\n\r\nI fixed it by running my process with `LD_PRELOAD=\"/lib/x86_64-linux-gnu/libgcrypt.so.20\" node build/server.js`\r\n\r\n## The root-cause and additional questions\r\n\r\n- Shouldn't the lib be included right at build time? It's very bad to discover a crash at runtime and not at build time 😓 \r\n- Is it possible I'll have other similar surprises at runtime, or the fact that it properly imports nodegit is enough to be reassured about this?","author":{"url":"https://github.com/nicolaschambrier","@type":"Person","name":"nicolaschambrier"},"datePublished":"2023-03-20T18:38:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1975/nodegit/issues/1975"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0f073de3-2be8-ff96-52e9-84a4f65f09b3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9322:30C905:F4BD1B:1497416:6971D5CE
html-safe-nonceb37b37ff5df83ba292b0a5a16ebf6b51af25e850928933617a2b43340b1d850b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzIyOjMwQzkwNTpGNEJEMUI6MTQ5NzQxNjo2OTcxRDVDRSIsInZpc2l0b3JfaWQiOiIxNDA4NjgzNDk3NDMyOTI5NzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac54a69e9cb078110bf6323e3c511fe22b90c74355cb073811a267868640ba4b54
hovercard-subject-tagissue:1632666525
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/1975/issue_layout
twitter:imagehttps://opengraph.githubassets.com/818e69e150746911db1eca26bc97f9baaae93d51903fae6872017e0f09d07672/nodegit/nodegit/issues/1975
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/818e69e150746911db1eca26bc97f9baaae93d51903fae6872017e0f09d07672/nodegit/nodegit/issues/1975
og:image:altSystem information node version: 18.15.0 npm or yarn version: yarn 1.22.19 OS/version/architecture: Linux a2a48d191f5f 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 x86_64 GNU/Linux ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenicolaschambrier
hostnamegithub.com
expected-hostnamegithub.com
None7476eb4140129667a7530d10cfb7688f701883e35a4dcaa4673e3ec599af5199
turbo-cache-controlno-preview
go-importgithub.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id1383170
octolytics-dimension-repository_nwonodegit/nodegit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1383170
octolytics-dimension-repository_network_root_nwonodegit/nodegit
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2cc0827c872b538cd08371730242ae4951d2d61a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodegit/nodegit/issues/1975#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fissues%2F1975
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fissues%2F1975
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodegit%2Fnodegit
Reloadhttps://github.com/nodegit/nodegit/issues/1975
Reloadhttps://github.com/nodegit/nodegit/issues/1975
Reloadhttps://github.com/nodegit/nodegit/issues/1975
nodegit https://github.com/nodegit
nodegithttps://github.com/nodegit/nodegit
Notifications https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Fork 697 https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Star 5.8k https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Code https://github.com/nodegit/nodegit
Issues 343 https://github.com/nodegit/nodegit/issues
Pull requests 19 https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects 0 https://github.com/nodegit/nodegit/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/nodegit/nodegit/security
Please reload this pagehttps://github.com/nodegit/nodegit/issues/1975
Insights https://github.com/nodegit/nodegit/pulse
Code https://github.com/nodegit/nodegit
Issues https://github.com/nodegit/nodegit/issues
Pull requests https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects https://github.com/nodegit/nodegit/projects
Security https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
New issuehttps://github.com/login?return_to=https://github.com/nodegit/nodegit/issues/1975
New issuehttps://github.com/login?return_to=https://github.com/nodegit/nodegit/issues/1975
"undefined symbol: gcry_control" after building in linux/amd64 alpinehttps://github.com/nodegit/nodegit/issues/1975#top
https://github.com/nicolaschambrier
https://github.com/nicolaschambrier
nicolaschambrierhttps://github.com/nicolaschambrier
on Mar 20, 2023https://github.com/nodegit/nodegit/issues/1975#issue-1632666525
Comment all code methods #1https://github.com/nodegit/nodegit/issues/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.