-
Notifications
You must be signed in to change notification settings - Fork 574
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
Cannot Compile Socat binaries #45
Comments
@Nathan1001 example static build openssl v1 ./config -static --static no-shared --prefix=/usr/openssl --libdir=/usr/openssl/lib
socat depend readline libiconv openssl ; libiconv ./configure --prefix=/usr/libiconv enable_static=yes enable_shared=no readline ./configure \
--prefix=/usr/readline \
--enable-static \
--disable-shared
build static socat PACKAGES='openssl readline'
CPPFLAGS="$(pkg-config --cflags-only-I --static $PACKAGES)" \
LDFLAGS="$(pkg-config --libs-only-L --static $PACKAGES)" \
LIBS="$(pkg-config --libs-only-l --static $PACKAGES)" \
CFLAGS="-static -O2 -Wall -fPIC -DWITH_OPENSSL" \
./configure \
--prefix=/usr/socat \
--enable-readline \
--enable-openssl-base=/usr/openssl
test and verify wget https://curl.se/ca/cacert.pem
./socat -d -d TCP4-LISTEN:8016,reuseaddr,fork ssl:example.com:443,verify=1,\
snihost=example.com,commonname=example.com,\
openssl-min-proto-version=TLS1.3,openssl-max-proto-version=TLS1.3,cafile=/root/cacert.pem
reference: more info: |
Sorry to hijack this Issue, but I have been working on a successor project: https://github.com/Azathothas/Toolpacks !#aarch64 Linux
#https://github.com/Azathothas/Toolpacks/tree/main/.github/scripts/aarch64_Linux/bins/socat.sh
https://bin.ajam.dev/aarch64_arm64_Linux/socat
!#x86_64 Linux
#https://github.com/Azathothas/Toolpacks/blob/main/.github/scripts/x86_64_Linux/bins/socat.sh
https://bin.ajam.dev/x86_64_Linux/socat |
I am currently facing an issue trying to build the socat static binaries. Please find below the issue.
openssl-1.1.0f/e_os.h
"glob" is not exported by the File::Glob module
Can't continue after import errors at /usr/lib/perl5/core_perl/File/Glob.pm line 42.
BEGIN failed--compilation aborted at ./Configure line 17.
The text was updated successfully, but these errors were encountered: