[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">&lt;<a \
href="mailto:doug.kuvaas@gmail.com" \
target="_blank">doug.kuvaas@gmail.com</a>&gt;</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">&lt;<a href="mailto:jcx4ever@gmail.com" \
target="_blank">jcx4ever@gmail.com</a>&gt;</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&#39;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&#39;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">&lt;<a href="mailto:wharms@bfs.de" \
target="_blank">wharms@bfs.de</a>&gt;</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>&gt; On Monday 23 of April 2012 14:13:28 \
Jerrold Clint Balansi wrote:<br> &gt;<br>
&gt; Hi Julien,<br>
&gt; I&#39;m sorry that I&#39;m pretty much new in to this Xlib programming, how \
exactly<br> &gt; can I do that?<br>
&gt;<br>
&gt; Thank you for your help.<br>
&gt;<br>
&gt; -jerrold<br>
&gt;<br>
</div>hi jerrold,<br>
please save the 3 lines below in a file called &quot;makefile&quot;, 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>
&gt;<br>
&gt; On Mon, Apr 23, 2012 at 2:10 PM, Julien Cristau &lt;<a \
href="mailto:jcristau@debian.org" target="_blank">jcristau@debian.org</a>&gt; \
wrote:<br> &gt;<br>
&gt; On Mon, Apr 23, 2012 at 13:55:34 -0700, Jerrold Clint Balansi wrote:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I am trying to make a Hello World program from code from this site:<br>
&gt;&gt; <a href="http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html" \
target="_blank">http://www.paulgriffiths.net/program/c/srcs/helloxsrc.html</a><br> \
&gt;&gt;<br> &gt;&gt; However, when I try to compile and run it I get this error. Can \
some give<br> &gt;&gt; me a hint. Thank you.<br>
&gt;&gt;<br>
&gt;&gt; [root@vizwall Desktop]# gcc -o HelloX HelloX.c<br>
&gt;&gt;&gt; /tmp/ccMGGmGj.o: In function `main&#39;:<br>
&gt;&gt;&gt; HelloX.c:(.text+0x42): undefined reference to `XAllocSizeHints&#39;<br>
&gt;<br>
&gt;<br>
&gt; You need to link with -lX11.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Julien<br>
&gt;<br>
&gt;<br>
&gt; Compile with:<br>
&gt;<br>
&gt; gcc -lX11 -o HelloX HelloX.c<br>
&gt;<br>
&gt; Nazdar<br>
&gt; Michal<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div><div>&gt; _______________________________________________<br>
&gt; <a href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>: X.Org \
support<br> &gt; Archives: <a href="http://lists.freedesktop.org/archives/xorg" \
target="_blank">http://lists.freedesktop.org/archives/xorg</a><br> &gt; Info: <a \
href="http://lists.x.org/mailman/listinfo/xorg" \
target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br> </div>&gt; 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