gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

readline on CentOs


From: Camm Maguire
Subject: readline on CentOs
Date: Thu, 10 Nov 2022 12:17:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

[ We still seem to be havingsome email problems....]

Is this the same issue we went through last August?  Could you please
try this patch, run autoconf, and test again?

modified   gcl/configure.in
@@ -1750,7 +1750,8 @@ if test "$enable_readline" != "no" ; then
                                        
[AC_DEFINE(HAVE_DECL_RL_COMPLETION_MATCHES,1,[have readline completion matches])
                                         
AC_DEFINE(HAVE_RL_COMPENTRY_FUNC_T,1,[have readline completion matches])])
                                 TLIBS="$TLIBS -lreadline" #some machines don't 
link this, e.g. Slackware
-                                RL_OBJS=gcl_readline.o]))
+                                RL_OBJS=gcl_readline.o]),
+                                [],[AC_INCLUDES_DEFAULT([#include <stdio.h>])])
 fi
 
 AC_SUBST(RL_OBJS)


gcl-devel-bounces@gnu.org writes:

> The attached message has been automatically discarded.
>
> From: "Viktor T. Toth" <vttoth@vttoth.com>
> Subject: RE: [Maxima-discuss] GCL Version_2_6_13pre125
> To: "'Camm Maguire'" <camm@maguirefamily.org>, <gcl-devel@gnu.org>
> Cc: <maxima-discuss@lists.sourceforge.net>, <camm@debian.org>
> Date: Wed, 9 Nov 2022 01:16:11 -0500 (1 day, 8 hours, 2 seconds ago)
>
> Camm,
>
> Thanks! Pre126 appears to build Maxima fine (haven't run all the tests yet), 
> however, it seems that on my CentOS 7.9 box I lost readline compatibility. 
> Same config as I used with pre123 (which had readline), but now the readline 
> check reports an error:
>
> $ ./configure --enable-ansi --enable-readline --enable-tkconfig=/usr/lib64 
> --enable-tclconfig=/usr/lib64
>
> [...]
>
> configure:8525: checking for readline/readline.h
> configure:8525: gcc -std=gnu11 -c -fsigned-char -pipe -fcommon 
> -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic 
> -Wall -Wno-empty-body -Wno-unused-but-set-variable   conftest.c >&5
> In file included from /usr/include/readline/readline.h:35:0,
>                  from conftest.c:84:
> /usr/include/readline/rltypedefs.h:64:28: error: unknown type name 'FILE'
>  typedef int rl_getc_func_t PARAMS((FILE *));
>
> and several similar errors afterwards.
>
>
> Viktor
>
>
>
>
>
>
>> -----Original Message-----
>> From: Camm Maguire <camm@maguirefamily.org>
>> Sent: Tuesday, November 8, 2022 3:59 PM
>> To: Robert Dodier <robert.dodier@gmail.com>; camm@maguirefamily.org; 
>> gcl-devel@gnu.org
>> Cc: <maxima-discuss@lists.sourceforge.net> 
>> <maxima-discuss@lists.sourceforge.net>; camm@debian.org
>> Subject: [Maxima-discuss] GCL Version_2_6_13pre125
>> 
>> Greetings!
>> 
>> Fresh tag, git banner reporting, equalp hashtables, fixed only bogus nan
>> comparison I could find, fixed mod 2 bug reported in maxima, large
>> memory model support on amd64, ansi in-package support.
>> 
>> This is all I know right now that should go in for the tarball.  Please
>> play with it if desired and let me know if there are any showstoppers.
>> If anyone has a macosx or cygwin environment for a build, please let me
>> know.  Thanks for the helpful suggestion about a vmware image -- my
>> current understanding is that one still needs to purchase the media for
>> the closed source system, but please correct me if I am wrong.
>> 
>> Robert Dodier <robert.dodier@gmail.com> writes:
>> 
>> > On Fri, Nov 4, 2022 at 10:32 AM Camm Maguire <camm@maguirefamily.org> 
>> > wrote:
>> >
>> > I reviewed the bug reports and found a few more. Here is a link to see
>> > bug reports which have been tagged with "gcl":
>> > https://sourceforge.net/p/maxima/bugs/search/?q=labels:%22gcl%22
>> >
>> > Just to be clear, these are bug reports which have been explicitly
>> > tagged "gcl". There are other bug reports which mention GCL, but,
>> > after having reviewed them, I don't believe they are specifically
>> > about GCL.
>> >
>> > I think these bug reports are all medium to low priority, although I
>> > would certainly be glad if they get resolved. The one which seems most
>> > pressing is:
>> > https://sourceforge.net/p/maxima/bugs/1234/
>> > which is about non-ASCII characters in a folder name on Windows; I
>> > seem to recall more than one user has bumped into that. I don't know
>> > the status of that at this point.
>> 
>> Looking these over too.  I could really use some reproducible input
>> (which I noticed you requested but apparently have not received) for the
>> pathname special character report, and the SIGPIPE report (I requested
>> on savannah with no reply).  The NaN report gives false now as you note,
>> 2.0^1024.1 still gives the inf for testing purposes.  I think the false
>> is in simp-expt in maxima, but haven't got further.  Most of his results
>> had been fixed some time ago.  Found one remaining in interpreted code
>> only which should now be closed, see transcript below.  The dribble
>> error only omits error header output (which is sent to a different file
>> descriptor) -- all newlines are identical addressing the original
>> complaint.  I can get the error header in there too if this is
>> important.
>> 
>> >
>> >> > The problems around GCL + Maxima stem from the capabilities (ASDF,
>> >> > Unicode, etc) which are present in other implementations and not GCL.
>> >> > It's not much about conditionalizations.
>> >>
>> >> OK, thanks for that.  I'll put this on the back burner then.  Might I
>> >> create a git branch for this purpose?
>> >
>> > I think one of the anonymous ones was reported by me, not that it
>> > matters too much. Also #47404 is a bona fide bug; all comparisons with
>> > NaN are false, except NaN != NaN, which is true, according to IEEE
>> > 754. The spec itself is proprietary and not available to casual
>> > readers, to the best of my knowledge, but summaries are all over the
>> > web, including many statements about comparisons with NaN.
>> >
>> > best,
>> >
>> 
>> =============================================================================
>> >(setq si::*print-nans* t)
>> 
>> T
>> 
>> >(setq a (exp 10000.0))
>> 
>> #<inf>
>> 
>> >(setq b (- a) c (- a a))
>> 
>> #<-nan>
>> 
>> >(<= c c)
>> 
>> NIL
>> 
>> >(>= c c)
>> 
>> NIL
>> 
>> >(> c c)
>> 
>> NIL
>> 
>> >(< c c)
>> 
>> NIL
>> 
>> >(= c c)
>> 
>> NIL
>> 
>> >(/= c c)
>> 
>> T
>> 
>> >(dolist (l '(< <= = >= > /=)) (print (list (funcall l c c) (funcall 
>> >(compile nil `(lambda (x y) (declare (long-
>> float x y)) (,l x y))) c c))))
>> 
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x61f100 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x5badc0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x554a40 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x5cfe50 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f2f8c0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f412a0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (T T)
>> NIL
>> 
>> >(setq c a)
>> 
>> #<inf>
>> 
>> >(dolist (l '(< <= = >= > /=)) (print (list (funcall l c c) (funcall 
>> >(compile nil `(lambda (x y) (declare (long-
>> float x y)) (,l x y))) c c))))
>> 
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f52c90 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f64670 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (T T)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f76050 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (T T)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f87a40 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (T T)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2f99420 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2faae00 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> NIL
>> 
>> >(setq c (- a a))
>> 
>> #<-nan>
>> 
>> >(setq cf (float c 0.0s0))
>> 
>> #<-nan>
>> 
>> >(type-of cf)
>> 
>> SHORT-FLOAT
>> 
>> >(dolist (l '(< <= = >= > /=)) (print (list (funcall l cf cf) (funcall 
>> >(compile nil `(lambda (x y) (declare (short-
>> float x y)) (,l x y))) cf cf))))
>> 
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2fbc7f0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2fce1d0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2fdfbb0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x2ff15a0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x3002f80 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x3014960 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (T T)
>> NIL
>> 
>> >(dolist (l '(< <= = >= > /=)) (print (list l (funcall l cf cf) (funcall 
>> >(compile nil `(lambda (x y) (declare
>> (short-float x y)) (,l x y))) cf cf))))
>> 
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x7e9e3d0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (< NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x7eafd60 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (<= NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x7ec1740 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (= NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x7ed3130 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (>= NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x7ee4b10 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (> NIL NIL)
>> Compiling /tmp/gazonk_94832_0.lsp.
>> End of Pass 1.
>> End of Pass 2.
>> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
>> Finished compiling /tmp/gazonk_94832_0.o.
>> ;; Loading #p"/tmp/gazonk_94832_0.o"
>> start address -T 0x7ef64f0 ;; Finished loading #p"/tmp/gazonk_94832_0.o"
>> 
>> (/= T T)
>> NIL
>> 
>> >
>> =============================================================================
>> 
>> 
>> > Robert
>> >
>> >
>> >
>> 
>> --
>> Camm Maguire                                     camm@maguirefamily.org
>> ==========================================================================
>> "The earth is but one country, and mankind its citizens."  --  Baha'u'llah
>> 
>> 
>> _______________________________________________
>> Maxima-discuss mailing list
>> Maxima-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
>
>
> ----------
>

-- 
Camm Maguire                                        camm@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]