-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to find a function in the executable (pg_query) #132
Comments
I have found the |
Lack of time I'm afraid means that FlexDLL issues can be very long-burning - please do try to include full reproductions with issues (i.e. concrete links to branches and instructions to build them) so that when we do get spare minutes to have a look, they're not all spent just trying to reproduce the issue! This is possibly a shot in the dark, but this is ringing a bell with symbols not being properly available because they're not being referenced - @jonahbeckford, does this look like a familiar type of failure? |
Ah - ocaml/ocaml#12412 was what I was thinking of, but that's MSVC and I don't think should be applying here (assuming you're using mingw-w64). |
As David asked, are you compiling with MSVC or GCC? Either way, pasting in the first 10 lines of |
I am trying with Cygwin/MinGW. (On MSVC, even a simple https://github.com/F-Loyer/ctype_error On Windows, there are 2 symbol tables the (normal) SYMBOL TABLE and the DYNAMIC SYMBOL TABLE. By default the linker put symbols only in the SYMBOL TABLE, the DYNAMIC SYMBOL TABLE remains empty. However, the ffi library searches symbols in this latest table. Then, this can't work. See https://github.com/F-Loyer/ctype_error/blob/main/main_objdump.txt#L10406 The function I have managed to solve the issue with the executable link flags of dune (the commented line in the project), with:
I guess the default configuration should work without this tweak. (Note, I had to double the Note: the (Since Note, the |
When compiling pg_query on Windows (patched to make it compiled), I have a
pg_check
command which fails:However, the
pg_query_parse
symbol is available:Note, the
pg_query
library is based onctypes.foreign
. Then the issue may appear in other libraries.The text was updated successfully, but these errors were encountered: