This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Port of xlockmore-5.01.2 to latest Cygwin port of X11
- From: David A Bagley <bagleyd at tux dot org>
- To: jd108 at pacbell dot net (Joseph I. Davida)
- Cc: cygwin-xfree at cygwin dot com
- Date: Thu, 3 Oct 2002 23:23:35 -0400 (EDT)
- Subject: Re: Port of xlockmore-5.01.2 to latest Cygwin port of X11
- Reply-to: cygwin-xfree at cygwin dot com
Hi
I got xlock working on Cygwin.
WOW its my first time using Cygwin, I could believe how easy it was
to download and get running.
I just needed the below patch for logout.c
I use __CYGWIN__ for the #define variable.
I am using xlockmore-5.06ALPHA03.tar.bz2 (5.02 and greater has all the
other Cygwin patches built in).
I'll see that the logout.c patch gets in the next release.
Password works if you initially say
configure --enable-xlockrc
The first time you run xlock it will set up a key and store it in
.xlockrc
If you don't configure it that way it seems to kill my x server.
> I had to kludge it in order to make it compile
> correctly on Cygwin (on win2k).
> However, cygwin still does not properly support
> passwords, so xlock is unable to verify
> the password. This problem affects other programs that
> require password verification as well.
>
> Hopefully, xlockmore's maintaner will fix the configure
> script to recognize cygwin and generate the
> right #define's and #include's
>
>
> In particular, the files I had
> to change are:
>
>
> modes/dclock.c
> 903c903
> < extern long timezone;
> ---
> > // extern long timezone;
> due to confilict with timezone def in time.h
>
>
> /modes/solitare.cc Changed every occurance of round(..
> to myround(...
>
> because it was confilicting with round declaration in math.h
>
>
>
> xlock/logout.c
> 34a35
> > #include <signal.h>
>
>
> ./xlock/xlock.c
> 180a181,182
> > #define CYGWIN
> >
> 2697c2699
> < #if defined( SYSV ) || defined( SVR4 ) || ( __VMS_VER >= 70000000 )
> ---
> > #if defined( SYSV ) || defined( SVR4 ) || ( __VMS_VER >= 70000000 ) || defined( CYGWIN )
> 2744c2746
> < #if defined( SYSV ) || defined( SVR4 ) || ( __VMS_VER >= 70000000 )
> ---
> > #if defined( SYSV ) || defined( SVR4 ) || ( __VMS_VER >= 70000000 ) || defined( CYGWIN )
> 3640c3642
> < #if defined( SYSV ) || defined( SVR4 ) || ( __VMS_VER >= 70000000 )
> ---
> > #if defined( SYSV ) || defined( SVR4 ) || ( __VMS_VER >= 70000000 ) || defined( CYGWIN )
> 3708a3711
> >
>
>
> xmlock/Makefile
> 95c95
> < XMLOCKLIBS = -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib
> -L/usr/X11R6/lib -lXpm -lXmu -lXm -lXt -lX11
> ---
> > XMLOCKLIBS = -L/usr/X11R6/lib -lXpm -lXmu -lXm -lXt -lX11 -lSM -lICE
>
--
Cheers,
/X\ David A. Bagley
(( X bagleyd@tux.org http://www.tux.org/~bagleyd/
\X/ xlockmore and more ftp://ftp.tux.org/pub/tux/bagleyd