<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I have made your suggested changes to XAS.SHR and the 2 Z routines.  Our old LNX64 accepted them okay.  I put the</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
-fcommon as a cc option for LNX64 and ARM.  I moved these minor changes to 31DEC25 also.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Many thanks</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Eric</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Daip <daip-bounces@listmgr.nrao.edu> on behalf of McIntyre, Vincent (S&A, Marsfield) via Daip <daip@listmgr.nrao.edu><br>
<b>Sent:</b> Wednesday, February 18, 2026 9:40 PM<br>
<b>To:</b> daip <daip@nrao.edu><br>
<b>Subject:</b> [daip] Installing 31DEC26 on Debian 13 {External}</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi there<br>
<br>
I am writing to get a bit of help with installing 31DEC26 on Debian 13,<br>
which was released in Aug 2025.<br>
<br>
The AIPS binary distribution (Linux 64-bit) wants libreadline7, but this is<br>
not available in this release of Debian (libreadline8 was introduced<br>
in 2020 and is now the default).<br>
<br>
First question: is there a binary distribution that uses libreadline8?<br>
<br>
I decided to try a TEXT install. I managed to get everything to build<br>
but it was a struggle so I thought I should write in to get some advice.<br>
<br>
Second question: are some tweaks needed?<br>
The issues I bumped into are enumerated below.<br>
Happy to hear any advice.<br>
<br>
In the end I was able to RUN FILAP, RUN POPSGN and RUN SETPAR, and start aips.<br>
I have not tried loading data or displaying images yet.<br>
<br>
Kind regards<br>
Vince<br>
<br>
<br>
1. Building libreadline5 fails<br>
<br>
   I won't go into details here but worked around this by setting<br>
<br>
      READLINE = /usr/lib/x86_64-linux-gnu/libreadline.so<br>
<br>
   in .AIPSRC. I don't the bundled source will compile on this platform.<br>
<br>
2. XAS compilation<br>
<br>
   The system compiler is gcc 14 (and gfortran 14).<br>
   The default for this compiler is -fno-common and this<br>
   caused a lot of 'multiple definition of <foo>' errors,<br>
   I think because all the .c modules #include xas.h.<br>
<br>
   To get the XAS code to compile I made this change to the Makefile<br>
<br>
--- 31DEC26/Y/SERVERS/XAS/Makefile.orig       2026-02-18 11:08:58.628716565 +1100<br>
+++ 31DEC26/Y/SERVERS/XAS/Makefile    2026-02-18 15:48:51.129168683 +1100<br>
   @@ -223,7 +223,8 @@<br>
 #    Do not alter anything below this line<br>
 #--------------------------------------------------------------------<br>
<br>
-CCOPTS = $(INCDIRS) $(OSOPTS) $(LOCALOPTS) -c<br>
+FCOMMON = -fcommon<br>
+CCOPTS = $(INCDIRS) $(FCOMMON) $(OSOPTS) $(LOCALOPTS) -c<br>
<br>
 OBJECTS = xas.o image.o comm.o cursor.o screen.o init.o colors.o catalog.o<br>
<br>
@@ -239,7 +240,7 @@<br>
        @ echo 'First make xas, then make install, then make clean'<br>
<br>
 xas : $(OBJECTS)<br>
-       $(CC) $(LIBDIRS) $(LOCALOPTS) $(OSOPTS) $(OBJECTS) -lXext -lX11 -lm $(STDLIBS) -o xas<br>
+       $(CC) $(LIBDIRS) $(FCOMMON) $(LOCALOPTS) $(OSOPTS) $(OBJECTS) -lXext -lX11 -lm $(STDLIBS) -o xas<br>
<br>
 xas.o   : xas.c    xas.h<br>
<br>
<br>
<br>
   I also had to change init.c to resolve this error<br>
     error: type defaults to ‘int’ in declaration of ‘XLink’ [-Wimplicit-int]<br>
<br>
--- 31DEC26/Y/SERVERS/XAS/init.c.orig<br>
+++ 31DEC26/Y/SERVERS/XAS/init.c<br>
@@ -32,7 +32,7 @@<br>
 #include "xas.h"<br>
 #include <math.h><br>
 <br>
-extern XLink;<br>
+extern int XLink;<br>
 <br>
 /*--------------------------------------------------------------------*/<br>
 <br>
<br>
<br>
<br>
3. INSTEP2 failed on two modules<br>
<br>
   APL/DEV/UNIX/ZTKOP2.C (implicit declaration of 'ioctl' and 'sprintf')<br>
   APL/DEV/ZTQSP2.FOR    (redefintions of 'struct termio' and 'struct winsize')<br>
<br>
   I got them to compile with the following changes<br>
<br>
--- /opt/aips/31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C.orig     2026-02-18 16:28:55.248382907 +1100<br>
+++ /opt/aips/31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C  2026-02-18 16:38:50.598256127 +1100<br>
@@ -1,5 +1,7 @@<br>
 #define Z_tqsp2__<br>
 #include <stdlib.h><br>
