fd0015b9dd
Errors looks like: aarch64-linux-android-clang -fstack-protector-strong -Oz -Drindex=strrchr -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -o heyu date.o erase.o info.o message.o relay.o monitor.o reset.o setclock.o stop.o tty.o x10.o xread.o xwrite.o status.o cm11a.o eeprom.o process.o sun.o cmd.o config.o x10state.o poll.o modules.o cm17a.o xsync.o timing.o cm10a.o tty_aux.o relay_aux.o x10aux.o rfxcom.o digimax.o oregon.o -lm ld: error: duplicate symbol: newsb >>> defined at tty.c >>> tty.o:(newsb) >>> defined at tty_aux.c >>> tty_aux.o:(.bss+0x30) ld: error: duplicate symbol: oldsb >>> defined at tty.c >>> tty.o:(oldsb) >>> defined at tty_aux.c >>> tty_aux.o:(.bss+0x0) ld: error: duplicate symbol: spoolfile >>> defined at relay.c >>> relay.o:(spoolfile) >>> defined at relay_aux.c >>> relay_aux.o:(.bss+0x1C4) clang-12: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [Makefile:467: heyu] Error 1
12 lines
313 B
Diff
12 lines
313 B
Diff
--- ../relay_aux.c.orig 2021-09-22 11:17:39.444565934 +0200
|
|
+++ ./relay_aux.c 2021-09-22 11:17:59.128252191 +0200
|
|
@@ -95,7 +95,7 @@
|
|
extern CONFIG config;
|
|
extern CONFIG *configp;
|
|
|
|
-char spoolfile[PATH_LEN + 1];
|
|
+extern char spoolfile[PATH_LEN + 1];
|
|
|
|
extern int is_ring( void );
|
|
int relay_ri_control( void );
|