xlog-discussion
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to compile XLog 2.0.22 on Debian Buster


From: Greg Troxel
Subject: Re: Unable to compile XLog 2.0.22 on Debian Buster
Date: Fri, 19 Mar 2021 16:33:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

Robert Kennedy <amtor@hotmail.com> writes:

Robert Kennedy <amtor@hotmail.com> writes:

> But I want to upgrade to the latest verson of Xlog - version 2.0.22.
> So I am trying to compile XLog 2.0.22 from source.

When I read your message I did not have version numbers paged in and
totally failed to recognize this as a new number.  I had not absorbed
that there was a new release.

Anyway, 2.0.22 builds with pkgsrc on NetBSD 9.  Maybe it shouldn't
because

> gcc -DPACKAGE_NAME=\"xlog\" -DPACKAGE_TARNAME=\"xlog\" 
> -DPACKAGE_VERSION=\"2.0.22\" -DPACKAGE_STRING=\"xlog\ 2.0.22\" 
> -DPACKAGE_BUGREPORT=\"kb1oiq@arrl.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xlog\" 
> -DVERSION=\"2.0.22\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_SYS_IPC_H=1 -DHAVE_SYS_SHM_H=1 -DHAVE_STRPTIME=1 -DHAVE_STRCHR=1 
> -DHAVE_INDEX=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I.  
> -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include   -g -O2 
> -Werror -Wno-deprecated-declarations -Wall -Wno-stringop-truncation 
> -Wno-unused-but-set-variable -MT adif3.o -MD -MP -MF .deps/adif3.Tpo -c -o 
> adif3.o adif3.c
> adif3.c: In function ‘adif_qso_append’:
> adif3.c:527:4: error: ‘strncpy’ source argument is the same as destination 
> [-Werror=restrict]
>     strncpy (qfield, q[fld], qfield_len);  // Save the string from start to 
> space, not including the space.
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

POSIX says that strncpy with overlapping arguments is Undefined
Behavior:

https://pubs.opengroup.org/onlinepubs/9699919799/functions/strncpy.html

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]