Re: xscope compilation error

2009-01-05 Thread Alan Coopersmith
Rui Tiago Cação Matos wrote:
 Hi,
 
 I got xscope from git://anongit.freedesktop.org/~alanc/xscope

That's an old tree - the master is now at:
git://anongit.freedesktop.org/xorg/app/xscope

 but it
 doesn't compile:
 
 gcc -DHAVE_CONFIG_H -I.-D_BSD_SOURCE -DHAS_FCHOWN
 -DHAS_STICKY_DIR_BIT   -DUSE_XTRANS -g -O2 -MT scope.o -MD -MP -MF
 .deps/scope.Tpo -c -o scope.o scope.c
 scope.c:73: error: 'MAXHOSTNAMELEN' undeclared here (not in a function)
 
 I believe that, in Linux, the right thing to do is to #include
 linux/param.h but as I consistently fail at getting the autotools to
 do what I want I'm just reporting this without a patch, sorry.

Does the sys/param.h patch added for cygwin fix this for you?
http://cgit.freedesktop.org/xorg/app/xscope/commit/?id=eb05316a471da962eefe82c9b9a16a7590653ba7

-- 
-Alan Coopersmith-   alan.coopersm...@sun.com
 Sun Microsystems, Inc. - X Window System Engineering

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: xscope compilation error

2009-01-05 Thread Rui Tiago Cação Matos
2009/1/5 Joel Feiner jafei...@gmail.com:
 On a related note, how do you actually get xscope to work?

It works for me.
Rui
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


xscope compilation error

2009-01-04 Thread Rui Tiago Cação Matos
Hi,

I got xscope from git://anongit.freedesktop.org/~alanc/xscope but it
doesn't compile:

gcc -DHAVE_CONFIG_H -I.-D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT   -DUSE_XTRANS -g -O2 -MT scope.o -MD -MP -MF
.deps/scope.Tpo -c -o scope.o scope.c
scope.c:73: error: 'MAXHOSTNAMELEN' undeclared here (not in a function)

I believe that, in Linux, the right thing to do is to #include
linux/param.h but as I consistently fail at getting the autotools to
do what I want I'm just reporting this without a patch, sorry.

Rui
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: xscope compilation error

2009-01-04 Thread Samuel Thibault
Rui Tiago Cação Matos, le Mon 05 Jan 2009 01:01:20 +, a écrit :
 I got xscope from git://anongit.freedesktop.org/~alanc/xscope but it
 doesn't compile:
 
 gcc -DHAVE_CONFIG_H -I.-D_BSD_SOURCE -DHAS_FCHOWN
 -DHAS_STICKY_DIR_BIT   -DUSE_XTRANS -g -O2 -MT scope.o -MD -MP -MF
 .deps/scope.Tpo -c -o scope.o scope.c
 scope.c:73: error: 'MAXHOSTNAMELEN' undeclared here (not in a function)
 
 I believe that, in Linux, the right thing to do is to #include
 linux/param.h

You should rather just #include sys/param.h, which doesn't depend on
linuxness.  That being said, the code should rather be rewriten into not
using MAXHOSTNAMELEN unconditionally, since some systems do not have
such arbitrary limitation.

Samuel
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: xscope compilation error

2009-01-04 Thread Joel Feiner
On a related note, how do you actually get xscope to work?  I've tried 
following the manpage but whenever I connect to xscope with a client, it 
causes xscope to die with the message: Could not connect to Server and 
the reason given (if the debug level is high enough) is TransConnect() 
failed.

Sorry to hijack...

Samuel Thibault wrote:
 Rui Tiago Ca��o Matos, le Mon 05 Jan 2009 01:01:20 +, a �crit :
 I got xscope from git://anongit.freedesktop.org/~alanc/xscope but it
 doesn't compile:

 gcc -DHAVE_CONFIG_H -I.-D_BSD_SOURCE -DHAS_FCHOWN
 -DHAS_STICKY_DIR_BIT   -DUSE_XTRANS -g -O2 -MT scope.o -MD -MP -MF
 .deps/scope.Tpo -c -o scope.o scope.c
 scope.c:73: error: 'MAXHOSTNAMELEN' undeclared here (not in a function)

 I believe that, in Linux, the right thing to do is to #include
 linux/param.h

 You should rather just #includesys/param.h, which doesn't depend on
 linuxness.  That being said, the code should rather be rewriten into not
 using MAXHOSTNAMELEN unconditionally, since some systems do not have
 such arbitrary limitation.

 Samuel
 ___
 xorg mailing list
 xorg@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/xorg

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg