Date: Thu, 16 Mar 2000 04:27:05 +1030 From: Matthew Thyer <thyerm@camtech.net.au> To: Thomas Gellekum <tg@melaten.rwth-aachen.de>, bagleyd@tux.org Cc: ports@FreeBSD.org Subject: Re: xlockmore-4.15 wont build with XFree86-4.0 Message-ID: <38CFCEF1.70EB200B@camtech.net.au> References: <Pine.BSF.4.21.0003152252450.2380-100000@dx4.my-unregistered-domain.com> <kq8zzkwgn2.fsf@cip12.melaten.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Thomas Gellekum wrote: > > Matthew Sean Thyer <me@camtech.net.au> writes: > > > ===> Building for xlockmore-4.15 > > cc -c -o ./xlock.o -DHAVE_CONFIG_H > > -DDEF_FILESEARCHPATH=\"/usr/X11R6/lib/X11/app-defaults/%N%C%S:/usr/X11R6/lib/X11/app-defaults/%N%S\" -I > > . -I.. -I../.. -I/usr/X11R6/include -I/usr/X11R6/include > > -I/usr/X11R6/include/X11 -I/usr/X11R6/include -O -pipe ./xlock.c > > In file included from ./xlock.c:594: > > /usr/X11R6/include/X11/extensions/dpms.h:48: syntax error before `CARD16' > > I'm sure David Bagley <bagleyd@tux.org>, the author of xlockmore, will > appreciate patches. I don't run XFree86-4, so I don't know what's > wrong. > > tg Through some simple hacking I've managed to get xlockmore-4.15 to compile, install and run as usual under XFree86 version 4.0. Note these are minimal changes to make it work and are probably not the right thing to do but I dont care as I'm happy now that it works! Hopefully someone more enlightened than me (the author maybe?) can fix the program properly to cope with XFree86 version 4.X What I did: 1) Removed the -lXdpms from XLOCKLIBS in modes/Makefile 2) changed xlock/xlock.c as follows: new: {38} diff -u xlock/xlock.c.orig xlock/xlock.c --- xlock/xlock.c.orig Thu Mar 16 04:04:15 2000 +++ xlock/xlock.c Thu Mar 16 04:04:30 2000 @@ -591,8 +591,8 @@ #endif #ifdef USE_DPMS #define MIN_DPMS 30 /* 30 second minimum */ +#include <X11/Xproto.h> #include <X11/extensions/dpms.h> -extern unsigned char DPMSQueryExtension(Display *, int *, int *); extern int DPMSGetTimeouts(Display *, unsigned short *, unsigned short *, unsigned short *); extern int DPMSSetTimeouts(Display *, unsigned short, unsigned short, unsigned short); extern int dpmsstandby; -- /=======================================================================\ | Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au | \=======================================================================/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38CFCEF1.70EB200B>