mdbook-katex
mdbook-katex copied to clipboard
Undefined references in new release v0.5.10
I just tried to update AUR package that I am maintaining and I I got into problem building the newest release.
I am getting a lot of undefined references to some JavaScript things.
error: linking with `cc` failed: exit status: 1
...
= note: /usr/bin/ld: /<HOME>/mdbook-katex/src/mdbook-katex-0.5.10/target/release/deps/mdbook_katex-5d33f764a8eae680.mdbook_katex.35b81f164e81743-cgu.00.rcgu.o: in function `std::sys::common::thread_local::fast_local::Key<T>::try_initialize':
mdbook_katex.35b81f164e81743-cgu.00:(.text._ZN3std3sys6common12thread_local10fast_local12Key$LT$T$GT$14try_initialize17hc606d5746a222611E+0x52): undefined reference to `JS_NewRuntime'
...
= 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 `mdbook-katex` (bin "mdbook-katex") due to 1 previous error
==> ERROR: A failure occurred in build().
Aborting...
I just try to build it with cargo build --release
.
Am I missing some dependency?