Cause of this problem is that ubuntu's python is built with
-Bsymbolic-functions flag.
With this flag, libpython and vim see different function address for same
function.
Test:
$ cat foo.c
void *foo() { return &foo; }
$ cat main.c
#include <stdio.h>
void *foo();
int main() {
printf("foo=%p main=%p\n", foo(), &foo);
return 0;
}
$ cc -shared -fPIC -o libfoo.so foo.c -Wl,-Bsymbolic-functions
$ cc main.c -L. -lfoo
$ LD_LIBRARY_PATH=. ./a.out
foo=0x7eff0cafe770 main=0x4005e0
--
Yukihiro Nakadaira - [email protected]
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.