Closed dslotter closed 4 years ago
Experiencing same, here. Seeing this was closed, I cannot seem to find the fix with my blind old eyes. Any guidance?
@chrismaltese I switched projects to the original (older) version which still builds successfully: https://github.com/DanAnkers/WsprryPi . Hope this helps you.
@dslotter Thanks, Dave. That came together nicely. Will test with HAT when it arrives.
Much appreciated, --Chris
Attempting to build under Raspbian buster (armhf) image from 2020-05-27 results in these errors:
`pi@raspberrypi:~/hamradio/WsprryPi $ make cc -O2 -march=native -mtune=native -Wall -c mailbox.c mailbox.c: In function ‘mbox_open’: mailbox.c:280:52: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration] if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_A, 0)) >= 0 && ^
~~ g++ -O2 -march=native -mtune=native -D_GLIBCXX_DEBUG -std=c++11 -Wall -Werror -fmax-errors=5 -lm -DRPI23 mailbox.o wspr.cpp -owspr wspr.cpp: In function ‘void txon()’: wspr.cpp:338:38: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] ACCESS_BUS_ADDR(CM_GP0CTL_BUS) = ((int)&setupword); ~^~~~~ wspr.cpp: In function ‘void wspr(const char, const char, const char, unsigned char)’: *wspr.cpp:597:10: error: ‘char strncpy(char, const char, size_t)’ specified bound 16 equals destination size [-Werror=stringop-truncation]** strncpy(buf, call, 16);