Error compiling ARDOPC


Teun Blok
 

Hello to all,

I have a error when I want to compile ARDOPC. As source I have used TeensyProjects.zip 27 july 2020 which I downloaded from John's website. I hope that someone can tell me what I can do myself or is it something for the developer. I almost forgot, the precompiled binaries don't work either anymore on my OS.

FYI I use Gentoo Linux x86_64 and regular update this OS, so no old GCC etc, see below:

teun@i5-4430 ~ $ emerge --info
Portage 3.0.30 (python 3.9.11-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.1, glibc-2.34-r10, 5.15.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.15.32-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-4430_CPU_@...
KiB Mem:     8076140 total,   3598040 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 28 Apr 2022 10:30:01 +0000
Head commit of repository gentoo: d777cf176724be943e25f271eb46577262d8fade
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r9::gentoo
dev-lang/python:           3.9.11::gentoo, 3.10.3::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo


The actual error is with 'make', see below:


teun@i5-4430 ~/TeensyProjects/ARDOPC $ make
gcc -DLINBPQ -MMD -g    -c -o LinSerial.o LinSerial.c
LinSerial.c: In function ‘OpenCOMPort’:
LinSerial.c:176:40: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘void *’ [-Wformat=]
  176 |                         sprintf(buf," %s could not be opened", Port);
      | ~^                       ~~~~
      | |                       |
      |                                        char *                  void *
      |                                       %p
gcc -DLINBPQ -MMD -g    -c -o KISSModule.o KISSModule.c
gcc -DLINBPQ -MMD -g    -c -o pktARDOP.o pktARDOP.c
gcc -DLINBPQ -MMD -g    -c -o pktSession.o pktSession.c
pktSession.c: In function ‘C_Q_ADD’:
pktSession.c:390:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  390 |                 Q[0]=(unsigned int)BUFF;                                // New one on front
      |                      ^
pktSession.c:394:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  394 |         next = (unsigned int *)Q[0];
      |                ^
pktSession.c:398:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  398 |                 next=(unsigned int *)next[0];                   // Chain to end of queue
      |                      ^
pktSession.c:400:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  400 |         next[0]=(unsigned int)BUFF;                                     // New one on end
      |                 ^
gcc -DLINBPQ -MMD -g    -c -o BusyDetect.o BusyDetect.c
gcc -DLINBPQ -MMD -g    -c -o i2cDisplay.o i2cDisplay.c
gcc -DLINBPQ -MMD -g    -c -o ALSASound.o ALSASound.c
gcc -DLINBPQ -MMD -g    -c -o ARDOPC.o ARDOPC.c
gcc -DLINBPQ -MMD -g    -c -o ardopSampleArrays.o ardopSampleArrays.c
gcc -DLINBPQ -MMD -g    -c -o ARQ.o ARQ.c
gcc -DLINBPQ -MMD -g    -c -o FFT.o FFT.c
gcc -DLINBPQ -MMD -g    -c -o FEC.o FEC.c
gcc -DLINBPQ -MMD -g    -c -o HostInterface.o HostInterface.c
gcc -DLINBPQ -MMD -g    -c -o Modulate.o Modulate.c
gcc -DLINBPQ -MMD -g    -c -o rs.o rs.c
gcc -DLINBPQ -MMD -g    -c -o berlekamp.o berlekamp.c
gcc -DLINBPQ -MMD -g    -c -o galois.o galois.c
gcc -DLINBPQ -MMD -g    -c -o SoundInput.o SoundInput.c
gcc -DLINBPQ -MMD -g    -c -o TCPHostInterface.o TCPHostInterface.c
gcc -DLINBPQ -MMD -g    -c -o SCSHostInterface.o SCSHostInterface.c
gcc LinSerial.o KISSModule.o pktARDOP.o pktSession.o BusyDetect.o i2cDisplay.o ALSASound.o ARDOPC.o ardopSampleArrays.o ARQ.o FFT.o FEC.o HostInterface.o Modulate.o rs.o berlekamp.o galois.o SoundInput.o TCPHostInterface.o SCSHostInterface.o -Xlinker -Map=output.map -lrt -lm -lpthread -lasound -o ardopc
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: KISSModule.o:/home/teun/TeensyProjects/ARDOPC/KISSModule.c:52: multiple definition of `hDevice'; LinSerial.o:/home/teun/TeensyProjects/ARDOPC/LinSerial.c:24: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2566: multiple definition of `intLastStart'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:14: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2567: multiple definition of `intLastStop'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:14: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2568: multiple definition of `dblAvgBaselineSlow'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2569: multiple definition of `dblAvgBaselineFast'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2570: multiple definition of `dblAvgPk2BaselineRatio'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARQ.o:/home/teun/TeensyProjects/ARDOPC/ARQ.c:158: multiple definition of `intGoodQAMSummationDecodes'; ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:146: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SoundInput.o:/home/teun/TeensyProjects/ARDOPC/SoundInput.c:59: multiple definition of `tmrFinalID'; ARQ.o:/home/teun/TeensyProjects/ARDOPC/ARQ.c:102: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:59: multiple definition of `bytDataToSend'; TCPHostInterface.o:/home/teun/TeensyProjects/ARDOPC/TCPHostInterface.c:97: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:105: multiple definition of `RXBPtr'; LinSerial.o:/home/teun/TeensyProjects/ARDOPC/LinSerial.c:294: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:483: multiple definition of `CRCTAB'; ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2996: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ardopc] Error 1
teun@i5-4430 ~/TeensyProjects/ARDOPC $

TIA 73 de Teun PA1TB


David R. Andersen
 

Teun:

I'm running ubuntu bionic and was able to successfully compile ardopc
from the TeensyProjects.zip you mentioned.

I think the difference is our versions of gcc. I have:

$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

Your version is a couple of major versions newer.

I suspect there is something the newer version of gcc doesn't like in
the ardopc code. My recommendation is to compile using an older
version of gcc.

Dave K0RX

On Thu, Apr 28, 2022 at 03:44:16PM +0200, Teun Blok wrote:
Hello to all,

I have a error when I want to compile ARDOPC. As source I have used TeensyProjects.zip 27 july 2020 which I downloaded from John's website. I hope that someone can tell me what I can do myself or is it something for the developer. I almost forgot, the precompiled binaries don't work either anymore on my OS.

FYI I use Gentoo Linux x86_64 and regular update this OS, so no old GCC etc, see below:

teun@i5-4430 ~ $ emerge --info
Portage 3.0.30 (python 3.9.11-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.1, glibc-2.34-r10, 5.15.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.15.32-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-4430_CPU_@...
KiB Mem:     8076140 total,   3598040 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 28 Apr 2022 10:30:01 +0000
Head commit of repository gentoo: d777cf176724be943e25f271eb46577262d8fade
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r9::gentoo
dev-lang/python:           3.9.11::gentoo, 3.10.3::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo


The actual error is with 'make', see below:


teun@i5-4430 ~/TeensyProjects/ARDOPC $ make
gcc -DLINBPQ -MMD -g    -c -o LinSerial.o LinSerial.c
LinSerial.c: In function ‘OpenCOMPort’:
LinSerial.c:176:40: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘void *’ [-Wformat=]
  176 |                         sprintf(buf," %s could not be opened", Port);
      | ~^                       ~~~~
      | |                       |
      |                                        char *                  void *
      |                                       %p
gcc -DLINBPQ -MMD -g    -c -o KISSModule.o KISSModule.c
gcc -DLINBPQ -MMD -g    -c -o pktARDOP.o pktARDOP.c
gcc -DLINBPQ -MMD -g    -c -o pktSession.o pktSession.c
pktSession.c: In function ‘C_Q_ADD’:
pktSession.c:390:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  390 |                 Q[0]=(unsigned int)BUFF;                                // New one on front
      |                      ^
pktSession.c:394:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  394 |         next = (unsigned int *)Q[0];
      |                ^
pktSession.c:398:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  398 |                 next=(unsigned int *)next[0];                   // Chain to end of queue
      |                      ^
pktSession.c:400:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  400 |         next[0]=(unsigned int)BUFF;                                     // New one on end
      |                 ^
gcc -DLINBPQ -MMD -g    -c -o BusyDetect.o BusyDetect.c
gcc -DLINBPQ -MMD -g    -c -o i2cDisplay.o i2cDisplay.c
gcc -DLINBPQ -MMD -g    -c -o ALSASound.o ALSASound.c
gcc -DLINBPQ -MMD -g    -c -o ARDOPC.o ARDOPC.c
gcc -DLINBPQ -MMD -g    -c -o ardopSampleArrays.o ardopSampleArrays.c
gcc -DLINBPQ -MMD -g    -c -o ARQ.o ARQ.c
gcc -DLINBPQ -MMD -g    -c -o FFT.o FFT.c
gcc -DLINBPQ -MMD -g    -c -o FEC.o FEC.c
gcc -DLINBPQ -MMD -g    -c -o HostInterface.o HostInterface.c
gcc -DLINBPQ -MMD -g    -c -o Modulate.o Modulate.c
gcc -DLINBPQ -MMD -g    -c -o rs.o rs.c
gcc -DLINBPQ -MMD -g    -c -o berlekamp.o berlekamp.c
gcc -DLINBPQ -MMD -g    -c -o galois.o galois.c
gcc -DLINBPQ -MMD -g    -c -o SoundInput.o SoundInput.c
gcc -DLINBPQ -MMD -g    -c -o TCPHostInterface.o TCPHostInterface.c
gcc -DLINBPQ -MMD -g    -c -o SCSHostInterface.o SCSHostInterface.c
gcc LinSerial.o KISSModule.o pktARDOP.o pktSession.o BusyDetect.o i2cDisplay.o ALSASound.o ARDOPC.o ardopSampleArrays.o ARQ.o FFT.o FEC.o HostInterface.o Modulate.o rs.o berlekamp.o galois.o SoundInput.o TCPHostInterface.o SCSHostInterface.o -Xlinker -Map=output.map -lrt -lm -lpthread -lasound -o ardopc
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: KISSModule.o:/home/teun/TeensyProjects/ARDOPC/KISSModule.c:52: multiple definition of `hDevice'; LinSerial.o:/home/teun/TeensyProjects/ARDOPC/LinSerial.c:24: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2566: multiple definition of `intLastStart'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:14: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2567: multiple definition of `intLastStop'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:14: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2568: multiple definition of `dblAvgBaselineSlow'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2569: multiple definition of `dblAvgBaselineFast'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2570: multiple definition of `dblAvgPk2BaselineRatio'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARQ.o:/home/teun/TeensyProjects/ARDOPC/ARQ.c:158: multiple definition of `intGoodQAMSummationDecodes'; ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:146: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SoundInput.o:/home/teun/TeensyProjects/ARDOPC/SoundInput.c:59: multiple definition of `tmrFinalID'; ARQ.o:/home/teun/TeensyProjects/ARDOPC/ARQ.c:102: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:59: multiple definition of `bytDataToSend'; TCPHostInterface.o:/home/teun/TeensyProjects/ARDOPC/TCPHostInterface.c:97: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:105: multiple definition of `RXBPtr'; LinSerial.o:/home/teun/TeensyProjects/ARDOPC/LinSerial.c:294: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:483: multiple definition of `CRCTAB'; ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2996: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ardopc] Error 1
teun@i5-4430 ~/TeensyProjects/ARDOPC $

TIA 73 de Teun PA1TB
--
int x=90560580,y=32678;main(){putchar(x);x>>=y&7;y>>=3;return y?main():0;}
Contact info: https://k0rx.com/contact/

Quis custodiet ipsos custodes?


John G8BPQ
 

gcc 10+ has different rules for common storage. Try compiling and linking with option -fcommon

Or use an earlier version of gcc


73,
John


On 28/04/2022 14:44, Teun Blok wrote:
Hello to all,

I have a error when I want to compile ARDOPC. As source I have used TeensyProjects.zip 27 july 2020 which I downloaded from John's website. I hope that someone can tell me what I can do myself or is it something for the developer. I almost forgot, the precompiled binaries don't work either anymore on my OS.

FYI I use Gentoo Linux x86_64 and regular update this OS, so no old GCC etc, see below:

teun@i5-4430 ~ $ emerge --info
Portage 3.0.30 (python 3.9.11-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.1, glibc-2.34-r10, 5.15.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.15.32-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-4430_CPU_@...
KiB Mem:     8076140 total,   3598040 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 28 Apr 2022 10:30:01 +0000
Head commit of repository gentoo: d777cf176724be943e25f271eb46577262d8fade
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r9::gentoo
dev-lang/python:           3.9.11::gentoo, 3.10.3::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo


The actual error is with 'make', see below:


teun@i5-4430 ~/TeensyProjects/ARDOPC $ make
gcc -DLINBPQ -MMD -g    -c -o LinSerial.o LinSerial.c
LinSerial.c: In function ‘OpenCOMPort’:
LinSerial.c:176:40: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘void *’ [-Wformat=]
  176 |                         sprintf(buf," %s could not be opened", Port);
      | ~^                       ~~~~
      | |                       |
      |                                        char *                  void *
      |                                       %p
gcc -DLINBPQ -MMD -g    -c -o KISSModule.o KISSModule.c
gcc -DLINBPQ -MMD -g    -c -o pktARDOP.o pktARDOP.c
gcc -DLINBPQ -MMD -g    -c -o pktSession.o pktSession.c
pktSession.c: In function ‘C_Q_ADD’:
pktSession.c:390:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  390 |                 Q[0]=(unsigned int)BUFF;                                // New one on front
      |                      ^
pktSession.c:394:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  394 |         next = (unsigned int *)Q[0];
      |                ^
pktSession.c:398:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  398 |                 next=(unsigned int *)next[0];                   // Chain to end of queue
      |                      ^
pktSession.c:400:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  400 |         next[0]=(unsigned int)BUFF;                                     // New one on end
      |                 ^
gcc -DLINBPQ -MMD -g    -c -o BusyDetect.o BusyDetect.c
gcc -DLINBPQ -MMD -g    -c -o i2cDisplay.o i2cDisplay.c
gcc -DLINBPQ -MMD -g    -c -o ALSASound.o ALSASound.c
gcc -DLINBPQ -MMD -g    -c -o ARDOPC.o ARDOPC.c
gcc -DLINBPQ -MMD -g    -c -o ardopSampleArrays.o ardopSampleArrays.c
gcc -DLINBPQ -MMD -g    -c -o ARQ.o ARQ.c
gcc -DLINBPQ -MMD -g    -c -o FFT.o FFT.c
gcc -DLINBPQ -MMD -g    -c -o FEC.o FEC.c
gcc -DLINBPQ -MMD -g    -c -o HostInterface.o HostInterface.c
gcc -DLINBPQ -MMD -g    -c -o Modulate.o Modulate.c
gcc -DLINBPQ -MMD -g    -c -o rs.o rs.c
gcc -DLINBPQ -MMD -g    -c -o berlekamp.o berlekamp.c
gcc -DLINBPQ -MMD -g    -c -o galois.o galois.c
gcc -DLINBPQ -MMD -g    -c -o SoundInput.o SoundInput.c
gcc -DLINBPQ -MMD -g    -c -o TCPHostInterface.o TCPHostInterface.c
gcc -DLINBPQ -MMD -g    -c -o SCSHostInterface.o SCSHostInterface.c
gcc LinSerial.o KISSModule.o pktARDOP.o pktSession.o BusyDetect.o i2cDisplay.o ALSASound.o ARDOPC.o ardopSampleArrays.o ARQ.o FFT.o FEC.o HostInterface.o Modulate.o rs.o berlekamp.o galois.o SoundInput.o TCPHostInterface.o SCSHostInterface.o -Xlinker -Map=output.map -lrt -lm -lpthread -lasound -o ardopc
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: KISSModule.o:/home/teun/TeensyProjects/ARDOPC/KISSModule.c:52: multiple definition of `hDevice'; LinSerial.o:/home/teun/TeensyProjects/ARDOPC/LinSerial.c:24: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2566: multiple definition of `intLastStart'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:14: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2567: multiple definition of `intLastStop'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:14: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2568: multiple definition of `dblAvgBaselineSlow'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2569: multiple definition of `dblAvgBaselineFast'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2570: multiple definition of `dblAvgPk2BaselineRatio'; BusyDetect.o:/home/teun/TeensyProjects/ARDOPC/BusyDetect.c:33: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ARQ.o:/home/teun/TeensyProjects/ARDOPC/ARQ.c:158: multiple definition of `intGoodQAMSummationDecodes'; ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:146: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SoundInput.o:/home/teun/TeensyProjects/ARDOPC/SoundInput.c:59: multiple definition of `tmrFinalID'; ARQ.o:/home/teun/TeensyProjects/ARDOPC/ARQ.c:102: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:59: multiple definition of `bytDataToSend'; TCPHostInterface.o:/home/teun/TeensyProjects/ARDOPC/TCPHostInterface.c:97: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:105: multiple definition of `RXBPtr'; LinSerial.o:/home/teun/TeensyProjects/ARDOPC/LinSerial.c:294: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: SCSHostInterface.o:/home/teun/TeensyProjects/ARDOPC/SCSHostInterface.c:483: multiple definition of `CRCTAB'; ARDOPC.o:/home/teun/TeensyProjects/ARDOPC/ARDOPC.c:2996: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ardopc] Error 1
teun@i5-4430 ~/TeensyProjects/ARDOPC $

TIA 73 de Teun PA1TB