We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The problem is a missing function called makedev, not a program. makedev() is actually a macro and you need to include the correct header for it.
It is possible to add the following line in mailbox.c to fix it: #include <sys/sysmacros.h>
The text was updated successfully, but these errors were encountered:
No doesn't work for me on my rpi 3b
Sorry, something went wrong.
cc -Wall -c mailbox.c mailbox.c: In function ‘mapmem’: mailbox.c:62:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 62 | printf("mmap error %d\n", (int)mem); | ^ g++ -D_GLIBCXX_DEBUG -std=c++11 -Wall -Werror -fmax-errors=5 -lm -DRPI23 mailbox.o wspr.cpp -owspr wspr.cpp: In function ‘void getRealMemPageFromPool(void**, void**)’: wspr.cpp:265:21: error: cast from ‘unsigned char*’ to ‘unsigned int’ loses precision [-fpermissive] 265 | *vAddr = (void*)(((unsigned)mbox.virt_addr) + offset); | ^~~~~~~~~~~~~~~~~~~~~~~~ wspr.cpp:265:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 265 | *vAddr = (void*)(((unsigned)mbox.virt_addr) + offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wspr.cpp:266:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 266 | *bAddr = (void*)(((unsigned)mbox.bus_addr) + offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make: *** [makefile:22: wspr] Error 1
No branches or pull requests
The problem is a missing function called makedev, not a program.
makedev() is actually a macro and you need to include the correct header for it.
It is possible to add the following line in mailbox.c to fix it:
#include <sys/sysmacros.h>
The text was updated successfully, but these errors were encountered: