Compiling/ using lftp-vim
Jump to:
Description
I am trying to compile and use the vim plugin for lftp:
http://michael.stapelberg.de/lftp_vi/
I managed to compile the plugin thus:
g++ -fPIC -shared -nostdlib -I./src/ -I./lib/ -I. -I./trio/ cmd-edit.cc -o cmd-edit.so
but then the plugin won't load properly when running lftp:
~/.lftp/cmd-edit.so: undefined symbol: __gxx_personality_v0
__gxx_personality_v0 is part of -lstdc++, so I though I'd remove -nostdlib from the compile command:
g++ -fPIC -shared -I./src/ -I./lib/ -I. -I./trio/ cmd-edit.cc -o cmd-edit.so
but then I get:
~/.lftp/cmd-edit.so: undefined symbol: _Z7xmallocm
Comments
#1
The module definitely does not work as is.
See:
http://www.mail-archive.com/lftp-devel@uniyar.ac.ru/msg01791.html
Adding the following didn't help.
void *__gxx_personality_v0;
http://stackoverflow.com/questions/329059/what-is-gxx-personality-v0-for
#2
-lstdc++
didn't help either.
http://stackoverflow.com/questions/6045809/problem-with-g-and-undefined-...
#3