Opened 3 years ago
Closed 3 years ago
#63959 closed defect (fixed)
gitweb @0.3.3_2: broken by openssl update
Reported by: | cooljeanius (Eric Gallager) | Owned by: | manojkarthick (Manoj Karthick) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ||
Port: | gitweb |
Description
Build fails with:
Running `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gitweb/gitweb/work/gitweb-0.3.3/target/release/build/openssl-sys-baf0d2292cdf76cf/build-script-main` The following warnings were emitted during compilation: warning: build/expando.c:10:1: error: pasting formed 'RUST_VERSION_OPENSSL_(', an invalid preprocessing token warning: VERSION(OPENSSL, OPENSSL_VERSION_NUMBER) warning: ^ warning: build/expando.c:5:23: note: expanded from macro 'VERSION' warning: #define VERSION(n, v) VERSION2(n, v) warning: ^ warning: build/expando.c:4:43: note: expanded from macro 'VERSION2' warning: #define VERSION2(n, v) RUST_VERSION_##n##_##v warning: ^ warning: 1 error generated. error: failed to run custom build command for `openssl-sys v0.9.58` Caused by: process didn't exit successfully: `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gitweb/gitweb/work/gitweb-0.3.3/target/release/build/openssl-sys-baf0d2292cdf76cf/build-script-main` (exit status: 101) --- stdout cargo:rustc-cfg=const_fn cargo:rerun-if-env-changed=X86_64_APPLE_DARWIN_OPENSSL_LIB_DIR X86_64_APPLE_DARWIN_OPENSSL_LIB_DIR unset cargo:rerun-if-env-changed=OPENSSL_LIB_DIR OPENSSL_LIB_DIR unset cargo:rerun-if-env-changed=X86_64_APPLE_DARWIN_OPENSSL_INCLUDE_DIR X86_64_APPLE_DARWIN_OPENSSL_INCLUDE_DIR unset cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR OPENSSL_INCLUDE_DIR unset cargo:rerun-if-env-changed=X86_64_APPLE_DARWIN_OPENSSL_DIR X86_64_APPLE_DARWIN_OPENSSL_DIR unset cargo:rerun-if-env-changed=OPENSSL_DIR OPENSSL_DIR unset cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=OPENSSL_STATIC cargo:rerun-if-env-changed=OPENSSL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin 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-apple-darwin cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin 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-apple-darwin cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=OPENSSL_STATIC cargo:rerun-if-env-changed=OPENSSL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rustc-link-search=native=/opt/local/libexec/openssl3/lib cargo:rustc-link-lib=ssl cargo:rustc-link-lib=crypto cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=OPENSSL_STATIC cargo:rerun-if-env-changed=OPENSSL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin 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-apple-darwin cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin 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-apple-darwin cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR OPT_LEVEL = Some("3") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") CC_x86_64-apple-darwin = None CC_x86_64_apple_darwin = None HOST_CC = None CC = Some("/usr/bin/clang") CFLAGS_x86_64-apple-darwin = None CFLAGS_x86_64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") running: "/usr/bin/clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "-I" "/opt/local/libexec/openssl3/include" "-Wall" "-Wextra" "-E" "build/expando.c" cargo:warning=build/expando.c:10:1: error: pasting formed 'RUST_VERSION_OPENSSL_(', an invalid preprocessing token cargo:warning=VERSION(OPENSSL, OPENSSL_VERSION_NUMBER) cargo:warning=^ cargo:warning=build/expando.c:5:23: note: expanded from macro 'VERSION' cargo:warning=#define VERSION(n, v) VERSION2(n, v) cargo:warning= ^ cargo:warning=build/expando.c:4:43: note: expanded from macro 'VERSION2' cargo:warning=#define VERSION2(n, v) RUST_VERSION_##n##_##v cargo:warning= ^ cargo:warning=1 error generated. exit status: 1 --- stderr thread 'main' panicked at ' Header expansion error: Error { kind: ToolExecError, message: "Command \"/usr/bin/clang\" \"-O3\" \"-ffunction-sections\" \"-fdata-sections\" \"-fPIC\" \"--target=x86_64-apple-darwin\" \"-I\" \"/opt/local/libexec/openssl3/include\" \"-Wall\" \"-Wextra\" \"-E\" \"build/expando.c\" with args \"clang\" did not execute successfully (status code exit status: 1)." } Failed to find OpenSSL development headers. You can try fixing this setting the `OPENSSL_DIR` environment variable pointing to your OpenSSL installation or installing OpenSSL headers package specific to your distribution: # On Ubuntu sudo apt-get install libssl-dev # On Arch Linux sudo pacman -S openssl # On Fedora sudo dnf install openssl-devel See rust-openssl README for more information: https://github.com/sfackler/rust-openssl#linux ', /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gitweb/gitweb/work/.home/.cargo/macports/openssl-sys-0.9.58/build/main.rs:140:13 stack backtrace: 0: _rust_begin_unwind 1: std::panicking::begin_panic_fmt 2: build_script_main::validate_headers 3: build_script_main::find_normal::try_pkg_config 4: build_script_main::find_normal::find_openssl_dir 5: build_script_main::find_normal::get_openssl::{{closure}} 6: core::option::Option<T>::unwrap_or_else 7: build_script_main::find_normal::get_openssl 8: build_script_main::find_openssl 9: build_script_main::main 10: core::ops::function::FnOnce::call_once note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. warning: build failed, waiting for other jobs to finish... error: build failed Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gitweb/gitweb/work/gitweb-0.3.3" && /opt/local/bin/cargo build --release --frozen -v -j16 Exit code: 101 Error: Failed to build gitweb: command execution failed DEBUG: Error code: CHILDSTATUS 95789 101
Attachments (1)
Change History (3)
Changed 3 years ago by cooljeanius (Eric Gallager)
Attachment: | gitweb_main.log added |
---|
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | manojkarthick removed |
---|---|
Owner: | set to manojkarthick |
Status: | new → assigned |
comment:2 Changed 3 years ago by Chris Jones <jonesc@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
main.log for gitweb