leftwm / leftwm-theme

A tool to help manage themes for LeftWM
BSD 3-Clause "New" or "Revised" License
117 stars 12 forks source link

cannot build openssl-sys 0.9.101 dependency on FreeBSD 14 #73

Open fleetingbytes opened 6 months ago

fleetingbytes commented 6 months ago

I cannot build the openssl-sys 0.9.101 dependency on FreeBSD 14, amd64.

this happens when I run cargo build

   Compiling openssl-sys v0.9.101
error: failed to run custom build command for `openssl-sys v0.9.101`

Caused by:
  process didn't exit successfully: `/home/tejul/src/leftwm-theme/target/debug/build/openssl-sys-1bc3d667f73a21dd/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_FREEBSD_OPENSSL_NO_VENDOR
  X86_64_UNKNOWN_FREEBSD_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=CC_x86_64-unknown-freebsd
  CC_x86_64-unknown-freebsd = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_freebsd
  CC_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-freebsd
  CFLAGS_x86_64-unknown-freebsd = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_freebsd
  CFLAGS_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=AR_x86_64-unknown-freebsd
  AR_x86_64-unknown-freebsd = None
  cargo:rerun-if-env-changed=AR_x86_64_unknown_freebsd
  AR_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=HOST_AR
  HOST_AR = None
  cargo:rerun-if-env-changed=AR
  AR = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-freebsd
  ARFLAGS_x86_64-unknown-freebsd = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_freebsd
  ARFLAGS_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=HOST_ARFLAGS
  HOST_ARFLAGS = None
  cargo:rerun-if-env-changed=ARFLAGS
  ARFLAGS = None
  cargo:rerun-if-env-changed=RANLIB_x86_64-unknown-freebsd
  RANLIB_x86_64-unknown-freebsd = None
  cargo:rerun-if-env-changed=RANLIB_x86_64_unknown_freebsd
  RANLIB_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=HOST_RANLIB
  HOST_RANLIB = None
  cargo:rerun-if-env-changed=RANLIB
  RANLIB = None
  cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64-unknown-freebsd
  RANLIBFLAGS_x86_64-unknown-freebsd = None
  cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64_unknown_freebsd
  RANLIBFLAGS_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=HOST_RANLIBFLAGS
  HOST_RANLIBFLAGS = None
  cargo:rerun-if-env-changed=RANLIBFLAGS
  RANLIBFLAGS = None
  running cd "/home/tejul/src/leftwm-theme/target/debug/build/openssl-sys-d5039d8e4c117168/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/home/tejul/src/leftwm-theme/target/debug/build/openssl-sys-d5039d8e4c117168/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "BSD-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "--target=x86_64-unknown-freebsd"
  Configuring OpenSSL version 3.2.1 for target BSD-x86_64
  Using os-specific seed configuration
  Created configdata.pm
  Running configdata.pm
  Created Makefile.in
  Created Makefile
  Created include/openssl/configuration.h

  **********************************************************************
  ***                                                                ***
  ***   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.md file first)      ***
  ***                                                                ***
  **********************************************************************
  running cd "/home/tejul/src/leftwm-theme/target/debug/build/openssl-sys-d5039d8e4c117168/out/openssl-build/build/src" && "gmake" "depend"

  --- stderr
  thread 'main' panicked at /home/tejul/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.2.3+3.2.1/src/lib.rs:611:9:

  Error building OpenSSL dependencies:
      Command: cd "/home/tejul/src/leftwm-theme/target/debug/build/openssl-sys-d5039d8e4c117168/out/openssl-build/build/src" && "gmake" "depend"
      Failed to execute: No such file or directory (os error 2)

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

In my error output I find it suspicious that in the line starting with "running cd" there is an option "--openssldir=/usr/local/ssl" yet on my system the openssl is installed in /usr/local/openssl. Maybe this path discrepancy is what caused the "No such file or directory" error.

Is there a way how I can change this custom build command for openssl-sys v0.9.101?

mautamu commented 6 months ago

Looks like this might be relevant :thinking: : https://github.com/sfackler/rust-openssl/issues/2019

mautamu commented 6 months ago

Ah I see you have a ticket open over there as well, will see if they find something on that ticket.

piatsko commented 5 months ago

Had the same problem as you. Turned out it is not related to directory, just install make