From fadushin@syr.edu  Sat Jan 15 02:24:19 2000
Received: from fadushin.ne.mediaone.net (fadushin.ne.mediaone.net [24.218.120.90])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id CAA02942
	for <prolog@swi.psy.uva.nl>; Sat, 15 Jan 2000 02:24:18 +0100 (MET)
Received: from syr.edu (localhost [127.0.0.1])
	by fadushin.ne.mediaone.net (8.9.3/8.9.3) with ESMTP id UAA26793
	for <prolog@swi.psy.uva.nl>; Fri, 14 Jan 2000 20:23:27 -0500
Sender: fadushin@fadushin.ne.mediaone.net
Message-ID: <387FCC0F.E88AC1B2@syr.edu>
Date: Fri, 14 Jan 2000 20:23:27 -0500
From: Fred Dushin <fadushin@syr.edu>
Organization: Adiron, LLC
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 ppc)
X-Accept-Language: en
MIME-Version: 1.0
To: prolog@swi.psy.uva.nl
Subject: [Fwd: Something wrong here with Prolog+JPL]
Content-Type: multipart/mixed;
 boundary="------------996BDF32F4AA1CB6C5FC0B29"

This is a multi-part message in MIME format.
--------------996BDF32F4AA1CB6C5FC0B29
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I meant to send this to the SWI list, in case this comes up elsewhere.
--------------996BDF32F4AA1CB6C5FC0B29
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: <387FCBBA.55427588@syr.edu>
Date: Fri, 14 Jan 2000 20:22:02 -0500
From: Fred Dushin <fadushin@syr.edu>
Organization: Adiron, LLC
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 ppc)
X-Accept-Language: en
MIME-Version: 1.0
To: Pascal Vaillant <Pascal.Vaillant@rz.hu-berlin.de>
Subject: Re: Something wrong here with Prolog+JPL
References: <Pine.LNX.4.05.10001141428230.5925-100000@torstrasse>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> I have a problem with SWI Prolog in relation to JPL, Fred Dushin's
> Java/SWI-Prolog interface package.
> 
> I installed JPL on my machine (Pentium + Linux) to command Prolog from
> Java programs. The package compiled correctly, but the test programs in
> the test or demo subdirectories always give this result:
> 
>  [PROLOG INTERNAL ERROR:
>          trapUndefined(): undefined: system:$undefined_procedure/4
>  [Switched to system mode: style_check(+dollar)]
>  PROLOG STACK:
>  ]
> 
>  Action?

I have not had this problem with pl-3.2.9.  I would not be surprised if this has
something to do with the other problems your report about libreadline; JPL's
make files are pretty dumb about configurations.  In fact, one of the things I
need to do still is use autoconf to make some configure scripts.

I have the following libreadline rpms on my (PowerPC) linux system:

readline-2.2.1-5
readline-devel-2.2.1-5

Perhaps you have a version that is out of date.  With the version of libreadline
I have, I don't seem to have any problems with pl and libreadline behavior, but
I have had this problem before on other RedHat (5.2) systems for intel boxes. 
The PowerPC versions of libraries seem to be more up to date than other
systems.  Funny, that, being such an obscure platform.

As an alternative, maybe you should compile both SWI and JPL without libreadline
support, and see if that resolves these issues.  You'll have to rebuild the SWI
static library, since the jpl shared library that gets created drags in all of
libpl.a (except for stuff that references the standard C library)

Sorry I can't be more specific.

--------------996BDF32F4AA1CB6C5FC0B29--

