Problem loading external functions; wrong version of libc? #160
-
Hello I have built my .so file using the following parameters
And then
This produces an .so file which I am able to load from another c program, to test it.
in UPPAAL, the console gives the following error
Instructed by this readme I have gotten so far as building the newest glibc, into
And then
The exact same error occurs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
What UPPAAL version are you trying? Maybe it's just a typo and it's not related, but your commands compile Also, when you are linking against libraries in Third thing: with newer OSes like Ubuntu-22, it should be easier to just remove the shipped |
Beta Was this translation helpful? Give feedback.
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 importlibccpostshield.so
(there's extracc
in the name).Also, when you are linking against libraries in
~/.local
, you need to add-L$HOME/.local/lib
(which should containlibc.so.6
), whereas-I
adds only the headers, and I believe it needs to be-I$HOME/.local/include
(which should containmath.h
and similar headers). For this approach to work, you will also need to recompile thelibjulia-internal.so.1
(and I guess lots more) against thelibc
in~/.local
.Third thing: with newer OSes like Ubuntu-22, it should be easier to just remove…