pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48067: shlib module is missing functionality that is used



>Number:         48067
>Category:       pkg
>Synopsis:       shlib module is missing functionality that is used
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 19 15:10:00 +0000 2013
>Originator:     Matthias Kretschmer
>Release:        6.0.1_PATCH
>Organization:
>Environment:
NetBSD telemann.barock.local 6.0.1_PATCH NetBSD 6.0.1_PATCH (GENERIC) #1: Mon 
Apr  1 15:43:31 CEST 2013 
matthias@telemann.barock.local:/var/scratch/matthias/src/netbsd-6/amd64-obj/sys/arch/amd64/compile/GENERIC
 amd64
>Description:
The shlib module of swi-prolog-lite is missing predicates that are used by 
swi-prolog-package modules.
>How-To-Repeat:
For example run swi-prolog -s test.pl on the following file (you require the 
swi-prolog-packages package for the time module).

*** BEGIN test.pl ***
:- use_module(library(time)).
*** END test.pl ***


You should get something like:

$ swi-prolog -s test.pl
%  library(shlib) compiled into shlib 0.00 sec, 11,148 bytes
%    library(error) compiled into error 0.00 sec, 10,236 bytes
%   library(lists) compiled into lists 0.00 sec, 25,908 bytes
ERROR: exception handler failed to define predicate shlib:use_foreign_library/1

ERROR: exception handler failed to define predicate shlib:use_foreign_library/1

ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:97:
        catch/3: Undefined procedure: shlib:use_foreign_library/1
Warning: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:97:
        Goal (directive) failed: time:use_foreign_library(foreign(time))
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:install_alarm/2 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:install_alarm/1 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:remove_alarm/1 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:uninstall_alarm/1 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:alarm/4 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:uninstall_alarm/1 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:alarm/4 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:alarm_at/4 is not defined
ERROR: /usr/pkg/lib/swi-prolog-5.11.18/library/time.pl:137:
        Exported procedure time:alarm/3 is not defined
%  library(time) compiled into time 0.01 sec, 156,472 bytes
% /home/theory/kretschm/tmp/fuenfzeiler/fuenfzeiler.pl compiled 0.01 sec, 
169,720 bytes
Welcome to SWI-Prolog (Multi-threaded, 32 bits, Version 5.11.18)
Copyright (c) 1990-2011 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

?- 
>Fix:
Just remove the post-install rule from Makefile which overwrites the shlib.pl 
module from files/shlib.pl (which seems to be a left-over from an old package 
version).



Home | Main Index | Thread Index | Old Index