+#include <stdio.h><br>
+#include <string.h><br>
<br>
 #if __STDC__<br>
    void ztqsp2_(float *doall, int *mslev, int *nproc)<br>
ncarina-286% diff -wbu /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C.orig /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C<br>
--- /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C.orig        2002-01-15 01:30:41.000000000 +1100<br>
+++ /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C     2026-02-18 16:41:59.161587380 +1100<br>
@@ -14,9 +14,10 @@<br>
 #include <netinet/in.h><br>
 #include <netdb.h><br>
 #include <sys/stat.h><br>
+#include <sys/ioctl.h><br>
 #include <AIPSPROTO.H><br>
 #ifdef __linux__<br>
-#include <linux/termios.h><br>
+#include <termios.h><br>
 #endif<br>
<br>
 #if __STDC__<br>
<br>
and<br>
<br>
 #if __STDC__<br>
<br>
--- 31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C.orig     2026-02-18 16:28:55.248382907 +1100<br>
+++ 31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C  2026-02-18 16:38:50.598256127 +1100<br>
@@ -1,5 +1,7 @@<br>
 #define Z_tqsp2__<br>
 #include <stdlib.h><br>
+#include <stdio.h><br>
+#include <string.h><br>
 <br>
 #if __STDC__<br>
    void ztqsp2_(float *doall, int *mslev, int *nproc)<br>
<br>
<br>
4. Missing 'libbsd' package causes a link-time failure<br>
<br>
   This was fixed by installing 'libbsd-dev'.<br>
<br>
   Is this listed as a dependency any place? Should autoconf notice?<br>
<br>
<br>
<br>
System details below. This is just a test install.<br>
<br>
$ cat ~/AIPSRC<br>
# AIPSRC created by install.pl on 2026.02.18:16:46:12<br>
#<br>
LAST_VERSION = 31DEC26<br>
AIPS_ROOT = /opt/aips<br>
GROUP = at-aipsprog<br>
GROUPWRITE = YES<br>
INSTALL_FROM_CD = NO<br>
INSTALL_FROM_NET = NO<br>
ARCH = LNX64<br>
IS64 = YES<br>
SITE = MYSITE<br>
THISHOST = LOCALHOST<br>
HOSTS = "LOCALHOST"<br>
PRINTERS = ""<br>
DATA_AREAS = "/opt/aips/DATA/LOCALHOST_1:NONE"<br>
TAPE_DRIVES = ""<br>
TPHOSTS = "127.0.0.1"<br>
PRINTMED = A4<br>
FORT = /usr/bin/gfortran<br>
FORTOPT = -fno-automatic -Wunused -Wuninitialized -Wmaybe-uninitialized -finit-local-zero -m64 -fimplicit-none<br>
CCOM = /usr/bin/gcc<br>
CCOMOPT = -O3 -fomit-frame-pointer -funroll-loops -I/opt/aips/31DEC26/INC -D_FILE_OFFSET_BITS=64 -DHAVE_LINUX_GLIBC<br>
LINK = /usr/bin/gfortran<br>
READLINE = /usr/lib/x86_64-linux-gnu/libreadline.so<br>
DOTWOLIB = NO<br>
DOWNLOADED = 2026.02.17:23:55:13<br>
UNPACKED = Unpacked in /opt/aips at Wed Feb 18 10:55:33 2026<br>
<br>
#---- End of AIPSRC file<br>
<br>
$ gfortran -v<br>
Using built-in specs.<br>
COLLECT_GCC=gfortran<br>
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/14/lto-wrapper<br>
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa<br>
OFFLOAD_TARGET_DEFAULT=1<br>
Target: x86_64-linux-gnu<br>
Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-19' --with-bugurl=file:///usr/share/doc/gcc-14/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-14
 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto
 --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/reproducible-path/gcc-14-14.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/reproducible-path/gcc-14-14.2.0/debian/tmp-gcn/usr
 --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=3<br>
Thread model: posix<br>
Supported LTO compression algorithms: zlib zstd<br>
gcc version 14.2.0 (Debian 14.2.0-19)<br>
<br>
$ ldd --version<br>
ldd (Debian GLIBC 2.41-12+deb13u1) 2.41<br>
Copyright (C) 2024 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions.  There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
Written by Roland McGrath and Ulrich Drepper.<br>
<br>
$ make -v<br>
GNU Make 4.4.1<br>
Built for x86_64-pc-linux-gnu<br>
Copyright (C) 1988-2023 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.<br>
<br>
<br>
<br>
_______________________________________________<br>
Daip mailing list<br>
Daip@listmgr.nrao.edu<br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/daip">https://listmgr.nrao.edu/mailman/listinfo/daip</a><br>
</div>
</span></font></div>
</body>
</html>