Skip to content

Conversation

sprhawk
Copy link

@sprhawk sprhawk commented Sep 3, 2022

Fixed build error, mostly format specifier errors.

Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

Signed-off-by: Yang Hongbo <[email protected]>
@Shawn531
Copy link

Shawn531 commented Sep 21, 2022

Fixed build error, mostly format specifier errors.

Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd
1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr
1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF

So the gpio_demo can't be executed because of these two errors.
How could I fix it? Thanks

@sprhawk
Copy link
Author

sprhawk commented Sep 22, 2022

Fixed build error, mostly format specifier errors.
Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF

So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

My bad, try the latest commit. I forgot to add declaration of mbox_id in dma.c

@Shawn531
Copy link

Fixed build error, mostly format specifier errors.
Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.
OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF
OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF
So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

My bad, try the latest commit. I forgot to add declaration of mbox_id in dma.c

Thanks a lot. It work.

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

Successfully merging this pull request may close these issues.

2 participants