Friday, August 9, 2013

Re: compiling gvim statically

kamaraju kusumanchi wrote:
> I am trying to compile a static version of gvim on a machine running a
> combination of Debian GNU/Linux Squeeze and Wheezy.
....
>
> (.text+0xe12): warning: Using 'getaddrinfo' in statically linked
> applications requires at runtime the shared libraries from the glibc
> version used for linking
.....
>
> (.text+0x652): undefined reference to `xcb_take_socket'
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libX11.a(xcb_io.o):
> In function `poll_for_event':

----
It isn't a problem with gvim, it's a problem with the libraries you are
using.

1) don't use gnu libc. Find another one, like http://www.musl-libc.org/
I tried a few boot utils, and it worked great!



2) you need to have your Xlibs compiled statically as well... They likely
aren't coming that way...so you need to go through whatever work to
recompile them...

Don't expect it to be trivial...




--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: