> > /usr/local/src/ctwm/ctwm-150718/util.c:131:2: error: unknown type name 
> > 'sigjmp_buf'
>
> That's a little more guessworky.  From a little manpage browsery, try
> this patch:
>
> === modified file 'util.c'
> --- util.c  2015-07-18 20:24:10 +0000
> +++ util.c  2015-07-18 20:28:24 +0000
> @@ -120,6 +120,7 @@
>  #endif
>
>  #ifdef JPEG
> +# define _POSIX_C_SOURCE 1
>  # include <setjmp.h>
>  # include <jpeglib.h>
>  # include <jerror.h>

That was nearly right but not quite.

Because I know so little about such things it took me quite a long time (with
various not quite helpful leads from google). Eventually I discovered the fix.

It should have been

> *** bak/util.c  Sat Jul 18 21:41:52 2015
> --- util.c      Sun Jul 19 01:30:35 2015
> ***************
> *** 121,124 ****
> --- 121,125 ----
>
>   #ifdef JPEG
> + # define __USE_POSIX
>   # include <setjmp.h>
>   # include <jpeglib.h>

i.e.
> + # define __USE_POSIX

instead of
> +# define _POSIX_C_SOURCE 1

With that change it compiles on my F22 desktop machine.

    ./ctwm -version

prints out "3.8.2-post"

I assume you'll install that, though I don't know how it will affect
other versions of linux.

I wonder whether I can switch from the old running version to this newly built
one to test it without having to log out and log in (which would be very
disruptive) if I replace the old ctwm binary with the new one and then invoke
the f.restart function via the menu option I had set up to invoke it?

Anyhow, I'll try to test it soon.

A remaining mystery is why I can't build the new version on my laptop also
running fedora 22. I may have some paths set up incorrectly or some missing
libraries, which I'll check out more carefully when I have more time.

Aaron

Reply via email to