[Haskell-cafe] ghci and TH cannot: unknown symbol `stat64`
michael at snoyman.com
Wed Jul 11 17:12:24 CEST 2012
On Wed, Jul 11, 2012 at 5:47 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Wed, Jul 11, 2012 at 10:25 AM, Michael Snoyman <michael at snoyman.com>
>> unknown symbol `stat64'
>> test.hs: test.hs: unable to load package `persistent-sqlite-1.0.0'
> The immediate cause is that some C source file is calling stat() or lstat()
> without the right #include files; they go through several levels of backward
> compatibility macros that end in different system calls. Alternately,
> something is trying to use one of those functions via the FFI instead of
> brandon s allbery allbery.b at gmail.com
> wandering unix systems administrator (available) (412) 475-9364 vm/sms
Thanks for the feedback. However, looking at sqlite3.c, I see the
necessary #include statements:
I'm confident that none of my code is making calls to stat/stat64 via
the FFI. In case it makes a difference, this problem also disappears
if I compile the library against the system copy of sqlite3 instead of
using the C source.
More information about the Haskell-Cafe