Re: calling Fortran code, unresolved symbols
Eric Marsden <[email protected]>
| Newsgroups | gmane.lisp.cmucl.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "tkp" == Tamas K Papp <[email protected]> writes: tkp> 2. I have compliled the slatec libary and it loads correctly. But tkp> when I complile he above code, CMUCL complains about Undefined foreign tkp> symbol: "dbspvd_" [Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]. Note that tkp> tkp> $ nm -D /usr/local/lib/libslatec.so | grep dbspvd tkp> 0020b010 T dbspvd_ what does (sys:foreign-symbol-address "dbspvd_") return? It is possible that the shared library did not in fact load correctly. BTW you can determine the dependencies of a shared library by using ldd, for example % ldd /usr/lib/libz.so.1.2.3 libc.so.6 => /lib/libc.so.6 (0x00002ab17a635000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) -- Eric Marsden