xscope compilation error
Joel Feiner
jafeiner at gmail.com
Sun Jan 4 18:15:29 PST 2009
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 +0000, 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>
More information about the xorg
mailing list