From pascal@rz.hu-berlin.de  Tue Feb  1 01:02:39 2000
Received: from suncom.rz.hu-berlin.de (suncom.rz.hu-berlin.de [141.20.1.31])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id BAA29411
	for <prolog@swi.psy.uva.nl>; Tue, 1 Feb 2000 01:02:39 +0100 (MET)
Received: from localhost.rz.hu-berlin.de (pascal@ppp196-140.rz.hu-berlin.de [141.20.196.140])
	by suncom.rz.hu-berlin.de (8.9.3/8.9.3) with ESMTP id BAA18978
	for <prolog@swi.psy.uva.nl>; Tue, 1 Feb 2000 01:02:12 +0100 (MET)
Received: (from pascal@localhost)
	by localhost (8.8.8/8.8.8/Debian/GNU) id BAA02360;
	Tue, 1 Feb 2000 01:03:03 +0100
Date: Tue, 1 Feb 2000 00:03:02 +0000 (GMT)
From: Pascal Vaillant <Pascal.Vaillant@rz.hu-berlin.de>
To: Prolog Mailing List <prolog@swi.psy.uva.nl>
Subject: Are you SunOS ld.so freaks (JPL + SWI again!)
Message-ID: <Pine.LNX.4.05.10001312359210.2342-100000@ppp196-140.rz.hu-berlin.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by swi.psy.uva.nl id BAA29411



Dear all,

Curiouser and curiouser, like Alice said in Wonderland: I
have now tried to port JPL to SunOS 4.1 (to show something
to my boss).

I find a port of JDK 1.1 (.8, I think) for SunOS 4 on the
web (Keith White, University of Ottawa, keep the word).
Until now, everything fine.

JPL's makefile is not quite directly usable on SunOS (if
life was so simple :-). Never mind, I can type the compiling
and linking commands step by step...
  
But at one point something really goes wrong: the linking
step of libjpl.so. The linking options of SunOS are not
exactly the same as of Linux, too, so first I get rid of
-soname jpl.so (never mind, the file name would be enough).
  
But then when I link with the libraries indicated
in rules.mk (libpl.a, libdl.a, libreadline.a, libm.so),
ld complains about unresolved references to _abort, __iob,
and _fprintf.

I thought that sounded like libc functions so I added
-lc at the end of the command line. But then as soon as I
try to run JPL I get the following complain:

 ld.so: Undefined symbol: ___eprintf
  
It seems that this ___eprintf is a symbol from libpl.a,
marked undefined; but SWI-Prolog, on its side, compiled
(on the same machine) with libm, libdl and libreadline,
seems to have no problem either finding it, or getting
along without it.
  
Does anybody have the faintest idea of what might be the
problem there?

(For my part, I have exhausted my understanding of
computers at this time).

Best regards,

--
Pascal Vaillant                                Jägerstraße 10/11
Humboldt Universität zu Berlin                 10117 Berlin (Allemagne)
Lehstuhl Computerlinguistik                    Tel: (+49/30) 20 19 25 54


