Closed Practicalbutterfly5 closed 2 years ago
Can you send your logs for building a 32 bit binary?
Can you send your logs for building a 32 bit binary?
Compiling openssl-sys v0.9.72
Compiling clap v2.34.0
error: failed to run custom build command for `openssl-sys v0.9.72`
Caused by:
process didn't exit successfully: `/root/netmuxd/target/debug/build/openssl-sys-33fbe17de714a909/build-script-main` (exit status: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=I686_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR
I686_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
CC_i686-unknown-linux-gnu = None
CC_i686_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_i686-unknown-linux-gnu = None
CFLAGS_i686_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = None
running "perl" "./Configure" "--prefix=/root/netmuxd/target/debug/build/openssl-sys-5a2dd19f7b237b26/out/openssl-build/install" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-elf" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m32" "-march=i686"
Configuring OpenSSL version 1.1.1n (0x101010efL) for linux-elf
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first) ***
*** ***
**********************************************************************
running "make" "depend"
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /root/.cargo/registry/src/github.com-1285ae84e5963aae/openssl-src-111.18.0+1.1.1n/src/lib.rs:477:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
I had git cloned “mdns/ netmuxd/ plist_plus/ rusty_libimobiledevice/” from your repos, and zeroconf-rs from https://github.com/windy1/zeroconf-rs
Unfortunately that build error looks like an error with openssl-sys. Their build script is failing. I would either open an issue there or change the build script to use dynamic OpenSSL libs instead of building them.
As for zeroconf-rs, you'll need to clone it from @zeyugao 's fork. They fixed it up.
Ok I solved the previous error by installing make
package. But I have another error, that I can’t seem to find a solution.
root@debian ~/b/netmuxd (master)# cargo build
Compiling plist_plus v0.1.0 (/root/build/plist_plus)
Compiling rusty_libimobiledevice v0.1.2 (/root/build/rusty_libimobiledevice)
error: failed to run custom build command for `plist_plus v0.1.0 (/root/build/plist_plus)`
Caused by:
process didn't exit successfully: `/root/build/netmuxd/target/debug/build/plist_plus-6acc3213eade0950/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=wrapper.h
cargo:rerun-if-changed=build.rs
running: "sh" "-c" "exec \"$0\" \"$@\"" "/root/build/netmuxd/target/debug/build/plist_plus-4d4ebd46e2c6deed/out/libplist/configure" "--prefix=/root/build/netmuxd/target/debug/build/plist_plus-4d4ebd46e2c6deed/out" "--disable-shared" "--enable-static" "--without-cython"
--- stderr
/root/build/netmuxd/target/debug/build/plist_plus-4d4ebd46e2c6deed/out/libplist/configure: 1: exec: /root/build/netmuxd/target/debug/build/plist_plus-4d4ebd46e2c6deed/out/libplist/configure: not found
thread 'main' panicked at '
command did not execute successfully, got: exit status: 127
build script failed, must exit now', /root/.cargo/registry/src/github.com-1285ae84e5963aae/autotools-0.2.5/src/lib.rs:715:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Ok I needed to install these additional packages, able to run cargo build without error now
sudo apt-get install \
build-essential \
checkinstall \
git \
pkg-config \
autoconf \
automake \
libtool-bin \
libimobiledevice-dev
AltServer-Linux does have a i386 binary, but not netmuxd. I tried building it but haven’t been successful.