From jan@swi.psy.uva.nl Mon Jun 25 10:44:16 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f5P8iGc01617;
	Mon, 25 Jun 2001 10:44:16 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id f5P8iF114608;
	Mon, 25 Jun 2001 10:44:15 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: Xander Schrijen <Xander.Schrijen@phil.uu.nl>,
   "'prolog@swi.psy.uva.nl'" <prolog@swi.psy.uva.nl>
Subject: Re: [SWIPL] porting swi prolog to mac os x
Date: Mon, 25 Jun 2001 10:38:03 +0200
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
Cc: Jacobo Myerston <jacunix@cantv.net>
References: <200106241526.f5OFQBc21212@swi.psy.uva.nl>
In-Reply-To: <200106241526.f5OFQBc21212@swi.psy.uva.nl>
MIME-Version: 1.0
Message-Id: <01062510441503.14218@gollem>
Content-Transfer-Encoding: 8bit

Xander,

On Sun, 24 Jun 2001, Xander Schrijen wrote:
>On Wednesday, June 20, 2001, at 03:08  PM, Jacobo Myerston wrote:
>
>> I'm using swi-prolog on macosx since macosx with no problems. 
>> It builds, but the packages do not compile. I' have tried to 
>> build clib and I got this:
>>
>> ld  -o unix.so error.o process.o
>> ld: Undefined symbols:
>
>I've written a  short guide on how to get foreign libraries to 
>work on SWI-Prolog on Mac OS X.  I've included building clib as 
>an example.
>
>http://www.phil.uu.nl/~xges/HOWTO/swipldynlib.html

Thanks a lot for the clear overview!  Someday I'll integrate
this in standard configure and build-tools.  I hope your willing
to test the result.  For now I've added (a link to) your page to the
Twiki web on foreign-linking issues at

http://gollem.swi.psy.uva.nl/twiki/pl/bin/view/Foreign/MacOsXForeign

>> And  xpce's  ./configure stops when it doesn't find xpm.h, but 
>> xpm.h is installed in /usr/X11R6/include/X11.
>
>I haven't build xpce, but passing --with-xpm=/usr/X11R6 to 
>configure will let it find the Xpm files.

I've got the impression it can't find X11 at all, so you'll have to
use --x-includes=/usr/X11R6/include and possibly 
--x-libraries=/usr/X11R6/lib or create links to make X11
available from a more commonly known place.

	Regards --- Jan

