From owner-freebsd-ports Thu Jul 6 1:24:53 2000 Delivered-To: freebsd-ports@freebsd.org Received: from blues.jpj.net (blues.jpj.net [204.97.17.146]) by hub.freebsd.org (Postfix) with ESMTP id 2516837B86F for ; Thu, 6 Jul 2000 01:24:50 -0700 (PDT) (envelope-from trevor@jpj.net) Received: from localhost (trevor@localhost) by blues.jpj.net (right/backatcha) with ESMTP id e668OYj29892; Thu, 6 Jul 2000 04:24:34 -0400 (EDT) Date: Thu, 6 Jul 2000 04:24:34 -0400 (EDT) From: Trevor Johnson To: Matthew Thyer Cc: Thomas Gellekum , bagleyd@tux.org, ports@FreeBSD.ORG Subject: Re: xlockmore-4.15 wont build with XFree86-4.0 In-Reply-To: <38CFCEF1.70EB200B@camtech.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 16 March, Matthew Thyer wrote: > Thomas Gellekum wrote: > > > > Matthew Sean Thyer 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 , the author of xlockmore, will > > appreciate patches. I don't run XFree86-4, so I don't know what's > > wrong. > > > > tg I also had this problem (Makefile,v 1.53 2000/05/19 08:58:41 tg). Adding --without-dpms to the CONFIGURE_ARGS of the port's makefile did the trick for me (Ye Olde 1/0 Switch is my monitor's only form of power-saving). If I run xlock from the command line, upon unlocking I receive these error messages: Error ! Cannot find the sound file /usr/lib/sounds/xlockmore//thank-you.au Error ! Cannot find the sound file /usr/lib/sounds/xlockmore//identify-please.au Error ! Cannot find the sound file /usr/lib/sounds/xlockmore//not-programmed.au Error ! Cannot find the sound file /usr/lib/sounds/xlockmore//complete.au > 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 > #include > -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; -- Trevor Johnson http://jpj.net/~trevor/gpgkey.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message