So far I have:
- changed -lncurses to -lncursesw in my project make files
- added the TC extensions necessary to build my projects directly on the target machine
- fixed the code to account for slightly different header locations than the Ubuntu where I was previously building
Now my projects build with no errors or warnings and ldd shows that all libraries are satisfied. Unfortunately, the programs SEGFAULT immediately when I try to load them, before the first line of my code executes (I added a printf as the first line of main()). For references, here's the output of uname, ldd and file for one of the programs:
evi@box:/mnt/sda1/evi/checknet/Release$
uname -aLinux box 6.1.2-tinycore64 #612 SMP Mon Jan 2 17:24:30 UTC 2023 x86_64 GNU/Linux
evi@box:/mnt/sda1/evi/checknet/Release$
file checknetchecknet: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 5.4.3, not stripped
evi@box:/mnt/sda1/evi/checknet/Release$
ldd checknet linux-vdso.so.1 (0x00007ffe3db6d000)
libncursesw.so.6 => /usr/local/lib/libncursesw.so.6 (0x00007f55235e1000)
libc.so.6 => /lib/libc.so.6 (0x00007f552344b000)
/lib/ld-linux-x86-64.so.2 (0x00007f5523657000)
Will try to use gdb to track the SEGFAULT. Hopefully, I can make it on my own from here.