From jan@swi.psy.uva.nl  Tue Feb  1 09:59:58 2000
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id JAA03712;
	Tue, 1 Feb 2000 09:59:58 +0100 (MET)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA10999;
	Tue, 1 Feb 2000 10:00:08 +0100
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: Pascal Vaillant <Pascal.Vaillant@rz.hu-berlin.de>,
        Prolog Mailing List <prolog@swi.psy.uva.nl>
Subject: Re: Are you SunOS ld.so freaks (JPL + SWI again!)
Date: Tue, 1 Feb 2000 09:53:31 +0100
X-Mailer: KMail [version 1.0.28]
Content-Type: text/plain
References: <Pine.LNX.4.05.10001312359210.2342-100000@ppp196-140.rz.hu-berlin.de>
In-Reply-To: <Pine.LNX.4.05.10001312359210.2342-100000@ppp196-140.rz.hu-berlin.de>
MIME-Version: 1.0
Message-Id: <00020110000800.10896@gollem>
Content-Transfer-Encoding: 8bit

On Tue, 01 Feb 2000, Pascal Vaillant wrote:
>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)

Good grief.  Is he running an antique shop?  Just to warn you:
shared objects and SunOS 4.x is a mess.   This was exactly
the reason I liked Solaris (> 2.3 :-): they had the courage to
change the binary format from BSD a.out + hacks to the ELF
format.

>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

___eprintf is from libgcc.a.  If you have a recent gcc,
try linking using gcc -shared ...  If not link to both
-lc and the libgcc.a that was delivered with gcc.  See
gcc -print-libgcc-file-name.
  

	Cheers --- Jan

