logtalk3
logtalk3 copied to clipboard
GNU Prolog 1.4.5 predicate existence errors at Logtalk startup
Using the Logtalk integration script for GNU Prolog results in predicate existence errors at Logtalk startup:
$ gplgt
...
warning: /usr/share/logtalk/core/core.pl:25087:
user directive caused exception:
error(existence_error(procedure,'$lgt_default_flag'/0),'$lgt_cache_compiler_flags'/0)
This bug can re recognized by the error reporting a predicate indicator with zero arity. This error occurs with GNU Prolog 1.4.5 Linux installations performed using tools such as apt and yum. Those installations are broken. Compiling GNU Prolog from sources is known to fix the problem (which is unrelated to Logtalk ands also affects any Prolog program that the user attempts to compile and run).
Fixed in GNU Prolog 1.5.0.