Re: pthread and ftread not usable on linux...

Cyprien Nicolas <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <[email protected]>
Hello Guilhem,

Il y a 34 minutes et 8 secondes, [email protected] écrivit :
> Hello,
>
> Here are the steps the problem:
> - get the last bigloo distributino (4.2a, have also tried with 4.1a and 3.9)
> - build it
>   $ ./configure --enable-pthread && make & &make install
>   no error, installation is correct
> - run bigloo and use the pthread library
>   $ bigloo
>   1:=> (module x (library pthread) (main main))
> *** ERROR:dynamic-load:/usr/local/lib/bigloo/4.2a/libbigloopthread_s-4.2a.so:
> /usr/local/lib/bigloo/4.2a/libbigloopthread_s-4.2a.so: undefined symbol:
> GC_pthread_sigmask -- /usr/local/lib/bigloo/4.2a/libbigloopthread_s-4.2a.so
> - same result with fthread, bigloo 4.1a and 3.9

This is a known issue [1].  The bigloo REPL is linked against the
mono-threaded GC.  The consequence is that symbols needed by the
pthread library are not defined in the GC library.

You can write and build your own pthread-enabled REPL using the simple
following code, quoting from [1]:

-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
$ cat > bglrepl.scm << EOF
(module bglrepl
(library pthread))

(repl)
EOF
$ bigloo bglrepl.scm -o bglrepl
$ ./bglrepl
:=> (load "test-pthread.scm")
^D
-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----


Hope this helps


1. https://sympa.inria.fr/sympa/arc/bigloo/2008-05/msg00015.html

-- 
Cyprien Nicolas, PhD Student, INDES Team
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlOsEX4ACgkQQHQZc4Ru+vFk3wCfV5Gr0NTN4cogMnfvHBK9FBSA
HH4AoJyb9Bgliml9jJQcnXERVq14GyyI
=MhWH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.