Package Details: dmrconfig-git r245.9e65be7-1

Git Clone URL: https://aur.archlinux.org/dmrconfig-git.git (read-only, click to copy)
Package Base: dmrconfig-git
Description: DMRconfig is a utility for programming digital radios via USB programming cable.
Upstream URL: https://github.com/sergev/dmrconfig.git
Licenses: Apache 2.0
Submitter: simonvik
Maintainer: simonvik
Last Packager: simonvik
Votes: 1
Popularity: 0.000000
First Submitted: 2018-10-25 08:36 (UTC)
Last Updated: 2021-01-06 07:01 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

ecloud commented on 2024-09-06 10:42 (UTC)

https://github.com/OpenRTX/dmrconfig/issues/77

In the meantime:

commit b58cdcb1725ca48a245c7a8c55bb6ca7caee61ac (HEAD -> master)
Author: Shawn Rutledge <s@ecloud.org>
Date:   Fri Sep 6 12:32:11 2024 +0200

    Replace strnstr with strstr

    On Linux, strnstr would come from libbsd, not libc.
    Using strlen() defeated the purpose and made it slower anyway.

diff --git a/radio.c b/radio.c
index e03d1ed..dec3da4 100644
--- a/radio.c
+++ b/radio.c
@@ -291,9 +291,9 @@ void radio_validate_config(const char *filename) {

   // First, find out which radio it is.
   while (fgets(line, sizeof(line), conf)) {
-    if (strnstr(line, "Radio:", strlen(line))) {
+    if (strstr(line, "Radio:")) {
       for (i = 0; radio_tab[i].ident; i++) {
-        if (strnstr(line, radio_tab[i].ident, strlen(line))) goto found;
+        if (strstr(line, radio_tab[i].ident)) goto found;
       }
     }
   }

ra1nb0w commented on 2024-04-15 07:15 (UTC)

it doesn't build. check https://github.com/OpenRTX/dmrconfig/commit/bb8dda0e740673001a339acc5cec62f44652ddc5#comments

df8oe commented on 2023-12-28 18:31 (UTC)

Unable to build. Problem "undefined reference to `strnstr'" "

simonvik commented on 2020-07-08 06:20 (UTC)

Added.

<deleted-account> commented on 2020-07-07 19:42 (UTC)

Adding

CFLAGS="-fcommon" when editing PKGBUILD fixes the error mentioned.

simonvik commented on 2020-06-28 20:16 (UTC)

This is a GCC10 thing : https://gcc.gnu.org/gcc-10/porting_to.html

I will patch it later but if you want to build it now then you can add -fcommonto the CFLAGS in src/dmrconfig/Makefile

fkp commented on 2020-06-28 19:42 (UTC) (edited on 2020-06-28 19:47 (UTC) by fkp)

Does not link:

cc -g -o dmrconfig main.o util.o radio.o dfu-libusb.o uv380.o md380.o rd5r.o gd77.o hid.o serial.o d868uv.o dm1801.o hid-libusb.o -lusb-1.0 -ludev -pthread
usr/sbin/ld: util.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: radio.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: radio.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: radio.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: dfu-libusb.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: uv380.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: uv380.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: uv380.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: md380.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: md380.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: md380.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: rd5r.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: rd5r.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: rd5r.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: gd77.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: gd77.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: gd77.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: hid.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: serial.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: d868uv.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: d868uv.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: d868uv.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: dm1801.o:/home/user/git/dmrconfig/radio.h:147: multiple definition of `radio_progress'; main.o:/home/user/git/dmrconfig/radio.h:147: first defined here
usr/sbin/ld: dm1801.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
usr/sbin/ld: dm1801.o:/home/user/git/dmrconfig/radio.h:142: multiple definition of `radio_port'; main.o:/home/user/git/dmrconfig/radio.h:142: first defined here
usr/sbin/ld: hid-libusb.o:/home/user/git/dmrconfig/util.h:38: multiple definition of `trace_flag'; main.o:/home/user/git/dmrconfig/util.h:38: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:52: dmrconfig] Error 1

simonvik commented on 2019-10-21 15:23 (UTC)

@not_anonymous fixed.

not_anonymous commented on 2019-10-21 15:19 (UTC)

You can safely add 'aarch64' to the "arch=" field. Works fb om.