Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2000 04:24:34 -0400 (EDT)
From:      Trevor Johnson <trevor@jpj.net>
To:        Matthew Thyer <thyerm@camtech.net.au>
Cc:        Thomas Gellekum <tg@melaten.rwth-aachen.de>, bagleyd@tux.org, ports@FreeBSD.ORG
Subject:   Re: xlockmore-4.15 wont build with XFree86-4.0
Message-ID:  <Pine.BSI.4.21.0007060415020.26714-100000@blues.jpj.net>
In-Reply-To: <38CFCEF1.70EB200B@camtech.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 March, Matthew Thyer wrote:

> 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

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 <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;
--
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.21.0007060415020.26714-100000>