That's funny, C library dependency loading generally works on (load).

Paste more info - 

 * What OS and version and environment variables are you on?

 * What does ldd/lddtree on all involved files say?

 * If you enforce loading of the respective dynamic libraries using the OS dynamic library loader's environment variables, what happens?

   E.g. bash$ LD_PRELOAD=yourlibs gsc

 * Paste strace or alike of all the process

 * Paste output of gdb introspection on core file



2013/4/28 Cyrille Duret <cduret@gmail.com>
hello,
I have a weird error message and I could not understand what's the source of this error and how to fix it.

A simple example :

glfw-ffi.scm :
(c-declare "#include \"GL/glfw.h\"")
(define glfwInit (c-lambda () int "glfwInit"))

compilation :
$ export GAMBC_CC_VERBOSE=yes
$ gsc -ld-options "-L/usr/local/lib -lglfw" glfw-ffi.scm

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

$ gsc
Gambit v4.6.7

> (load "glfw-ffi")
Unable to find pthread_mutexattr_setkind_np versioned symbol. Aborting.
Abort(coredump)
$

Anyone see this problem with pthread ?

thanks a lot
cyrille

_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list