Subject: Error compiling swi-prolog-packages on OS X
To: pkgsrc-user MailingList <pkgsrc-users@NetBSD.org>
From: Philipp Riegger <lists@anderedomain.de>
List: pkgsrc-users
Date: 10/08/2006 13:04:12
Hi!

After i failed compiling gprolog i gave swiprolog a try. One of its  
dependancies, however, failed to build:

<quote>
===> Building for swi-prolog-packages-5.6.17nb1
for p in clib cpp odbc table sgml sgml/RDF semweb http chr xpce; do \
     if [ -r $p/Makefile ]; then make -C $p || exit 1; fi; \
         done
../plld.sh -O2 -fno-strict-aliasing -Wall -fpic -I. -Imaildrop/ 
rfc2045 -Imaildrop/rfc822 -DHAVE_CONFIG_H -no-cpp-precomp -I/usr/pkg/ 
include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/ 
include  -c -o error.o error.c
error.c: In function 'pl_error':
error.c:78: warning: unused variable 'argn'
../plld.sh -O2 -fno-strict-aliasing -Wall -fpic -I. -Imaildrop/ 
rfc2045 -Imaildrop/rfc822 -DHAVE_CONFIG_H -no-cpp-precomp -I/usr/pkg/ 
include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/ 
include  -c -o process.o process.c
../plld.sh -shared -o unix.dylib error.o process.o
/usr/bin/ld: warning -L: directory name (/tmp/pkgsrc/lang/swi-prolog- 
packages/work/.buildlink/lib/swi-prolog-5.6.17/lib/powerpc-darwin8)  
does not exist
/usr/bin/ld: can't locate file for: -lpl
collect2: ld returned 1 exit status
gcc -pipe returned code 256
*** /tmp/pkgsrc/lang/swi-prolog-packages/work/pl-5.6.17/src/../src/ 
plld exit status 1
make[1]: *** [unix.dylib] Error 1
gnumake: *** [objects] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/swi-prolog-packages
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/swi-prolog-packages
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/swi-prolog
</quote>

Any idea, what i can do? This looks like a missing lib or a missing  
path for the linker, but i'm not really familiar with pkgsrc- 
internals so i don't know how to fix this.

Thanks,
	Philipp