It's very clear that the /usr/lib/maxima/5.17.1/binary-gcl/maxima from the Debian binary works, while the one from the Ubuntu binary does not (I can copy just this file from one package or the other, do sqrt(4), and the error only shows up with the Ubuntu one). I compared the source packages from both Debian and Ubuntu, with all patches, and all meaningful files are completely identical. I believe the difference may be with the compile options, since nothing else appears different between the two. From looking at the binary, I can tell that the Ubuntu one was compiled with -D_FORTIFY_SOURCE=2, while the Debian one was compiled without this (-D_FORTIFY_SOURCE=0).
Unfortunately, gcl keeps segfaulting when I try to compile maxima, so I am unable to test whether this compile flag change would fix the problem. Perhaps someone else can get the compile to work and test this.
It's very clear that the /usr/lib/ maxima/ 5.17.1/ binary- gcl/maxima from the Debian binary works, while the one from the Ubuntu binary does not (I can copy just this file from one package or the other, do sqrt(4), and the error only shows up with the Ubuntu one). I compared the source packages from both Debian and Ubuntu, with all patches, and all meaningful files are completely identical. I believe the difference may be with the compile options, since nothing else appears different between the two. From looking at the binary, I can tell that the Ubuntu one was compiled with -D_FORTIFY_ SOURCE= 2, while the Debian one was compiled without this (-D_FORTIFY_ SOURCE= 0).
Unfortunately, gcl keeps segfaulting when I try to compile maxima, so I am unable to test whether this compile flag change would fix the problem. Perhaps someone else can get the compile to work and test this.