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

`CURL_4' not found for Poppler_jll v23 in Julia 1.8 #8084

Closed
tpapp opened this issue Feb 9, 2024 · 8 comments
Closed

`CURL_4' not found for Poppler_jll v23 in Julia 1.8 #8084

tpapp opened this issue Feb 9, 2024 · 8 comments

Comments

@tpapp
Copy link

tpapp commented Feb 9, 2024

With Poppler_jll v23.12.0+0 on Julia 1.8, I get the following error in unit tests:

/home/runner/.julia/artifacts/c26aa29d2df324fb8b22554ad29bf67e463a1155/bin/pdftocairo: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_4' not found (required by /home/runner/.julia/artifacts/c26aa29d2df324fb8b22554ad29bf67e463a1155/lib/libpoppler.so.133)

Note that in Julia 1.10 it works fine. So dies Poppler_jll v22 on 1.8.

@giordano
Copy link
Member

giordano commented Feb 9, 2024

The problem is that you're somehow using a system library /lib/x86_64-linux-gnu/libcurl.so.4, usually this is due to setting LD_LIBRARY_PATH or something like that

@giordano giordano closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
@tpapp
Copy link
Author

tpapp commented Feb 9, 2024

Note that

  1. the error message is from CI, running in Github Actions.
  2. other versions work fine, so I am not sure what changes between runs.

@giordano
Copy link
Member

giordano commented Feb 9, 2024

A reproducer would be most helpful, but this works for me

(tmp) pkg> st Poppler_jll
Status `/tmp/Project.toml`
  [9c32591e] Poppler_jll v23.12.0+0

julia> using Poppler_jll

julia> success(`$(pdftocairo()) -png test.pdf test.png`)
true

@tpapp
Copy link
Author

tpapp commented Feb 9, 2024

Thanks for your help. I made an MWE repo, problem reproduced here:

https://github.com/tpapp/PopplerMWE.jl/actions/runs/7843637138

(also, would you mind reopening the issue?)

@giordano
Copy link
Member

giordano commented Feb 9, 2024

In my system I can reproduce this only if I do something like

export LD_PRELOAD=/usr/lib/libcurl.so

to forcibly point to system libcurl.

(also, would you mind reopening the issue?)

There's no evidence there's any bug on our side.

@tpapp
Copy link
Author

tpapp commented Feb 9, 2024

I have updated the repo to print LD_PRELOAD, and apparently it is unset on Github actions, too:

https://github.com/tpapp/PopplerMWE.jl/actions/runs/7843905876/job/21405202231

There's no evidence there's any bug on our side.

With respect, I think it is premature to conclude this. At this point the cause of the bug is not determined.

@giordano
Copy link
Member

giordano commented Feb 9, 2024

The problem is that CompilerSupportLibraries_jll.LIBPATH_list (CompilerSupportLibraries_jll is a julia stdlib, not managed here) only in Julia v1.8 (which is not maintained anymore) and only on CI (I can't reproduce locally) contains /lib/x86_64-linux-gnu. As I said, nothing to do here.

@giordano
Copy link
Member

giordano commented Feb 9, 2024

My hunch is that this may have been fixed by JuliaLang/julia#46976.

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