|
From: | Robert Kennedy |
Subject: | Re: Compile failure for Xlog-2.0.22 ... |
Date: | Wed, 7 Apr 2021 13:46:36 +0000 |
I had the same error trying to build XLog 2.0.22 on Anti-X Linux (which is based on Debian Buster).
I was finally able to get
xlog 2.0.22 to compile on my Debian Buster based 32-bit PC after I changed 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 bother to set the LDFLAGS.
Of course, it would be better if the source code was patched so one would not need to use "-Wall" etc compiler flags etc. I suspect that there is a bug here that needs to be fixed.
73's
Rob
VA2FB
From: Xlog-discussion <xlog-discussion-bounces+amtor=hotmail.com@nongnu.org> on behalf of gliderpilot@protonmail.com <gliderpilot@protonmail.com>
Sent: April 7, 2021 8:17 AM To: xlog-discussion@nongnu.org <xlog-discussion@nongnu.org> Subject: Compile failure for Xlog-2.0.22 ... Hello Xlog people,
I was able to successfully build and run Xlog-2.0.21 on Ubuntu 20.04 without any issues, however the latest build 2.0.-22 fails during the make with the following (see below). Any suggestions? 73's de Oscar (N6PAZ).
_64-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
In file included from /usr/include/string.h:495,
from adif3.c:34:
In function ‘strncpy’,
inlined from ‘adif_qso_append’ at adif3.c:527:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ source argument is the same as destination [-Werror=restrict]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:370: adif3.o] Error 1
make[2]: Leaving directory '/home/oalonso/Downloads/xlog-2.0.22/src/logfile'
make[1]: *** [Makefile:600: all-recursive] Error 1
make[1]: Leaving directory '/home/oalonso/Downloads/xlog-2.0.22/src'
make: *** [Makefile:381: all-recursive] Error 1
Sent from
ProtonMail, encrypted email based in Switzerland.
|
[Prev in Thread] | Current Thread | [Next in Thread] |