as it says in http://lists.freedesktop.org/archives/xorg/2009-July/046521.html dpmsstr.h is splited up into dpmsconst.h and dpmsproto. so, solution is to change X11/extensions/dpmsstr.h to X11/extensions/dpmsconst.h in xfpm-dmps.c while compiling against new xextproto lib
(In reply to comment #0) > as it says in http://lists.freedesktop.org/archives/xorg/2009-July/046521.html > dpmsstr.h is splited up into dpmsconst.h and dpmsproto. > > so, solution is to change X11/extensions/dpmsstr.h to > X11/extensions/dpmsconst.h in xfpm-dmps.c while compiling against new xextproto > lib Many thanks for the report, i'm following up this thread now, i need a version macro to check xextproto version to keep backward compatibility. will keep you informed.
AFAIK, you're supposed to use dpms.h only (which is shipped with libXext as of 1.1, previously it was shipped by xextproto) This simple patch makes it compile and work fine over here: diff --git a/src/xfpm-dpms.h b/src/xfpm-dpms.h index 9a5b1d4..067622f 100644 --- a/src/xfpm-dpms.h +++ b/src/xfpm-dpms.h @@ -34,7 +34,6 @@ #include <gdk/gdkx.h> #include <X11/Xproto.h> #include <X11/extensions/dpms.h> -#include <X11/extensions/dpmsstr.h> G_BEGIN_DECLS
(In reply to comment #2) > AFAIK, you're supposed to use dpms.h only (which is shipped with libXext as of > 1.1, previously it was shipped by xextproto) > > This simple patch makes it compile and work fine over here: > diff --git a/src/xfpm-dpms.h b/src/xfpm-dpms.h > index 9a5b1d4..067622f 100644 > --- a/src/xfpm-dpms.h > +++ b/src/xfpm-dpms.h > @@ -34,7 +34,6 @@ > #include <gdk/gdkx.h> > #include <X11/Xproto.h> > #include <X11/extensions/dpms.h> > -#include <X11/extensions/dpmsstr.h> > > G_BEGIN_DECLS This will make xfpm compiles on the newer xextproto?
Exactly, compiles and works fine (DPMS also tested) here, haven't checked on older libXext/xextproto though
version 0.8.x no longer supported.