Re: static executable, can't open $DISPLAY
- From: Havoc Pennington <hp redhat com>
- To: Ian Britten <britten caris com>
- Cc: gtk-list gnome org
- Subject: Re: static executable, can't open $DISPLAY
- Date: 14 Mar 2002 10:22:09 -0500
Ian Britten <britten caris com> writes:
> I'm working on Linux (Mandrake 8.1, gcc 3.0.1, etc) with gtk 1.2.10 (Ximian)
> When I build a dynamic executable, everything works find, as expected.
> When I build a static executable (-static linker option), I can't run the
> executable any more. When I try, I get the following output:
>
> % ./a.out
>
> Gdk-WARNING **: locale not supported by Xlib, locale set to C
>
> Gdk-WARNING **: can not set locale modifiers
>
> Gtk-WARNING **: cannot open display: :0
>
Maybe you statically linked to libc so it can't dlopen() its locale
data correctly?
I'm just speculating. I don't think you want to link statically to
libc though. There is a way to avoid doing so and I figured it out
once but I'm not remembering offhand...
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]