Ok the problem was solved by recompiling mysql with --with-pic configure switch. Linking neko statically won't help because the problem is that Neko is building a shared library from a static one (mysql), and all shared libraries must be compiled with PIC enabled, while MySQL static library is not PIC enabled.
Nicolas, maybe make mysql.ndll in neko use a mysql shared library, not a static one? This will eliminate the need for a custom-built mysql. Mike -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kacper Gutowski Sent: Thursday, July 09, 2009 9:06 PM To: Neko intermediate language mailing list Subject: Re: [Neko] RE: Neko on x86_64 On Thu, Jul 9, 2009 at 17:18, Michael Pliskin<[email protected]> wrote: > Why is that needed by Neko? I think I found nice explanation for this question: http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 Your problem seems to be the one described there as case 4. If I understand correctly you can either recompile your mysql library to be position independent or link neko module statically with it. Kacper Gutowski. -- Neko : One VM to run them all (http://nekovm.org)
-- Neko : One VM to run them all (http://nekovm.org)
