PhirePhly / aprx

A highly configurable APRS I-gate/Digipeater Daemon
http://thelifeofkenneth.com/aprx/
BSD 3-Clause "New" or "Revised" License
153 stars 68 forks source link

aprx does not compile #72

Open videobuff opened 1 year ago

videobuff commented 1 year ago

Fresh SD with Raspbian Bulls Eye (32bit), git clone the repository. Configure went ok... However when i execute make, i get this error:

/usr/bin/ld: timercmp.o:/home/pa0esh/aprx/aprx.h:44: multiple definition ofaprsis_thread'; aprx.o:/home/pa0esh/aprx/aprx.h:44: first defined here ` Anyone knows the solution ?

sarcasticadmin commented 1 year ago

I ran into this as well doing a build via nix:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/s8172klvq3305qv2fwijwmmlxdcsf045-aprx-13c6e79
source root is aprx-13c6e79
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configure flags: --prefix=/nix/store/ww827z448mwd65cdgq15d4lw08mr7x0m-aprx-unstable-2021-06-01
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /nix/store/bcvccw6y9bfil6xrl5j7psza7hnd16ry-gnugrep-3.7/bin/grep
checking for egrep... /nix/store/bcvccw6y9bfil6xrl5j7psza7hnd16ry-gnugrep-3.7/bin/grep -E
checking whether gcc needs -traditional... no
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdlib.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking netinet/sctp.h usability... no
checking netinet/sctp.h presence... no
checking for netinet/sctp.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for vprintf... yes
checking for _doprnt... no
** Using C compiler: gcc
** Using CFLAGS:     -g -O2
** Using CPPDEP:     
checking whether byte ordering is bigendian... no
checking size of void *... 8
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of double... 8
checking for atan2f... no
checking for atan2f in -lm... yes
checking for memchr... yes
checking for memrchr... yes
checking for gettimeofday... yes
checking for openpty... yes
The --without-pthread option is not set, looking for pthread_create() function.
Have pthread_create()
Success at HAVE_PTHREAD_CREATE
checking for library containing clock_gettime... none required
checking for getaddrinfo... yes
checking for connect... yes
checking for gethostbyname... yes
checking for socket... yes
checking for socketpair... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: SHELL=/nix/store/4xw8n979xpivdc46a9ndcvyhwgif00hz-bash-5.1-p16/bin/bash
date: invalid date '315532800'
date: invalid date '315532800'
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c aprx.c
aprx.c: In function 'main':
aprx.c:270:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result]8;;]
  270 |                         fscanf(pf, "%d", &pid);
      |                         ^~~~~~~~~~~~~~~~~~~~~~
aprx.c:327:25: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result]8;;]
  327 |                         dup(f); // don't care what the fd number is
      |                         ^~~~~~
aprx.c: In function 'sig_handler':
aprx.c:61:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result]8;;]
   61 |           write(1, buf, strlen(buf));
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c ttyreader.c
In file included from /nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/bits/libc-header-start.h:33,
                 from /nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/stdio.h:27,
                 from aprx.h:13,
                 from ttyreader.c:13:
/nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp-Wcpp]8;;]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
ttyreader.c: In function 'aprx_cfmakeraw':
ttyreader.c:706:1: warning: type of 'f' defaults to 'int' []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-int-Wimplicit-int]8;;]
  706 | aprx_cfmakeraw(t, f)
      | ^~~~~~~~~~~~~~
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c ax25.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c aprsis.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c beacon.c
beacon.c: In function 'beacon_childexit':
beacon.c:1232:27: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result]8;;]
 1232 |                           write(1, buf, strlen(buf));
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
beacon.c: In function 'fix_beacon_time':
beacon.c:700:31: warning: '%02d' directive writing between 2 and 3 bytes into a region of size between 2 and 4 []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat-overflow=-Wformat-overflow=]8;;]
  700 |         sprintf(hms, "%02d%02d%02dh", hour, min, sec);
      |                               ^~~~
beacon.c:700:22: note: directive argument in the range [-59, 59]
  700 |         sprintf(hms, "%02d%02d%02dh", hour, min, sec);
      |                      ^~~~~~~~~~~~~~~
In file included from /nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/stdio.h:906,
                 from aprx.h:13,
                 from beacon.c:11:
/nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 8 and 11 bytes into a destination of size 8
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c config.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c netax25.c
netax25.c: In function 'discard_read_fd':
netax25.c:716:15: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result]8;;]
  716 |         (void)read(fd, buf, sizeof(buf));
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c erlang.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c aprxpolls.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c telemetry.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c igate.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c cellmalloc.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c historydb.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c keyhash.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c parse_aprs.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c dupecheck.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c kiss.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c interface.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c pbuf.c
In file included from /nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/bits/libc-header-start.h:33,
                 from /nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/stdio.h:27,
                 from aprx.h:13,
                 from pbuf.c:13:
/nix/store/mmmjp0xcmr0dm307jv1l34hvi95z6d8s-glibc-2.35-224-dev/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp-Wcpp]8;;]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c digipeater.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c valgrind.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c filter.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c dprsgw.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c crc.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c agwpesocket.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c netresolver.c
gcc -g -O2 -pthread   -DAPRXVERSION="\"2.9-detatched\"" -DVARRUN="\"/var/run\"" -DVARLOG="\"/var/log/aprx\"" -DCFGFILE="\"/etc/aprx.conf\"" -c timercmp.c
gcc  -o aprx aprx.o ttyreader.o ax25.o aprsis.o beacon.o config.o netax25.o erlang.o aprxpolls.o telemetry.o igate.o cellmalloc.o historydb.o keyhash.o parse_aprs.o dupecheck.o  kiss.o interface.o pbuf.o digipeater.o valgrind.o filter.o dprsgw.o  crc.o  agwpesocket.o netresolver.o timercmp.o  -lm -pthread  
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: ttyreader.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: ttyreader.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: ax25.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: ax25.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: aprsis.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: aprsis.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: beacon.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: beacon.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: config.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: config.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: netax25.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: netax25.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: erlang.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: erlang.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: aprxpolls.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: aprxpolls.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: telemetry.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: telemetry.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: igate.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: igate.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: historydb.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: historydb.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: parse_aprs.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: parse_aprs.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: dupecheck.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: dupecheck.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: kiss.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: kiss.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: interface.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: interface.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: pbuf.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: pbuf.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: digipeater.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: digipeater.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: filter.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: filter.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: dprsgw.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: dprsgw.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: crc.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: crc.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: agwpesocket.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: agwpesocket.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: netresolver.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: netresolver.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: timercmp.o:/build/aprx-13c6e79/aprx.h:45: multiple definition of `pthr_attrs'; aprx.o:/build/aprx-13c6e79/aprx.h:45: first defined here
/nix/store/frh9l9nrdysasdi2gs7i241s241ngjw2-binutils-2.39/bin/ld: timercmp.o:/build/aprx-13c6e79/aprx.h:44: multiple definition of `aprsis_thread'; aprx.o:/build/aprx-13c6e79/aprx.h:44: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:102: aprx] Error 1

Arch and Info:

$ nix --version
nix (Nix) 2.11.1
$ uname -a
Linux driver 5.15.83 #1-NixOS SMP Wed Dec 14 10:37:31 UTC 2022 x86_64 GNU/Linux
sarcasticadmin commented 1 year ago

Seems like a duplicate of https://github.com/PhirePhly/aprx/issues/62