pack_install(plosc).
% Contacting server at http://www.swi-prolog.org/pack/query ... ok
Install pl...@0.4.4 from https://code.soundsoftware.ac.uk/projects/plosc/repository/raw/release/plosc-0.4.4.tgz Y/n?
% Contacting server at http://www.swi-prolog.org/pack/query ... ok
% "plosc-0.4.4.tgz" was downloaded 6 times
Package: plosc
Title: OSC input/output via liblo
Installed version: 0.4.4
Author: Samer Abdallah <s.abd...@ucl.ac.uk>
Download URL: https://code.soundsoftware.ac.uk/projects/plosc/repository/raw/release/plosc-0.4.4.tgz
Install "plosc-0.4.4.tgz" (10,478 bytes) Y/n?
Warning: CC="gcc"
Warning: PLBASE="/Applications/SWI-Prolog.app/Contents/swipl"
Warning: PLARCH="x86_64-darwin14.3.0"
Warning: PLLIBS=""
Warning: PLLIB="-lswipl"
Warning: PLCFLAGS="-fno-strict-aliasing -pthread -fno-common"
Warning: PLLDFLAGS="-O2 -pthread"
Warning: PLSOEXT="dylib"
Warning: PLTHREADS="yes"
Warning: plosc.c:265:12: warning: variable 'f' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
Warning: int ok = PL_get_int64(sec, &s) && PL_get_int64(frac, &f);
Warning: ^~~~~~~~~~~~~~~~~~~~~
Warning: plosc.c:267:13: note: uninitialized use occurs here
Warning: ts->frac = f;
Warning: ^
Warning: plosc.c:265:12: note: remove the '&&' if its condition is always true
Warning: int ok = PL_get_int64(sec, &s) && PL_get_int64(frac, &f);
Warning: ^~~~~~~~~~~~~~~~~~~~~~~~~
Warning: plosc.c:264:14: note: initialize the variable 'f' to silence this warning
Warning: int64_t s, f;
Warning: ^
Warning: = 0
Warning: plosc.c:828:12: warning: implicit declaration of function 'pthread_join' is invalid in C99 [-Wimplicit-function-declaration]
Warning: result = pthread_join( st->thread, NULL );
Warning: ^
Warning: plosc.c:848:12: warning: implicit declaration of function 'pthread_create' is invalid in C99 [-Wimplicit-function-declaration]
Warning: result = pthread_create(&(st->thread), NULL, (void *)&prolog_thread_func, st);
Warning: ^
Warning: plosc.c:884:2: warning: implicit declaration of function 'pthread_exit' is invalid in C99 [-Wimplicit-function-declaration]
Warning: pthread_exit(NULL);
Warning: ^
Warning: 4 warnings generated.
Warning: clang: warning: argument unused during compilation: '-pthread'
% make -C c
% /Applications/SWI-Prolog.app/Contents/swipl/bin/x86_64-darwin14.3.0/swipl-ld -v -I/opt/local/include -L/opt/local/lib -llo -fPIC -Wall -shared -o plosc.dylib plosc.c
% eval `swipl --dump-runtime-variables`
% gcc -c -fno-common -Wall -fno-common -fno-strict-aliasing -pthread -fno-common -D_REENTRANT -D__SWI_PROLOG__ -I/Applications/SWI-Prolog.app/Contents/swipl/include -I/opt/local/include -o plosc.o plosc.c
% gcc -o plosc.dylib -bundle -dynamic -flat_namespace -undefined suppress -O2 -pthread plosc.o -L/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin14.3.0 -L/opt/local/lib -llo -lswipl
% rm plosc.o
% strip -x plosc.dylib
% echo "No checks defined."
% No checks defined.
% make -C c
% make[1]: Nothing to be done for `main'.
% install -d lib/x86_64-darwin14.3.0
% install -bCS c/plosc.dylib lib/x86_64-darwin14.3.0
true.
?- use_module(library(plosc)).
ERROR: /Applications/SWI-Prolog.app/Contents/swipl/pack/plosc/prolog/plosc.pl:36:
'$open_shared_object'/3: dlopen(/Applications/SWI-Prolog.app/Contents/swipl/pack/plosc/lib/x86_64-darwin14.3.0/plosc.dylib, 1): Library not loaded: /Users/janw/stable/lib/swipl-7.2.3/lib/x86_64-darwin14.3.0/libswipl.dylib
Referenced from: /Applications/SWI-Prolog.app/Contents/swipl/pack/plosc/lib/x86_64-darwin14.3.0/plosc.dylib
Reason: image not found
Warning: /Applications/SWI-Prolog.app/Contents/swipl/pack/plosc/prolog/plosc.pl:36:
Goal (directive) failed: plosc:use_foreign_library(foreign(plosc))
ERROR: Exported procedure plosc:osc_mk_server/2 is not defined
ERROR: Exported procedure plosc:osc_now/2 is not defined
ERROR: Exported procedure plosc:osc_start_server/1 is not defined
ERROR: Exported procedure plosc:osc_stop_server/1 is not defined
ERROR: Exported procedure plosc:osc_run_server/1 is not defined
ERROR: Exported procedure plosc:osc_is_address/1 is not defined
ERROR: Exported procedure plosc:osc_mk_address/3 is not defined
ERROR: Exported procedure plosc:osc_split_address/3 is not defined
true.