That's funny, C library dependency loading generally works on (load).<div><br></div><div>Paste more info - </div><div><br></div><div> * What OS and version and environment variables are you on?</div><div><br></div><div>

 * What does ldd/lddtree on all involved files say?</div><div><br></div><div> * If you enforce loading of the respective dynamic libraries using the OS dynamic library loader's environment variables, what happens?</div>

<div><br></div><div>   E.g. bash$ LD_PRELOAD=yourlibs gsc</div><div><br></div><div><div> * Paste strace or alike of all the process</div></div><div><br></div><div> * Paste output of gdb introspection on core file</div><div>

<br></div><div><br><div><br><div class="gmail_quote">2013/4/28 Cyrille Duret <span dir="ltr"><<a href="mailto:cduret@gmail.com" target="_blank">cduret@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">hello,<div>I have a weird error message and I could not understand what's the source of this error and how to fix it.</div><div><br></div><div>A simple example :</div><div><br></div>
<div>glfw-ffi.scm :</div><div><div>(c-declare "#include \"GL/glfw.h\"")</div><div>(define glfwInit (c-lambda () int "glfwInit"))</div><div><br></div><div>compilation :</div>
<div>$ export GAMBC_CC_VERBOSE=yes<br></div><div>$ gsc -ld-options "-L/usr/local/lib -lglfw" glfw-ffi.scm<br></div><div><br></div><div>gcc     -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing  -fwrapv -fomit-frame-pointer -fno-move-loop-invariants -fPIC -fno-common -mieee-fp   -rdynamic -shared  -D___SINGLE_HOST -D___DYNAMIC -I"/usr/local/Gambit-C/include" -o "glfw-ffi.o2"   glfw-ffi.c -L/usr/local/lib -lglfw<br>


</div><div><br></div><div><div>$ gsc</div><div>Gambit v4.6.7</div><div><br></div><div>> (load "glfw-ffi")</div><div>Unable to find pthread_mutexattr_setkind_np versioned symbol. Aborting.</div><div>Abort(coredump)</div>


</div><div>$</div><div><br></div><div>Anyone see this problem with pthread ?</div><div><br></div><div>thanks a lot</div><span class="HOEnZb"><font color="#888888"><div>cyrille</div></font></span></div></div>
<br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div></div>