>>>> "Vin" == Vin Shelton <acs(a)xemacs.org>
writes:
Vin> I recently installed XFree86-4.01 (from a contributed Mandrake RPM),
Vin> and I found I could not configure 21.2 from the CVS sources, because
Vin> configure detects that:
Vin> #define _XOPEN_SOURCE 500
Vin> should be defined in confdefs.h, and xmkmf has the following defines:
Vin> -D_POSIX_SOURCE -D_XOPEN_SOURCE
Vin> this causes confdefs.h to have both:
Vin> #define _XOPEN_SOURCE 500
Vin> ...
Vin> #define _XOPEN_SOURCE 1
Vin> This, in turn, causes the search for X11/Intrinsic.h to fail because
Vin> gcc emits the following errors:
Vin> confdefs.h:67: warning: `_XOPEN_SOURCE' redefined
Vin> confdefs.h:25: warning: this is the location of the previous definition
Vin> I have worked around the problem for the moment by changing the
Vin> definition in xmkmf to -D_XOPEN_SOURCE=500, but this problem probably
Vin> needs to be fixed. Martin, what's the best way to fix this?
I built XFree86 on my Linux system today, and did NOT have this
problem. Everything is fine. The symbols defined by xmkmf are:
checking for X defines extracted by xmkmf
Defining NARROWPROTO
Defining linux
Defining __i386__
Defining _POSIX_SOURCE
Defining _BSD_SOURCE
Defining _SVID_SOURCE
However, in xc/config/cf/linux.cf, I see:
#if LinuxCLibMajorVersion >= 6
#define LinuxSourceDefines -D_POSIX_C_SOURCE=199309L \
-D_POSIX_SOURCE -D_XOPEN_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE \
LinuxAdditionalIncludes LinuxGnuSourceDefines \
LinuxLocaleDefines
#else
#define LinuxSourceDefines -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 \
-D_BSD_SOURCE -D_SVID_SOURCE \
LinuxGnuSourceDefines LinuxLocaleDefines
This doesn't make sense to me, because I also have libc6:
(martin@lasker) ~cdx/import/xfree86/xc $ make VerifyOS
make -f xmakefile VerifyOS
make[1]: Entering directory `/project/xemacs/import/xfree86/xc'
Building on Linux 2.2.13-23 i686 [ELF] (2.2.13).
Linux Distribution: Unknown
libc version: 6.1.2
binutils version: 2.9
I could try to fix this without being able to reproduce the problem,
but I try to avoid doing this, especially when I don't understand how
the XFree86 config magic happens.