Running Pthreads without Compiling
[email protected] Sat, 18 Dec 2021 12:07:10 +0000
| Newsgroups | gmane.lisp.scheme.bigloo |
|---|---|
| Message-ID | <[email protected]> |
--=_30056f506f3a943442e5e3922cdb46d9 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Dec 17 I think it would be nice to develop applications with pthreads using the Bigloo interpreter and calling the pthread library. I tried this by including "(library pthread)" in the "(module " declaration. However, Bigloo reports "Can't find library `pthread' (`libbigloopthread_s-4.4c.so') -- (. /usr/local/bigloo-4.4c/lib/bigloo/4.4c) There's a static library "libbigloopthread_s-4.4c.a" in directory /usr/local/bigloo-4.4c/lib/bigloo/4.4c. So I rebuilt Bigloo using the "--cpicflags=-fpic" option, and created the shared library. The configure command was: configure --enable-pthread --disable-srfi18 --cpicflags=-fpic --prefix=/usr/local/bigloo-4.4c Now when I run the Bigloo interpreter, it reports " *** ERROR:dynamic-load:/usr/local/bigloo-4.4c/lib/bigloo/4.4c/libbigloopthread_s-4.4c.so: /usr/local/bigloo-4.4c/lib/bigloo/4.4c/libbigloopthread_s-4.4c.so: undefined symbol: GC_pthread_sigmask -- /usr/local/bigloo-4.4c/lib/bigloo/4.4c/libbigloopthread_s-4.4c.so Does anyone, maybe Manuel, know if the approach I'm trying is alright, and if so, how do you resolve the undefined symbol: GC_pthread_sigmask? Althought the stuff for srfi-18 works in interpreter mode, I'd like to run native pthreading in interpreter mode if possible. Please ask for more information from me about my explanation above if you need it. Thanks, Glenn --=_30056f506f3a943442e5e3922cdb46d9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= =3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen= eva,sans-serif'> <p>Dec 17</p> <p>I think it would be nice to develop applications with pthreads using the= Bigloo interpreter and calling the pthread library. I tried this by = including "(library pthread)" in the "(module " declaration. However,= Bigloo reports "Can't find library `pthread' (`libbigloopthread_s-4.4c.so'= ) -- (. /usr/local/bigloo-4.4c/lib/bigloo/4.4c)</p> <p>There's a static library "libbigloopthread_s-4.4c.a" in directory</p> <p>/usr/local/bigloo-4.4c/lib/bigloo/4.4c. So I rebuilt Bigloo using = the</p> <p>"--cpicflags=3D-fpic" option, and created the shared library.</p> <p>The configure command was:</p> <p>configure --enable-pthread --disable-srfi18 --cpicflags=3D-fpic --prefix= =3D/usr/local/bigloo-4.4c</p> <p>Now when I run the Bigloo interpreter, it reports " *** ERROR:dynamic-lo= ad:/usr/local/bigloo-4.4c/lib/bigloo/4.4c/libbigloopthread_s-4.4c.so:<br />= /usr/local/bigloo-4.4c/lib/bigloo/4.4c/libbigloopthread_s-4.4c.so: undefine= d symbol: GC_pthread_sigmask -- /usr/local/bigloo-4.4c/lib/bigloo/4.4c/libb= igloopthread_s-4.4c.so</p> <p>Does anyone, maybe Manuel, know if the approach I'm trying is alright, a= nd if so, how do you resolve the undefined symbol: GC_pthread_sigmask?</p> <p>Althought the stuff for srfi-18 works in interpreter mode, I'd like to r= un native pthreading in interpreter mode if possible. Please ask for = more information from me about my explanation above if you need it. </= p> <p><br /></p> <p>Thanks,</p> <p>Glenn</p> <p><br /></p> <p><br /></p> <p><br /></p> <p><br /></p> </body></html> --=_30056f506f3a943442e5e3922cdb46d9--