Code: Select all
$ make
...SNIP...
/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -L/usr/lib -L/usr/lib -o spine.exe sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lnetsnmp -lmysqlclient -lm -ldl -lmysqlclient -lm -ldl -lcrypto -lz -lpthread -ldl -lm -lpthread -lssl
libtool: link: gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -o .libs/spine.exe sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/lib -lnetsnmp -lmysqlclient -lcrypto -lz -ldl -lpthread -lssl
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: error.o: in function `spine_print_backtrace':
/usr/src/spine-release-1.2.16/error.c:99: undefined reference to `backtrace'
/usr/src/spine-release-1.2.16/error.c:99:(.text+0x29): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `backtrace'
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: /usr/src/spine-release-1.2.16/error.c:105: undefined reference to `backtrace_symbols'
/usr/src/spine-release-1.2.16/error.c:105:(.text+0x4d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `backtrace_symbols'
collect2: error: ld returned 1 exit status
make: *** [Makefile:376: spine.exe] Error 1
Edit: Ugh, it seems this has been an issue since 2015 ... https://sourceware.org/legacy-ml/cygwin ... 00206.html
Edit 2021/05/28: This was fixed in this commit https://github.com/Cacti/spine/commit/c ... 5ea37c074a, it builds fine now. Thanks to the devs for fixing it!