LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   libXext XsetExtentionsErrorHandler (https://www.linuxquestions.org/questions/linux-from-scratch-13/libxext-xsetextentionserrorhandler-713857/)

cluelessme 03-23-2009 01:34 PM

libXext XsetExtentionsErrorHandler
 
When trying to compile libXext I keep getting this error

gcc -DHAVE_CONFIG_H -I. -I.. -DMALLOC_0_RETURNS_NULL -g -O2 -MT extutil.lo -MD -MP -MF .deps/extutil.Tpo -c extutil.c -fPIC -DPIC -o .libs/extutil.o
extutil.c:253: error: conflicting types for 'XSetExtensionErrorHandler'
/usr/include/X11/extensions/Xext.h:41: error: previous declaration of 'XSetExtensionErrorHandler' was here
make[2]: *** [extutil.lo] Error 1
make[2]: Leaving directory `/sources/xc/lib/libXext-1.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/xc/lib/libXext-1.0.4'
make: *** [all] Error 2

when I go to /usr/include/X11/extensions/Xext.h and read the file all it says on lin e41 is

extern XextErrorHandler XSetExtensionErrorHandler(
XextErrorHandler /* handler */

can't fint extutil.c file anywhere

bathory 03-23-2009 02:04 PM

What version of xextproto have you used? Because in Xext.h provided by xextproto-7.0.3 there is:
Code:

extern int (*XSetExtensionErrorHandler(
    int (*handler)(
                  Display *,
                  char *,
                  char *
                  )
))(
                  Display *,
                  char *,
                  char *
);

Note also that extutil.c is in libXext-1.0.4/src/extutil.c

cluelessme 03-23-2009 02:06 PM

I've tried version 1.0.3, 1.0.4.,and 1.0.5 and they all give the same error message.

bathory 03-23-2009 02:18 PM

Have you tried compiling xextproto 7.0.3, before libXext?

cluelessme 03-23-2009 02:27 PM

Thanks that worked I was using xextproto 7.0.5 and it refused to work with any of of the three libxext packages I had


All times are GMT -5. The time now is 05:11 PM.