Skip to content

Problem loading external functions; wrong version of libc? #160

Answered by mikucionisaau
AsgerHB asked this question in Q&A
Discussion options

You must be logged in to vote

What UPPAAL version are you trying?

Maybe it's just a typo and it's not related, but your commands compile libpostshield.so, but UPPAAL model is asking for import libccpostshield.so (there's extra cc in the name).

Also, when you are linking against libraries in ~/.local, you need to add -L$HOME/.local/lib (which should contain libc.so.6), whereas -I adds only the headers, and I believe it needs to be -I$HOME/.local/include (which should contain math.h and similar headers). For this approach to work, you will also need to recompile the libjulia-internal.so.1 (and I guess lots more) against the libc in ~/.local.

Third thing: with newer OSes like Ubuntu-22, it should be easier to just remove…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@AsgerHB
Comment options

AsgerHB Oct 25, 2022
Collaborator Author

@mikucionisaau
Comment options

@mikucionisaau
Comment options

@mikucionisaau
Comment options

@AsgerHB
Comment options

AsgerHB Oct 25, 2022
Collaborator Author

Answer selected by AsgerHB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants