Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs.rs build failing for 0.12.0 #247

Closed
ttencate opened this issue Jan 27, 2022 · 3 comments
Closed

docs.rs build failing for 0.12.0 #247

ttencate opened this issue Jan 27, 2022 · 3 comments

Comments

@ttencate
Copy link
Contributor

Build log: https://docs.rs/crate/gdal/0.12.0/builds/494924

[INFO] [stderr]   = note: /usr/bin/ld: /opt/rustwide/target/debug/build/gdal-8e3e3a0b0b19e988/build_script_build-8e3e3a0b0b19e988.w8psl9b4ide3rce.rcgu.o: in function `build_script_build::gdal_version_info':
[INFO] [stderr]           /opt/rustwide/workdir/build.rs:13: undefined reference to `GDALVersionInfo'
[INFO] [stderr]           collect2: error: ld returned 1 exit status
[INFO] [stderr]           
[INFO] [stderr]   = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
[INFO] [stderr]   = note: use the `-l` flag to specify native libraries to link
[INFO] [stderr]   = 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)
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `gdal` due to previous error
@lnicola
Copy link
Member

lnicola commented Jan 27, 2022

Duplicate of #240

@lnicola lnicola marked this as a duplicate of #240 Jan 27, 2022
@ttencate
Copy link
Contributor Author

Hmm OK, I will close this if that is the case. I thought #240 was only about docs for dependent crates failing to build, not for the gdal crate itself.

@lnicola
Copy link
Member

lnicola commented Jan 27, 2022

Yeah, I think it's the same root cause -- the gdal build script trying to call GDALVersionInfo because it doesn't realize it's running on docs.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants