LACT icon indicating copy to clipboard operation
LACT copied to clipboard

Failing to build on fedora 35 because of custom build command for 'openssl-sys v0.9.71`

Open ninchuka opened this issue 3 years ago • 7 comments

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

Caused by:
  process didn't exit successfully: `/home/haise/LACT/target/release/build/openssl-sys-50955217dafa0140/build-script-main` (exit status: 101)
  --- stdout
  cargo:rustc-cfg=const_fn
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset
  CC_x86_64-unknown-linux-gnu = None
  CC_x86_64_unknown_linux_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-unknown-linux-gnu = None
  CFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running "perl" "./Configure" "--prefix=/home/haise/LACT/target/release/build/openssl-sys-b7edde6c51c276bc/out/openssl-build/install" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-legacy" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"

  --- stderr
  Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /home/haise/LACT/target/release/build/openssl-sys-b7edde6c51c276bc/out/openssl-build/build/src/util/perl /usr/local/lib64/perl5/5.34 /usr/local/share/perl5/5.34 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/haise/LACT/target/release/build/openssl-sys-b7edde6c51c276bc/out/openssl-build/build/src/external/perl/Text-Template-1.56/lib) at /home/haise/LACT/target/release/build/openssl-sys-b7edde6c51c276bc/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 18.
  BEGIN failed--compilation aborted at /home/haise/LACT/target/release/build/openssl-sys-b7edde6c51c276bc/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 18.
  Compilation failed in require at ./Configure line 23.
  BEGIN failed--compilation aborted at ./Configure line 23.
  thread 'main' panicked at '


  Error configuring OpenSSL build:
      Command: "perl" "./Configure" "--prefix=/home/haise/LACT/target/release/build/openssl-sys-b7edde6c51c276bc/out/openssl-build/install" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-legacy" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
      Exit status: exit status: 2


      ', /home/haise/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-src-300.0.2+3.0.0/src/lib.rs:492:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
Failed to enable unit: Unit file lactd.service does not exist.

I've ran it twice to see if it would work the 2nd time but it still doesnt work

ninchuka avatar Dec 02 '21 15:12 ninchuka

Have you installed the build dependencies from the readme? sudo dnf install git gtk3-devel rust cargo vulkan-headers perl-FindBin perl-File-Compare And if you did, try installing openssl-devel as well.

ilya-zlobintsev avatar Dec 02 '21 16:12 ilya-zlobintsev

I have installed the build dependencies I will install openssl-devel and try again after I've eaten -------- Original Message -------- On 2 Dec 2021, 4:52 pm, ilyazzz wrote:

Have you installed the build dependencies from the readme? sudo dnf install git gtk3-devel rust cargo vulkan-headers perl-FindBin perl-File-Compare And if you did, try installing openssl-devel as well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

ninchuka avatar Dec 02 '21 16:12 ninchuka

huh, it seems to be installed already @ilyazzz any other idea's?

ninchuka avatar Dec 02 '21 17:12 ninchuka

Apparently you also need the perl-core package. No idea why it's needed, but I'll add it to the docs.

ilya-zlobintsev avatar Dec 05 '21 20:12 ilya-zlobintsev

well it got further I think

[haise@fedora LACT]$ ./deploy.sh
   Compiling openssl-sys v0.9.71
   Compiling thiserror v1.0.30
   Compiling env_logger v0.9.0
   Compiling rand_chacha v0.3.1
   Compiling structopt-derive v0.4.18
   Compiling env_logger v0.8.4
   Compiling toml v0.5.8
   Compiling h2 v0.3.7
   Compiling serde_json v1.0.72
   Compiling serde_urlencoded v0.7.0
   Compiling pest_derive v2.1.0
   Compiling chrono v0.4.19
   Compiling field-offset v0.3.4
   Compiling bincode v1.3.3
   Compiling rand v0.8.4
   Compiling handlebars v4.1.5
   Compiling system-deps v3.2.0
   Compiling proc-macro-crate v1.1.0
   Compiling vulkano v0.26.0
   Compiling structopt v0.3.25
   Compiling glib-macros v0.14.1
   Compiling gtk3-macros v0.14.0
   Compiling glib-sys v0.14.0
   Compiling gobject-sys v0.14.0
   Compiling gio-sys v0.14.0
   Compiling cairo-sys-rs v0.14.9
   Compiling pango-sys v0.14.0
   Compiling gdk-pixbuf-sys v0.14.0
   Compiling gdk-sys v0.14.0
   Compiling atk-sys v0.14.0
   Compiling gtk-sys v0.14.0
The following warnings were emitted during compilation:

warning: `"pkg-config" "--libs" "--cflags" "pango" "pango >= 1.38"` did not exit successfully: exit status: 1

error: failed to run custom build command for `pango-sys v0.14.0`

Caused by:
  process didn't exit successfully: `/home/haise/LACT/target/release/build/pango-sys-2047070bc45c7564/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=PANGO_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=`"pkg-config" "--libs" "--cflags" "pango" "pango >= 1.38"` did not exit successfully: exit status: 1
  --- stdout


  --- stderr
  Package libpng was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libpng.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'libpng', required by 'freetype2', not found
  Package 'libpng', required by 'freetype2', not found

warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: `"pkg-config" "--libs" "--cflags" "cairo" "cairo >= 1.14"` did not exit successfully: exit status: 1

error: build failed
Failed to enable unit: Unit file lactd.service does not exist.

ninchuka avatar Dec 05 '21 20:12 ninchuka

Are you sure you have the build dependencies from the readme installed? The error points to a missing libpng-devel, but that should already be pulled by the GTK build dependency. I've just tried building in a clean fedora 35 container only installing what's in the readme, and it seems to work.

ilya-zlobintsev avatar Dec 05 '21 21:12 ilya-zlobintsev

[haise@fedora LACT]$ sudo dnf install git gtk3-devel rust cargo vulkan-headers perl-core
[sudo] password for haise: 
Last metadata expiration check: 0:08:24 ago on Sun 05 Dec 2021 20:56:45 GMT.
Package git-2.33.1-2.fc35.x86_64 is already installed.
Package gtk3-devel-3.24.30-4.fc35.i686 is already installed.
Package rust-1.56.1-1.fc35.x86_64 is already installed.
Package cargo-1.56.1-1.fc35.x86_64 is already installed.
Package vulkan-headers-1.2.189.0-1.fc35.noarch is already installed.
Package perl-4:5.34.0-482.fc35.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

yep everything is installed, I am running fedora 35 KDE if that matters for any reason

ninchuka avatar Dec 05 '21 21:12 ninchuka

The latest release no longer depends on openssl, please open another issue if you have problems building LACT.

ilya-zlobintsev avatar Feb 25 '23 13:02 ilya-zlobintsev