X debugging
Russell Shaw
rjshaw at netspace.net.au
Tue Jul 11 00:24:48 PDT 2006
reed at reedmedia.net wrote:
>>The line that fails is:
>>
>> if ((logFile = fopen(logFileName, "w")) == NULL)
>> FatalError("Cannot open log file \"%s\"\n", logFileName);
>>
>>Do i need to start X as a root user or something?
>
> Yes.
>
> A configuration option hs been commented out for this, because some think
> that opening the log file for writing is too late after reading
> configuration file.
>
> I think logging to stderr is good enough until the config file is parsed
> and then log to the file.
>
> But even after that is fixed, you will find at least a few more places
> where root is required. (See the archives.)
Hi,
I tried adding --enable-install-setuid --enable-debug
xorg-server-X11R7.1-1.1.0: ./configure CFLAGS="-g -O0" \
--with-mesa-source=/home/russell/SRC/Mesa-6.5 --enable-install-setuid --enable-debug
but i get new errors:
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../../../include
-I../../../include -I../../../include -I../../../include -I../../../include -I../../../include
-I../../../hw/xfree86 -I../../../hw/xfree86/include -I../../../hw/xfree86/common
-I../../../hw/xfree86/os-support -I../../../hw/xfree86/os-support/bus -I../../../os -I./../ddc
-I./../i2c -I./../loader -I./../rac -I./../parser -I./../scanpci -I./../vbe -I./../int10
-I./../vgahw -I./../dixmods/extmod -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DXFree86Server
-DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -I/usr/local/include -I../../../include -I../../../include -I../../../Xext
-I../../../composite -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi
-I../../../miext/shadow -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -g
-O0 -MT xf86Debug.lo -MD -MP -MF .deps/xf86Debug.Tpo -c xf86Debug.c -fPIC -DPIC -o .libs/xf86Debug.o
xf86Debug.c:48: warning: no previous prototype for 'xf86Break1'
xf86Debug.c:52: warning: no previous prototype for 'xf86Break2'
xf86Debug.c:56: warning: no previous prototype for 'xf86Break3'
xf86Debug.c:129: warning: no previous prototype for 'xf86PeekFb8'
xf86Debug.c:130: warning: no previous prototype for 'xf86PeekFb16'
xf86Debug.c:131: warning: no previous prototype for 'xf86PeekFb32'
...
The first error comes from:
xorg-server-X11R7.1-1.1.0/hw/xfree86/common/xf86Debug.c:48
_X_EXPORT void xf86Break1(void)
{
}
/usr/local/include/X11/Xfuncproto.h:
#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
# define _X_EXPORT __attribute__((visibility("default")))
# define _X_HIDDEN __attribute__((visibility("hidden")))
# define _X_INTERNAL __attribute__((visibility("internal")))
I've installed fixesproto-X11R7.1-4.0 and xproto-X11R7.1-7.0.5 into /usr/local,
and have PKG_CONFIG_PATH="/usr/local/lib/pkgconfig".
More information about the xorg
mailing list