|
From: | Aljosha Papsch |
Subject: | Re: [Gneuralnetwork] [PATCH] Compile gneuralnetwork as library |
Date: | Mon, 2 May 2016 21:03:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.2 |
On 30.04.2016 06:40, Nala Ginrut wrote:
Hi Aljosha! On Sun, 2016-04-24 at 17:01 +0200, Aljosha Papsch wrote:steps: * Write Guile bindings using FFI * Write Scheme programs equivalent to the .script filesAgreed.
This patch still needs some love. When I tried loading the library with the FFI:
(define libgneural (dynamic-link "libgneural.so"))I got the error "file not found". After some thorough investigation with strace and LD_DEBUG=all, I got to the root of the error:
writev(2, [{" 16551:\t", 12}, {"/opt/gneural/lib/libgneural.so", 30}, {": error: ", 9}, {"symbol lookup error", 19}, {": ", 2}, {"undefined symbol: fp", 20}, {" (", 2}, {"fatal", 5}, {")\n", 2}], 9 16551: /opt/gneural/lib/libgneural.so: error: symbol lookup error: undefined symbol: fp (fatal)
Global variables! fp is defined in gneural_network.c and some library code depends on it. I will have to track down the dependencies and make them independent of the global variables (is reproducible the right term here?). Only then step 0 (librarifying) is done.
Best regards Aljosha
[Prev in Thread] | Current Thread | [Next in Thread] |