-
Notifications
You must be signed in to change notification settings - Fork 64
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
multiple definition of rtapi_message_buffer #350
Comments
The #346 is mainly concerned with runtime loading of symbols from compiled shared libraries to the process. This seems like an issue happening during the link time of the shared library. Frankly, it looks like one of many of Machinekit-HAL's bugs, because as far as I can tell, the linker is right, there really is a redefinition of that symbol. Odd thing is, it was probably intentional from this piece of code:
At first glance I would think that adding |
I already tried that, doesn't work. |
Really? I was able to get to the next error in line:
|
maybe I tried it in the wrong location.... The next one is a simple fix:
|
This is what I get next with adding extern:
|
Hmm, getting it compiled it still seems to not work, respective the process quietly dies. Looking at the In other words, it looks like that memory is allocated only once for And it seems to be the truth on Debian Buster:
But when just adding
(BTW, that being said one global buffer seems to me like no-so-good code...) |
@rene-dev, (Took me a while to remember/discover that the error I am seeing in the (The solution still seems like a bug, but that is for another time.) |
Im trying to build on ubuntu 21.04 with gcc 10 and hitting this error:
I cannot figure out whats going on, possibly this is related to #346?
The text was updated successfully, but these errors were encountered: