I was finally able to get xlog 2.0.22 to compile on my Debian Buster based 
32-bit PC.

I had to change the compiler flags (CFLAGS).

In other words, I had to do the following:

./configure CFLAGS="-Wall -Wunused -Wno-unused-but-set-variable"
make
sudo make install

I took these compiler flags (CFLAGS) from the Debian Buster source package for 
xlog 2.0.14.  This package also set the LDFLAGS as follows:

LDFLAGS += -Wl,-z,defs -Wl,--as-needed

But it does not seem that it is necessary to set the LDFLAGS to get XLog 2.0.22 
to compile successfully.  I did not set the LDFLAGS.

Developers -- Please consider updating the INSTALL file inside the xlog source 
tarball accodingly so others will not have to deal with this issue.

73's
Rob
VA2FB

________________________________
From: Xlog-discussion <xlog-discussion-bounces+amtor=hotmail....@nongnu.org> on 
behalf of Robert Kennedy <am...@hotmail.com>
Sent: March 18, 2021 3:40 PM
To: xlog-discussion@nongnu.org <xlog-discussion@nongnu.org>
Subject: Re: Unable to compile XLog 2.0.22 on Debian Buster

I tried running in the terminal:

sudo apt-get build-dep xlog

Nothing got installed.  So I should all the dependencies for xlog are already 
be installed -- (at least for version 2.0.14 which is the latest version in the 
Debian Buster repos).  I do not think that any of the dependencies have changed 
from version 2.0.14 to 2.0.22.

But when I try to compile the XLog 2.0.22 code, the build still fails with the 
same error.

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.
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:370: adif3.o] Error 1
make[2]: Leaving directory 
'/home/user/Downloads/xlog/Source/Extracted/xlog-2.0.22/src/logfile'
make[1]: *** [Makefile:600: all-recursive] Error 1
make[1]: Leaving directory 
'/home/user/Downloads/xlog/Source/Extracted/xlog-2.0.22/src'
make: *** [Makefile:381: all-recursive] Error 1

P.S.  I know that the source for version 2.0.22 will compile on some systems.  
I was able to compile XLog 2.0.22 on my old 64-bit Mac running Lion 10.7.5 
without any issues.  Perhaps the issue lies with 32-bit builds?

Any ideas?

Rob
VA2FB

________________________________
From: Xlog-discussion <xlog-discussion-bounces+amtor=hotmail....@nongnu.org> on 
behalf of Robert Kennedy <am...@hotmail.com>
Sent: March 18, 2021 1:23 PM
To: xlog-discussion@nongnu.org <xlog-discussion@nongnu.org>
Subject: Unable to compile XLog 2.0.22 on Debian Buster

I am running Anti-X linux on an 32-bit PC.  Anti-X linux uses the Debian Buster 
repos.

I installed XLog 2.0.14 from the Debian Buster repos.  XLog runs fine.

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.

I made sure that the following Debian Buster packages were installed first:

  *   libhamlib2  (version 3.3-5)
  *   libhamlib-dev
  *   gcc  (version 8.3.0-6)
  *   pkg-config
  *   libglib2.0-dev
  *   libgtk2.0-dev
  *   libusb1.0-0-dev
  *   libcanberra-gtk-module

"./ configure" runs fine without any errors.


But when I run "make" to compile the code, I get the following error:


gcc -DPACKAGE_NAME=\"xlog\" -DPACKAGE_TARNAME=\"xlog\" 
-DPACKAGE_VERSION=\"2.0.22\" -DPACKAGE_STRING=\"xlog\ 2.0.22\" 
-DPACKAGE_BUGREPORT=\"kb1...@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.
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:370: adif3.o] Error 1
make[2]: Leaving directory 
'/home/user/Downloads/xlog/Source/Extracted/xlog-2.0.22/src/logfile'
make[1]: *** [Makefile:600: all-recursive] Error 1
make[1]: Leaving directory 
'/home/user/Downloads/xlog/Source/Extracted/xlog-2.0.22/src'
make: *** [Makefile:381: all-recursive] Error 1

Any ideas on how to resolve the error and get XLog 2.0.22 to compile on my 
Debian Buster 32-bit PC?

Rob

Reply via email to