Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Musl .so version #104

Closed
marios88 opened this issue Sep 6, 2022 · 2 comments
Closed

Musl .so version #104

marios88 opened this issue Sep 6, 2022 · 2 comments

Comments

@marios88
Copy link

marios88 commented Sep 6, 2022

Is it possible to get a musl version?

/etc/supervisor/conf.d # LD_PRELOAD='/var/www/resources/binary/curl/libcurl-impersonate-chrome.so' curl --version
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __fdelt_chk: symbol not found
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __memcpy_chk: symbol not found
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __vsnprintf_chk: symbol not found
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __strcpy_chk: symbol not found
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __memset_chk: symbol not found
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __fprintf_chk: symbol not found
Error relocating /var/www/resources/binary/curl/libcurl-impersonate-chrome.so: __sprintf_chk: symbol not found
/etc/supervisor/conf.d # curl --version
curl 7.83.1 (x86_64-alpine-linux-musl) libcurl/7.83.1 OpenSSL/1.1.1q zlib/1.2.12 brotli/1.0.9 nghttp2/1.47.0
Release-Date: 2022-05-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets

@lwthiker
Copy link
Owner

lwthiker commented Sep 7, 2022

The Docker images (https://github.com/lwthiker/curl-impersonate#docker-images) are based on Alpine and the curl-impersonate version in them is compiled with musl. You can pull the image and extract the binaries from /usr/local. Can you check if they work for you?

@marios88
Copy link
Author

i switched to debian for my current implementation, but what you suggest will probably work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants