Re: Bug#238629: kali: FTBFS: Redeclaration of wchar_t
clone 238629 -1
retitle -1 x-dev: hideous namespace pollution in Xosdefs.h
severity -1 normal
On Wed, Mar 17, 2004 at 06:30:48PM -0800, Daniel Schepler wrote:
> Package: kali
> Severity: serious
> Version: 3.1-4
> >From my build log:
> cc -DXFORM -O2 -g -Wall -I/usr/include/X11 -c -o callbacks.o callbacks.c
> In file included from /usr/include/X11/forms.h:1762,
> from callbacks.c:80:
> /usr/include/X11/Xlib.h:78: error: conflicting types for `wchar_t'
> /usr/lib/gcc-lib/i486-linux/3.3.3/include/stddef.h:325: error: previous declaration of `wchar_t'
> callbacks.c: In function `forms_init':
> callbacks.c:181: warning: implicit declaration of function `winset'
> callbacks.c:182: warning: implicit declaration of function `winconstraints'
> callbacks.c: In function `SymmetryProc':
> callbacks.c:225: warning: implicit declaration of function `scheduleRedraw'
> callbacks.c: In function `PrintProc':
> callbacks.c:361: warning: passing arg 2 of `fl_show_question' makes integer from pointer without a cast
> make: *** [callbacks.o] Error 1
> make: Leaving directory `/tmp/buildd/kali-3.1'
> make: *** [build-stamp] Error 2
> Looking at Xlib.h, it appears that the wchar_t definition normally
> shouldn't be included, so my first guess would be that something is
> confusing the X headers somehow.
This is SO WRONG ... Xosdefs.h thinks that the presence of a definition
of SX means that it's running on some strange non-POSIX PC Unix clone or
other, and goes into crazy mode. If I rename SX to something else, it's
I'll apply a workaround to kali, but this is hideous namespace pollution
on the part of Xosdefs.h. Can we just ditch most of that file in Debian?
The __GNU__ bit at the end is the only part that seems possibly
Colin Watson [email@example.com]