[daip] Installing 31DEC26 on Debian 13 {External}
McIntyre, Vincent (S&A, Marsfield)
Vincent.Mcintyre at csiro.au
Wed Feb 18 23:40:47 EST 2026
Hi there
I am writing to get a bit of help with installing 31DEC26 on Debian 13,
which was released in Aug 2025.
The AIPS binary distribution (Linux 64-bit) wants libreadline7, but this is
not available in this release of Debian (libreadline8 was introduced
in 2020 and is now the default).
First question: is there a binary distribution that uses libreadline8?
I decided to try a TEXT install. I managed to get everything to build
but it was a struggle so I thought I should write in to get some advice.
Second question: are some tweaks needed?
The issues I bumped into are enumerated below.
Happy to hear any advice.
In the end I was able to RUN FILAP, RUN POPSGN and RUN SETPAR, and start aips.
I have not tried loading data or displaying images yet.
Kind regards
Vince
1. Building libreadline5 fails
I won't go into details here but worked around this by setting
READLINE = /usr/lib/x86_64-linux-gnu/libreadline.so
in .AIPSRC. I don't the bundled source will compile on this platform.
2. XAS compilation
The system compiler is gcc 14 (and gfortran 14).
The default for this compiler is -fno-common and this
caused a lot of 'multiple definition of <foo>' errors,
I think because all the .c modules #include xas.h.
To get the XAS code to compile I made this change to the Makefile
--- 31DEC26/Y/SERVERS/XAS/Makefile.orig 2026-02-18 11:08:58.628716565 +1100
+++ 31DEC26/Y/SERVERS/XAS/Makefile 2026-02-18 15:48:51.129168683 +1100
@@ -223,7 +223,8 @@
# Do not alter anything below this line
#--------------------------------------------------------------------
-CCOPTS = $(INCDIRS) $(OSOPTS) $(LOCALOPTS) -c
+FCOMMON = -fcommon
+CCOPTS = $(INCDIRS) $(FCOMMON) $(OSOPTS) $(LOCALOPTS) -c
OBJECTS = xas.o image.o comm.o cursor.o screen.o init.o colors.o catalog.o
@@ -239,7 +240,7 @@
@ echo 'First make xas, then make install, then make clean'
xas : $(OBJECTS)
- $(CC) $(LIBDIRS) $(LOCALOPTS) $(OSOPTS) $(OBJECTS) -lXext -lX11 -lm $(STDLIBS) -o xas
+ $(CC) $(LIBDIRS) $(FCOMMON) $(LOCALOPTS) $(OSOPTS) $(OBJECTS) -lXext -lX11 -lm $(STDLIBS) -o xas
xas.o : xas.c xas.h
I also had to change init.c to resolve this error
error: type defaults to ‘int’ in declaration of ‘XLink’ [-Wimplicit-int]
--- 31DEC26/Y/SERVERS/XAS/init.c.orig
+++ 31DEC26/Y/SERVERS/XAS/init.c
@@ -32,7 +32,7 @@
#include "xas.h"
#include <math.h>
-extern XLink;
+extern int XLink;
/*--------------------------------------------------------------------*/
3. INSTEP2 failed on two modules
APL/DEV/UNIX/ZTKOP2.C (implicit declaration of 'ioctl' and 'sprintf')
APL/DEV/ZTQSP2.FOR (redefintions of 'struct termio' and 'struct winsize')
I got them to compile with the following changes
--- /opt/aips/31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C.orig 2026-02-18 16:28:55.248382907 +1100
+++ /opt/aips/31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C 2026-02-18 16:38:50.598256127 +1100
@@ -1,5 +1,7 @@
#define Z_tqsp2__
#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
#if __STDC__
void ztqsp2_(float *doall, int *mslev, int *nproc)
ncarina-286% diff -wbu /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C.orig /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C
--- /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C.orig 2002-01-15 01:30:41.000000000 +1100
+++ /opt/aips/31DEC26/APL/DEV/UNIX/ZTKOP2.C 2026-02-18 16:41:59.161587380 +1100
@@ -14,9 +14,10 @@
#include <netinet/in.h>
#include <netdb.h>
#include <sys/stat.h>
+#include <sys/ioctl.h>
#include <AIPSPROTO.H>
#ifdef __linux__
-#include <linux/termios.h>
+#include <termios.h>
#endif
#if __STDC__
and
#if __STDC__
--- 31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C.orig 2026-02-18 16:28:55.248382907 +1100
+++ 31DEC26/APL/DEV/UNIX/BELL/LNX64/ZTQSP2.C 2026-02-18 16:38:50.598256127 +1100
@@ -1,5 +1,7 @@
#define Z_tqsp2__
#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
#if __STDC__
void ztqsp2_(float *doall, int *mslev, int *nproc)
4. Missing 'libbsd' package causes a link-time failure
This was fixed by installing 'libbsd-dev'.
Is this listed as a dependency any place? Should autoconf notice?
System details below. This is just a test install.
$ cat ~/AIPSRC
# AIPSRC created by install.pl on 2026.02.18:16:46:12
#
LAST_VERSION = 31DEC26
AIPS_ROOT = /opt/aips
GROUP = at-aipsprog
GROUPWRITE = YES
INSTALL_FROM_CD = NO
INSTALL_FROM_NET = NO
ARCH = LNX64
IS64 = YES
SITE = MYSITE
THISHOST = LOCALHOST
HOSTS = "LOCALHOST"
PRINTERS = ""
DATA_AREAS = "/opt/aips/DATA/LOCALHOST_1:NONE"
TAPE_DRIVES = ""
TPHOSTS = "127.0.0.1"
PRINTMED = A4
FORT = /usr/bin/gfortran
FORTOPT = -fno-automatic -Wunused -Wuninitialized -Wmaybe-uninitialized -finit-local-zero -m64 -fimplicit-none
CCOM = /usr/bin/gcc
CCOMOPT = -O3 -fomit-frame-pointer -funroll-loops -I/opt/aips/31DEC26/INC -D_FILE_OFFSET_BITS=64 -DHAVE_LINUX_GLIBC
LINK = /usr/bin/gfortran
READLINE = /usr/lib/x86_64-linux-gnu/libreadline.so
DOTWOLIB = NO
DOWNLOADED = 2026.02.17:23:55:13
UNPACKED = Unpacked in /opt/aips at Wed Feb 18 10:55:33 2026
#---- End of AIPSRC file
$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/14/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
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
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.0 (Debian 14.2.0-19)
$ ldd --version
ldd (Debian GLIBC 2.41-12+deb13u1) 2.41
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
$ make -v
GNU Make 4.4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
More information about the Daip
mailing list