[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Hello World: Error
From: Jerrold Clint Balansi <jcx4ever () gmail ! com>
Date: 2012-04-30 21:01:05
Message-ID: CAATwcp3+6Zpgxb1JUMUW+61dQ97WRaisxOZHuih0d-O66CTevw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
Yes I was able to run xclock. It showed up on my frontend monitor not on
the wall.
Thank you.
-jerrold
On Mon, Apr 30, 2012 at 1:44 PM, Doug Kuvaas <doug.kuvaas@gmail.com> wrote:
> Jerrold,
>
> Can you run xclock from the terminal successfully or does it give you the
> same error? Usually when I see this error, it means that something is
> preventing the client from connecting to the xserver (firewall, xhost,
> etc).
>
> If you cannot run xclock, verify that the firewall is allowing x traffic
> (I typically turn the firewall off as I have a hardware firewall on my
> network) and that xhost is allowing your system to connect to the xserver.
>
> On Mon, Apr 30, 2012 at 3:15 PM, Jerrold Clint Balansi <jcx4ever@gmail.com
> > wrote:
>
>> Hi wh,
>>
>> I did your instruction and it compiled. Here's what I got.
>>
>> [root@vizwall jcX Files]# make
>> cc -Wall HelloX.c -lX11 -o HelloX
>> [root@vizwall jcX Files]# ./HelloX
>> X connection to :0.0 broken (explicit kill or server shutdown).
>> [root@vizwall jcX Files]#
>>
>> Is there anyting I should know why I'm getting this X connection to :0.0
>> broken (explicit kill or server .. Thank you.
>>
>>
>> -jerrold
>>
>>
>> On Fri, Apr 27, 2012 at 5:28 AM, walter harms <wharms@bfs.de> wrote:
>>
>>>
>>>
>>> Am 24.04.2012 11:51, schrieb Michal Hejduk:
>>> > On Monday 23 of April 2012 14:13:28 Jerrold Clint Balansi wrote:
>>> >
>>> > Hi Julien,
>>> > I'm sorry that I'm pretty much new in to this Xlib programming, how
>>> exactly
>>> > can I do that?
>>> >
>>> > Thank you for your help.
>>> >
>>> > -jerrold
>>> >
>>> hi jerrold,
>>> please save the 3 lines below in a file called "makefile", then start
>>> make.
>>> Give you have all needed libes it should work the example complies for me
>>> without problems.
>>>
>>> re,
>>> wh
>>>
>>> LOADLIBES=-lX11
>>> CFLAGS=-Wall
>>> hellox:
>>>
>>>
>>> >
>>> > On Mon, Apr 23, 2012 at 2:10 PM, Julien Cristau <jcristau@debian.org>
>>> wrote:
>>> >
>>> > On Mon, Apr 23, 2012 at 13:55:34 -0700, Jerrold Clint Balansi wrote:
>>> >
>>> >> Hello,
>>> >>
>>> >> I am trying to make a Hello World program from code from this site:
>>> >> http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html
>>> >>
>>> >> However, when I try to compile and run it I get this error. Can some
>>> give
>>> >> me a hint. Thank you.
>>> >>
>>> >> [root@vizwall Desktop]# gcc -o HelloX HelloX.c
>>> >>> /tmp/ccMGGmGj.o: In function `main':
>>> >>> HelloX.c:(.text+0x42): undefined reference to `XAllocSizeHints'
>>> >
>>> >
>>> > You need to link with -lX11.
>>> >
>>> > Cheers,
>>> > Julien
>>> >
>>> >
>>> > Compile with:
>>> >
>>> > gcc -lX11 -o HelloX HelloX.c
>>> >
>>> > Nazdar
>>> > Michal
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > xorg@lists.x.org: X.Org support
>>> > Archives: http://lists.freedesktop.org/archives/xorg
>>> > Info: http://lists.x.org/mailman/listinfo/xorg
>>> > Your subscription address: wharms@bfs.de
>>> _______________________________________________
>>> xorg@lists.x.org: X.Org support
>>> Archives: http://lists.freedesktop.org/archives/xorg
>>> Info: http://lists.x.org/mailman/listinfo/xorg
>>> Your subscription address: jcx4ever@gmail.com
>>>
>>
>>
>> _______________________________________________
>> xorg@lists.x.org: X.Org support
>> Archives: http://lists.freedesktop.org/archives/xorg
>> Info: http://lists.x.org/mailman/listinfo/xorg
>> Your subscription address: doug.kuvaas@gmail.com
>>
>
>
[Attachment #5 (text/html)]
Hi,<br><br>Yes I was able to run xclock. It showed up on my frontend monitor not on \
the wall.<br><br>Thank you.<br>-jerrold<br><br><div class="gmail_quote">On Mon, Apr \
30, 2012 at 1:44 PM, Doug Kuvaas <span dir="ltr"><<a \
href="mailto:doug.kuvaas@gmail.com" \
target="_blank">doug.kuvaas@gmail.com</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> Jerrold,<div><br></div><div>Can you run xclock \
from the terminal successfully or does it give you the same error? Usually when I \
see this error, it means that something is preventing the client from connecting to \
the xserver (firewall, xhost, etc). </div>
<div><br></div><div>If you cannot run xclock, verify that the firewall is allowing x \
traffic (I typically turn the firewall off as I have a hardware firewall on my \
network) and that xhost is allowing your system to connect to the xserver.<br>
<br><div class="gmail_quote"><div><div>On Mon, Apr 30, 2012 at 3:15 PM, Jerrold Clint \
Balansi <span dir="ltr"><<a href="mailto:jcx4ever@gmail.com" \
target="_blank">jcx4ever@gmail.com</a>></span> wrote:<br> </div></div><blockquote \
class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div><div> Hi wh, <br><br>I did your instruction \
and it compiled. Here's what I got.<br><br><div style="margin-left:40px"><span \
style="font-family:courier new,monospace">[root@vizwall jcX Files]# make</span><br \
style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">cc -Wall HelloX.c -lX11 -o \
HelloX</span><br style="font-family:courier new,monospace"><span \
style="font-family:courier new,monospace">[root@vizwall jcX Files]# \
./HelloX</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">X connection to :0.0 broken (explicit \
kill or server shutdown).</span><br style="font-family:courier new,monospace"><span \
style="font-family:courier new,monospace">[root@vizwall jcX Files]#</span> <br>
</div><br>Is there anyting I should know why I'm getting this <span \
style="font-family:courier new,monospace">X connection to :0.0 broken (explicit kill \
or server .<span style="font-family:arial,helvetica,sans-serif">. Thank \
you.</span></span><br>
<br><br>-jerrold<br><br><br><div class="gmail_quote"><div><div>On Fri, Apr 27, 2012 \
at 5:28 AM, walter harms <span dir="ltr"><<a href="mailto:wharms@bfs.de" \
target="_blank">wharms@bfs.de</a>></span> wrote:<br> </div></div><blockquote \
class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div><div> <br>
<br>
Am <a href="tel:24.04.2012%2011" value="+12404201211" target="_blank">24.04.2012 \
11</a>:51, schrieb Michal Hejduk:<br> <div>> On Monday 23 of April 2012 14:13:28 \
Jerrold Clint Balansi wrote:<br> ><br>
> Hi Julien,<br>
> I'm sorry that I'm pretty much new in to this Xlib programming, how \
exactly<br> > can I do that?<br>
><br>
> Thank you for your help.<br>
><br>
> -jerrold<br>
><br>
</div>hi jerrold,<br>
please save the 3 lines below in a file called "makefile", then start \
make.<br> Give you have all needed libes it should work the example complies for \
me<br> without problems.<br>
<br>
re,<br>
wh<br>
<br>
LOADLIBES=-lX11<br>
CFLAGS=-Wall<br>
hellox:<br>
<div><br>
<br>
><br>
> On Mon, Apr 23, 2012 at 2:10 PM, Julien Cristau <<a \
href="mailto:jcristau@debian.org" target="_blank">jcristau@debian.org</a>> \
wrote:<br> ><br>
> On Mon, Apr 23, 2012 at 13:55:34 -0700, Jerrold Clint Balansi wrote:<br>
><br>
>> Hello,<br>
>><br>
>> I am trying to make a Hello World program from code from this site:<br>
>> <a href="http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html" \
target="_blank">http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html</a><br> \
>><br> >> However, when I try to compile and run it I get this error. Can \
some give<br> >> me a hint. Thank you.<br>
>><br>
>> [root@vizwall Desktop]# gcc -o HelloX HelloX.c<br>
>>> /tmp/ccMGGmGj.o: In function `main':<br>
>>> HelloX.c:(.text+0x42): undefined reference to `XAllocSizeHints'<br>
><br>
><br>
> You need to link with -lX11.<br>
><br>
> Cheers,<br>
> Julien<br>
><br>
><br>
> Compile with:<br>
><br>
> gcc -lX11 -o HelloX HelloX.c<br>
><br>
> Nazdar<br>
> Michal<br>
><br>
><br>
><br>
><br>
><br>
</div><div>> _______________________________________________<br>
> <a href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>: X.Org \
support<br> > Archives: <a href="http://lists.freedesktop.org/archives/xorg" \
target="_blank">http://lists.freedesktop.org/archives/xorg</a><br> > Info: <a \
href="http://lists.x.org/mailman/listinfo/xorg" \
target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br> </div>> Your \
subscription address: <a href="mailto:wharms@bfs.de" \
target="_blank">wharms@bfs.de</a><br> \
<div>_______________________________________________<br> <a \
href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>: X.Org \
support<br>
Archives: <a href="http://lists.freedesktop.org/archives/xorg" \
target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg" \
target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br> \
</div></div></div>Your subscription address: <a href="mailto:jcx4ever@gmail.com" \
target="_blank">jcx4ever@gmail.com</a><br> </blockquote></div><br>
<br>_______________________________________________<br>
<a href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>: X.Org \
support<br>
Archives: <a href="http://lists.freedesktop.org/archives/xorg" \
target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg" \
target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br></div></div> Your \
subscription address: <a href="mailto:doug.kuvaas@gmail.com" \
target="_blank">doug.kuvaas@gmail.com</a><br></blockquote></div><br></div> \
</blockquote></div><br>
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic