You are not logged in.
I have this PKGBUILD:
# Credits BlackArch ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=lorsrf
pkgver=v2.1.r1.gd45ca85
pkgrel=1
epoch=1
pkgdesc='Find the parameters that can be used to find SSRF or Out-of-band resource load.'
arch=('x86_64' 'aarch64')
url='https://github.com/knassar702/lorsrf'
license=('custom:unknown')
makedepends=('git' 'cargo')
source=("git+https://github.com/knassar702/$pkgname.git")
options=(!strip)
sha512sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname
cargo build --release
}
package() {
cd $pkgname
install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/$pkgname/" parameters.txt
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md
}
When I run "makepkg -src" to create a package file, during the build phase, I get the error:
==> Starting build()...
Compiling lorsrf v2.0.1 (/tmp/makepkg/lorsrf/src/lorsrf)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/athena/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/athena/.cargo/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/athena/bin:/home/athena/.local/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc6Z2Lea/symbols.o" "/tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/makepkg/lorsrf/src/lorsrf/target/release/deps" "-L" "/tmp/makepkg/lorsrf/src/lorsrf/target/release/build/curl-sys-c02856709d0d9f9a/out/build" "-L" "/tmp/makepkg/lorsrf/src/lorsrf/target/release/build/libnghttp2-sys-4135b1b373ebe998/out/i/lib" "-L" "/home/athena/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustc6Z2Lea/libcurl_sys-e1e9155d02f49041.rlib" "/tmp/rustc6Z2Lea/liblibnghttp2_sys-ca98f51a50657744.rlib" "/home/athena/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-13fc9d1ed9c7a2bc.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/athena/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-all" "-nodefaultlibs"
= note: /usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `std::sys_common::once::futex::Once::call':
lorsrf.8e956a1ed9931db-cgu.0:(.text.unlikely._ZN3std10sys_common4once5futex4Once4call17h79ead7e2e9b0065fE+0x8f): undefined reference to `curl_global_init'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::error::MultiError::description':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/error.rs:474:(.text._ZN4curl5error10MultiError11description17h77c8c12238740e34E+0xb): undefined reference to `curl_multi_strerror'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::error::Error::description':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/error.rs:305:(.text._ZN4curl5error5Error11description17hfcabfec258ae62e5E+0xb): undefined reference to `curl_easy_strerror'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<curl::multi::RawMulti as core::ops::drop::Drop>::drop':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:822:(.text._ZN5alloc4sync16Arc$LT$T$C$A$GT$9drop_slow17h04ce47b67dad1d2aE+0xf): undefined reference to `curl_multi_cleanup'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<curl::easy::list::List as core::ops::drop::Drop>::drop':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/list.rs:77:(.text._ZN64_$LT$curl..easy..list..List$u20$as$u20$core..ops..drop..Drop$GT$4drop17hb51e5ade3eb539faE+0x7): undefined reference to `curl_slist_free_all'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::version::Version::get':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/version.rs:34:(.text._ZN4curl7version7Version3get17h8791dfc9c9dd31e8E+0x9): undefined reference to `curl_version_info'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::easy::list::List::append':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/list.rs:42:(.text._ZN4curl4easy4list4List6append17h8da26adfffe29273E+0x49): undefined reference to `curl_slist_append'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Multi::setopt_ptr':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:392:(.text._ZN4curl5multi5Multi10setopt_ptr17h6685822d5bea7e27E+0xc): undefined reference to `curl_multi_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::DetachGuard::detach':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:1045:(.text._ZN4curl5multi11DetachGuard6detach17h88b0fc6acf2f666bE+0x1e): undefined reference to `curl_multi_remove_handle'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<curl::easy::handler::Easy2<H> as core::ops::drop::Drop>::drop':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/handler.rs:3526:(.text._ZN4core3ptr85drop_in_place$LT$curl..easy..handler..Easy2$LT$isahc..handler..RequestHandler$GT$$GT$17h558edb683e10acdcE+0x17): undefined reference to `curl_easy_cleanup'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<curl::easy::form::Form as core::ops::drop::Drop>::drop':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/form.rs:73:(.text._ZN4core3ptr85drop_in_place$LT$curl..easy..handler..Easy2$LT$isahc..handler..RequestHandler$GT$$GT$17h558edb683e10acdcE+0x61): undefined reference to `curl_formfree'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Multi::new':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:132:(.text._ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hd43db1352e7065c5E+0x33): undefined reference to `curl_multi_init'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Multi::timeout':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:547:(.text._ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hd43db1352e7065c5E+0xdf5): undefined reference to `curl_multi_socket_action'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Multi::_messages':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:486:(.text._ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hd43db1352e7065c5E+0x15b1): undefined reference to `curl_multi_info_read'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Multi::action':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:519:(.text._ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hd43db1352e7065c5E+0x1b60): undefined reference to `curl_multi_socket_action'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `isahc::agent::AgentContext::handle_message':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/agent/mod.rs:(.text._ZN5isahc5agent12AgentContext14handle_message17hc1d8ea9a7322c6e4E+0x140): undefined reference to `curl_easy_pause'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Multi::add2':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:435:(.text._ZN5isahc5agent12AgentContext14handle_message17hc1d8ea9a7322c6e4E+0x501): undefined reference to `curl_multi_add_handle'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Easy2Handle<H>::set_token':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:989:(.text._ZN5isahc5agent12AgentContext14handle_message17hc1d8ea9a7322c6e4E+0x55e): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `isahc::handler::RequestHandler::get_local_ip':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/handler.rs:362:(.text._ZN5isahc7handler14RequestHandler14get_local_addr17hadf3646421634b05E+0x2e): undefined reference to `curl_easy_getinfo'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `isahc::handler::RequestHandler::get_local_port':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/handler.rs:384:(.text._ZN5isahc7handler14RequestHandler14get_local_addr17hadf3646421634b05E+0xae): undefined reference to `curl_easy_getinfo'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `isahc::handler::RequestHandler::get_primary_ip':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/handler.rs:315:(.text._ZN5isahc7handler14RequestHandler16get_primary_addr17hd02dd906864a2ff2E+0x2e): undefined reference to `curl_easy_getinfo'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `isahc::handler::RequestHandler::get_primary_port':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/handler.rs:337:(.text._ZN5isahc7handler14RequestHandler16get_primary_addr17hd02dd906864a2ff2E+0xae): undefined reference to `curl_easy_getinfo'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::multi::Message::token':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/multi.rs:1141:(.text._ZN5isahc5agent12AgentContext3run28_$u7b$$u7b$closure$u7d$$u7d$17haeb593851a4ff475E+0x45): undefined reference to `curl_easy_getinfo'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o:/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/handler.rs:574: more undefined references to `curl_easy_getinfo' follow
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::easy::handler::Easy2<H>::setopt_ptr':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/handler.rs:3404:(.text._ZN4curl4easy7handler14Easy2$LT$H$GT$10setopt_ptr17he5231bd86f170b8cE+0x1d): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::easy::handler::Easy2<H>::setopt_off_t':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/handler.rs:3413:(.text._ZN4curl4easy7handler14Easy2$LT$H$GT$12setopt_off_t17h2a7cd5e25dc6a31cE+0x1d): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::easy::handler::Easy2<H>::setopt_blob':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/handler.rs:3425:(.text._ZN4curl4easy7handler14Easy2$LT$H$GT$11setopt_blob17h4d83be3d279dae49E+0x33): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `curl::easy::handler::Easy2<H>::new':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/handler.rs:590:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x672): undefined reference to `curl_easy_init'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<isahc::config::request::RequestConfig as isahc::config::request::SetOpt>::set_opt':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/config/request.rs:127:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x1357): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<isahc::config::NetworkInterface as isahc::config::request::SetOpt>::set_opt':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/config/mod.rs:932:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x1ea6): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<curl::easy::list::List as core::ops::drop::Drop>::drop':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/list.rs:77:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x2290): undefined reference to `curl_slist_free_all'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<isahc::config::dns::DnsCache as isahc::config::request::SetOpt>::set_opt':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/isahc-1.7.2/src/config/dns.rs:50:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x2b8d): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /tmp/makepkg/lorsrf/src/lorsrf/target/release/deps/lorsrf-b212328f6fe7e6bc.lorsrf.8e956a1ed9931db-cgu.0.rcgu.o: in function `<curl::easy::list::List as core::ops::drop::Drop>::drop':
/home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/list.rs:77:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x2cf7): undefined reference to `curl_slist_free_all'
/usr/bin/ld: /home/athena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curl-0.4.46/src/easy/list.rs:77:(.text._ZN85_$LT$$RF$isahc..client..HttpClient$u20$as$u20$isahc..interceptor..context..Invoke$GT$6invoke28_$u7b$$u7b$closure$u7d$$u7d$17h36a1cb756e2a1c92E+0x42e2): undefined reference to `curl_slist_free_all'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `lorsrf` (bin "lorsrf") due to 1 previous error
==> ERROR: A failure occurred in build().
Aborting...
While, if I build it manually outside the PKGBUILD, the building works. Why I get this error when builing by PKGBUILD?
Last edited by D3vil0p3r (2024-04-01 21:30:34)
Offline
Likely has to do with the fact that you're using rustup.
Edit: Or no, I reproduced it in a clean chroot. It has to do with the build flags set in makepkg.conf.
Last edited by Scimmia (2024-03-24 01:08:52)
Offline
This is the makepkg.conf I use:
#!/hint/bash
# shellcheck disable=2034
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
'rsync::/usr/bin/rsync --no-motd -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#-- The package required by makepkg to download VCS sources
# Format: 'protocol::package'
VCSCLIENTS=('bzr::breezy'
'fossil::fossil'
'git::git'
'hg::mercurial'
'svn::subversion')
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
-Wl,-z,pack-relative-relocs"
LTOFLAGS="-flto=auto"
RUSTFLAGS="-Cforce-frame-pointers=yes"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j1"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
DEBUG_RUSTFLAGS="-C debuginfo=2"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
BUILDDIR=/tmp/makepkg
#########################################################################
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps)
# A negated option will do the opposite of the comments below.
#
#-- strip: Strip symbols from binaries/libraries
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- debug: Add debugging flags as specified in DEBUG_* variables
#-- lto: Add compile flags for building with link time optimization
#-- autodeps: Automatically add depends/provides
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto)
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"
#-- Prefix and directories for library autodeps
LIB_DIRS=('lib:usr/lib' 'lib32:usr/lib32')
#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""
#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z - --threads=0)
COMPRESSZST=(zstd -c -T0 --ultra -20 -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'
#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=()
# vim: set ft=sh ts=2 sw=2 et:
Offline
Wild guess: disable debug, it's only recently been enabled by default - the linker -apparently- lacks "-lcurl"
Online
I ran into a similar error a while ago, when I tried to update a package. I already had debug disabled in makepkg.conf, but cargo build failed. What solved the issue for me was to also disable lto in makepkg.conf. This has been also enabled by default recently, like debug. And I guess you could just add this option to your PKGBUILD if you don't want to disable it globally in makepkg.conf.
Offline
I ran into a similar error a while ago, when I tried to update a package. I already had debug disabled in makepkg.conf, but cargo build failed. What solved the issue for me was to also disable lto in makepkg.conf. This has been also enabled by default recently, like debug. And I guess you could just add this option to your PKGBUILD if you don't want to disable it globally in makepkg.conf.
Do you mean to change
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto)
to
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug !lto)
?
Offline
Yes. You can also disable debug again.
Online
# Credits BlackArch ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=lorsrf
pkgver=2.1
pkgrel=1
pkgdesc="Find the parameters that can be used to find SSRF or Out-of-band resource load"
arch=(x86_64)
url="https://github.com/knassar702/lorsrf"
license=(GPL-3.0-only)
depends=(zlib glibc gcc-libs openssl)
makedepends=(rust)
conflicts=($pkgname)
options=(!debug !lto)
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
b2sums=('4302d0b6be852bd9cfbf3c3de40e92da8bca06eb17cc338bc7ea8e5dc1aad33a51306e4edfb0cb885bfe23b76de7cdb4ba4c822e93cf11111424bb86d72b9316')
prepare() {
cd $pkgname-$pkgver
export CARGO_HOME=$srcdir/.cargo # Download all to src directory, not in ~/.cargo
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $pkgname-$pkgver
export RUSTFLAGS="--remap-path-prefix=$srcdir=/" # Prevent warning: 'Package contains reference to $srcdir'
export CARGO_HOME=$srcdir/.cargo # Use downloaded earlier from src directory, not from ~/.cargo
export CARGO_TARGET_DIR=target # Place the output in target relative to the current directory
cargo build --frozen --release
}
package() {
cd $pkgname-$pkgver
install -Dm 755 target/release/$pkgname -t $pkgdir/usr/bin/
install -Dm 644 parameters.txt -t $pkgdir/usr/share/$pkgname/
}
Notes:
1. You don't need git version, just use last release for this package.
2. Avoid using 'v' in pkgver
3. Deleted epoch it's unnecessary
4. There is nothing here about other archs, so using 'х86_64' only
5. It has a GPL3 license, so I added it
6. 'namcap -i lorsrf-2.1-1-x86_64.pkg.tar.zst' showed the required dependencies
7. rust package contain cargo and rustc so using rust only
8. For all rust projects better to add option !lto (and !debug for convenience)
and some other edits...
Last edited by Nebulosa (2024-03-27 11:02:44)
Offline
8. For all rust projects better to add option !lto
Offline
Thanks for the link, I'm followed a few links above and got some new to me info, that this is required for Rust packages if their Cargo.toml has the lto true (or "fat") parameter set. But I have another example that even it set to "thin" it doesn't build through devtools in a clean chroot.
So for now, you should use the !lto option for Rust packages in most cases.
Last edited by Nebulosa (2024-03-28 07:48:17)
Offline
So for now, you should use the !lto option for Rust packages in most cases.
If you believe the Rust package guidelines should be changed to include !lto have you opened such a discussion on the wiki? You can also discuss it directly with the package maintainers on the issue I linked if you believe their position of adding !lto on an as needed basis is wrong.
conflicts=($pkgname)
Why is the package conflicting with itself?
export CARGO_HOME=$srcdir/.cargo # Download all to src directory, not in ~/.cargo
...
export CARGO_HOME=$srcdir/.cargo # Use downloaded earlier from src directory, not from ~/.cargo
Unquoted $srcdir
install -Dm 755 target/release/$pkgname -t $pkgdir/usr/bin/
install -Dm 644 parameters.txt -t $pkgdir/usr/share/$pkgname/
Unquoted $pkgdir
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
You can also have github change the archive name for you:
source=($url/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
Offline
If you believe the Rust package guidelines should be changed to include !lto have you opened such a discussion on the wiki? You can also discuss it directly with the package maintainers on the issue I linked if you believe their position of adding !lto on an as needed basis is wrong.
I don't think that I can add any other information to the linked post.
Why is the package conflicting with itself?
Unquoted $srcdir
Unquoted $pkgdir
You can also have github change the archive name for you:
Good points!
Last edited by Nebulosa (2024-03-28 21:08:00)
Offline
I got a similar error for this package: https://aur.archlinux.org/packages/zebrad. The only difference is that the undefined reference is to git_...
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/m/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcFrZiiZ/symbols.o" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/build/zebrad-5d532c01e23d52a4/build_script_build-5d532c01e23d52a4.build_script_build.72f5ae9c33d3804c-cgu.0.rcgu.o" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/build/zebrad-5d532c01e23d52a4/build_script_build-5d532c01e23d52a4.1q7a4vy19soho4n7.rcgu.o" "-Wl,--as-needed" "-L" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps" "-L" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/build/libgit2-sys-363c724b1cbf8296/out/build" "-L" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libvergen-690a146aa93bd0b6.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libtime-e308f536712e6606.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libnum_threads-ec882b09fc6239db.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libtime_core-f401b86ba32e9a2d.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libnum_conv-a3b513cd9f156892.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libderanged-b5510c5ac933996c.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libpowerfmt-43ee1e2bf5e7987c.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/liburl-9d53cf9dae9b3ae0.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libidna-f2026e5eadb0080a.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libunicode_normalization-ad20f76b85031935.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libtinyvec-e302fbdaf6dded46.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libtinyvec_macros-b40a5bb624c82b2d.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libunicode_bidi-4e318e37ee2ce6ba.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libform_urlencoded-cd8bc978ba0e233f.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libpercent_encoding-6208da4b9f13b06f.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/liblog-e7050460dfc93072.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/liblibgit2_sys-d23cee2cf688d92d.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/liblibz_sys-dbeb0f162aa70025.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/liblibc-c70943e43d5584a9.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libbitflags-878097a19eef2ad9.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/librustc_version-69f19f1a1c1b3858.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libcfg_if-87a55eeb5b68146f.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libregex-e0ec56653e96ec25.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libregex_automata-2da31090c3643303.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libaho_corasick-f533fb9ce272754c.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libmemchr-3321635a6ea6888f.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libregex_syntax-2d9a132c9a2df10b.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libcargo_metadata-88e91bfa119b34c9.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libserde_json-b5aa0a066dd5fe72.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libitoa-261d90e39d7d093a.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libryu-dd0804aba10634b6.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libthiserror-952c0ca6d1fd9d8f.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libcargo_platform-ccf275af4a29513f.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libsemver-855b25bf05e7e3f1.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libcamino-2865171921d332fe.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libserde-76098c3aadc166d4.rlib" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libanyhow-46e164cabef04598.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/m/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/m/zcash/zebrad/src/zebra-1.8.0/target/release/build/zebrad-5d532c01e23d52a4/build_script_build-5d532c01e23d52a4" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
= note: /usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libvergen-690a146aa93bd0b6.rlib(vergen-690a146aa93bd0b6.vergen.5df9573b6aa66d50-cgu.2.rcgu.o): in function `git2::repo::Repository::open':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository4open17hac47dabbf39688f5E+0x1b8): undefined reference to `git_repository_open'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libvergen-690a146aa93bd0b6.rlib(vergen-690a146aa93bd0b6.vergen.5df9573b6aa66d50-cgu.2.rcgu.o): in function `git2::repo::Repository::discover':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository8discover17ha377f488b21d0658E+0x21f): undefined reference to `git_repository_discover'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.00.rcgu.o): in function `git2::ObjectType::str':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:7:(.text._ZN4git210ObjectType3str17hcdb7171e8dbeeebdE+0x16): undefined reference to `git_object_type2string'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::revparse_single':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository15revparse_single17h706305b9cd4ef304E+0x1be): undefined reference to `git_revparse_single'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::path':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/repo.rs:454:(.text._ZN4git24repo10Repository4path17h2648fe5384c99741E+0x15): undefined reference to `git_repository_path'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::head_detached':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/repo.rs:847:(.text._ZN4git24repo10Repository13head_detached17h525573c752879d3cE+0x1a): undefined reference to `git_repository_head_detached'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::statuses':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository8statuses17ha01127f83e5c6dc0E+0xd4): undefined reference to `git_status_list_new'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::branches':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository8branches17h006c057a268ccc3cE+0xa4): undefined reference to `git_branch_iterator_new'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::find_reference':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository14find_reference17hd9cc9a6b5d81f3caE+0x1e5): undefined reference to `git_reference_lookup'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::revwalk':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository7revwalk17h68166bf6a50f5748E+0x82): undefined reference to `git_revwalk_new'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `git2::repo::Repository::describe':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git24repo10Repository8describe17h34d6bf7a4794e915E+0xb4): undefined reference to `git_describe_workdir'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.01.rcgu.o): in function `<git2::repo::Repository as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/repo.rs:3279:(.text._ZN64_$LT$git2..repo..Repository$u20$as$u20$core..ops..drop..Drop$GT$4drop17h2f666bcf889b5f04E+0x11): undefined reference to `git_repository_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `git2::commit::Commit::id':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/commit.rs:38:(.text._ZN4git26commit6Commit2id17h12b60c6775f57558E+0x19): undefined reference to `git_commit_id'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `git2::commit::Commit::message_bytes':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/commit.rs:77:(.text._ZN4git26commit6Commit13message_bytes17hecfd02017d9b0158E+0x15): undefined reference to `git_commit_message'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `git2::commit::Commit::time':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/commit.rs:179:(.text._ZN4git26commit6Commit4time17h58c193abfd5bcc5dE+0x1d): undefined reference to `git_commit_time'
/usr/bin/ld: /home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/commit.rs:180:(.text._ZN4git26commit6Commit4time17h58c193abfd5bcc5dE+0x2e): undefined reference to `git_commit_time_offset'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `git2::commit::Commit::author':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/commit.rs:204:(.text._ZN4git26commit6Commit6author17hafa797249f48fdc8E+0x16): undefined reference to `git_commit_author'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `<git2::commit::Commit as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/commit.rs:417:(.text._ZN62_$LT$git2..commit..Commit$u20$as$u20$core..ops..drop..Drop$GT$4drop17h1abbcf9c9eb1bce7E+0x11): undefined reference to `git_commit_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `git2::error::Error::last_error':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/error.rs:58:(.text._ZN4git25error5Error10last_error17h721d870bebd3ad62E+0x2a): undefined reference to `git_error_last'
/usr/bin/ld: /home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/error.rs:66:(.text._ZN4git25error5Error10last_error17h721d870bebd3ad62E+0xa0): undefined reference to `git_error_clear'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.04.rcgu.o): in function `<git2::signature::Signature as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/signature.rs:144:(.text._ZN68_$LT$git2..signature..Signature$u20$as$u20$core..ops..drop..Drop$GT$4drop17h60f9bb030fb34dcbE+0x25): undefined reference to `git_signature_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `git2::branch::Branch::is_head':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/branch.rs:67:(.text._ZN4git26branch6Branch7is_head17hc2f92197c94bd84fE+0x20): undefined reference to `git_branch_is_head'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `git2::branch::Branch::name_bytes':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git26branch6Branch10name_bytes17hdf738adbf1191ec2E+0x97): undefined reference to `git_branch_name'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `<git2::branch::Branches as core::iter::traits::iterator::Iterator>::next':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:7:(.text._ZN81_$LT$git2..branch..Branches$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h5ea645db2e534a3cE+0xb7): undefined reference to `git_branch_next'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `<git2::branch::Branches as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/branch.rs:159:(.text._ZN64_$LT$git2..branch..Branches$u20$as$u20$core..ops..drop..Drop$GT$4drop17h0f37c814d014500dE+0x11): undefined reference to `git_branch_iterator_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `git2::describe::Describe::format':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git28describe8Describe6format17h41a6a1b512e3051eE+0x16a): undefined reference to `git_describe_format'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `<git2::describe::Describe as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/describe.rs:58:(.text._ZN66_$LT$git2..describe..Describe$u20$as$u20$core..ops..drop..Drop$GT$4drop17hfd097f857bf63751E+0x11): undefined reference to `git_describe_result_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `git2::status::StatusOptions::new':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/status.rs:73:(.text._ZN4git26status13StatusOptions3new17ha407f8f2da6b2588E+0xaa): undefined reference to `git_status_init_options'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `git2::status::Statuses::get':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/status.rs:245:(.text._ZN4git26status8Statuses3get17hdce4c91248460db5E+0x16): undefined reference to `git_status_byindex'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `git2::status::Statuses::len':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/status.rs:255:(.text._ZN4git26status8Statuses3len17h5849f709f76042caE+0x11): undefined reference to `git_status_list_entrycount'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.07.rcgu.o): in function `<git2::status::Statuses as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/status.rs:288:(.text._ZN64_$LT$git2..status..Statuses$u20$as$u20$core..ops..drop..Drop$GT$4drop17h904a3f606ddb5668E+0x11): undefined reference to `git_status_list_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `git2::object::Object::id':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/object.rs:20:(.text._ZN4git26object6Object2id17hf13a56fe4281134aE+0x19): undefined reference to `git_object_id'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `git2::object::Object::kind':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/object.rs:27:(.text._ZN4git26object6Object4kind17hd1ac54691409b673E+0x11): undefined reference to `git_object_type'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `git2::object::Object::short_id':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git26object6Object8short_id17hf3d1ccae2ec274b7E+0xef): undefined reference to `git_object_short_id'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `<git2::object::Object as git2::object::CastOrPanic>::cast_or_panic':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/object.rs:190:(.text._ZN66_$LT$git2..object..Object$u20$as$u20$git2..object..CastOrPanic$GT$13cast_or_panic17h5a976a75702f3786E+0x1f0): undefined reference to `git_object_type'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `<git2::object::Object as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/object.rs:246:(.text._ZN62_$LT$git2..object..Object$u20$as$u20$core..ops..drop..Drop$GT$4drop17hf9987fa1c26e23acE+0x11): undefined reference to `git_object_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `git2::revwalk::Revwalk::push_head':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git27revwalk7Revwalk9push_head17hfc1e24ffe41af4f5E+0x47): undefined reference to `git_revwalk_push_head'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `<git2::revwalk::Revwalk as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/revwalk.rs:234:(.text._ZN64_$LT$git2..revwalk..Revwalk$u20$as$u20$core..ops..drop..Drop$GT$4drop17hcb8c1e648c69e032E+0x11): undefined reference to `git_revwalk_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.09.rcgu.o): in function `<git2::revwalk::Revwalk as core::iter::traits::iterator::Iterator>::next':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:7:(.text._ZN81_$LT$git2..revwalk..Revwalk$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h2d549c2a51f35712E+0xab): undefined reference to `git_revwalk_next'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.12.rcgu.o): in function `<git2::buf::Buf as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/buf.rs:69:(.text._ZN56_$LT$git2..buf..Buf$u20$as$u20$core..ops..drop..Drop$GT$4drop17h34afdf74943b61e4E+0xe): undefined reference to `git_buf_dispose'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.12.rcgu.o): in function `<git2::oid::Oid as core::fmt::Display>::fmt':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/oid.rs:139:(.text._ZN53_$LT$git2..oid..Oid$u20$as$u20$core..fmt..Display$GT$3fmt17hafd6428c1171bbceE+0x5c): undefined reference to `git_oid_tostr'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.12.rcgu.o): in function `git2::reference::Reference::name_bytes':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/reference.rs:225:(.text._ZN4git29reference9Reference10name_bytes17hf55f21bb1e745197E+0x15): undefined reference to `git_reference_name'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.12.rcgu.o): in function `git2::reference::Reference::resolve':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git29reference9Reference7resolve17hf5b6f72497f899b3E+0x7f): undefined reference to `git_reference_resolve'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.12.rcgu.o): in function `git2::reference::Reference::peel':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/call.rs:13:(.text._ZN4git29reference9Reference4peel17h39adaf4e6fda0109E+0x96): undefined reference to `git_reference_peel'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/libgit2-35f7345bc7e97ad9.rlib(git2-35f7345bc7e97ad9.git2.2d89c8e744ce2c3c-cgu.12.rcgu.o): in function `<git2::reference::Reference as core::ops::drop::Drop>::drop':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/git2-0.18.3/src/reference.rs:444:(.text._ZN68_$LT$git2..reference..Reference$u20$as$u20$core..ops..drop..Drop$GT$4drop17h5e8cea3b2a67556cE+0x11): undefined reference to `git_reference_free'
/usr/bin/ld: /home/m/zcash/zebrad/src/zebra-1.8.0/target/release/deps/liblibgit2_sys-d23cee2cf688d92d.rlib(libgit2_sys-d23cee2cf688d92d.libgit2_sys.7f68502f5349e6b9-cgu.0.rcgu.o): in function `libgit2_sys::init::{{closure}}':
/home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libgit2-sys-0.16.2+1.7.2/lib.rs:4282:(.text._ZN11libgit2_sys4init28_$u7b$$u7b$closure$u7d$$u7d$17h638f0867038484b7E+0x18): undefined reference to `git_libgit2_init'
/usr/bin/ld: /home/m/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libgit2-sys-0.16.2+1.7.2/lib.rs:4291:(.text._ZN11libgit2_sys4init28_$u7b$$u7b$closure$u7d$$u7d$17h638f0867038484b7E+0x2d): undefined reference to `git_error_last'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: could not compile `zebrad` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
Aborting
It looks like someone else got bit by the same issue as well: https://github.com/Canop/broot/issues/852.
Having
options=(!debug !lto)
in PKGBUILD seems to resolve it in all cases.
Last edited by upbqdn (2024-07-09 20:34:34)
Offline