FVWM: Re: fvwm 2.0.44, finially

From: Mark Borges <mdb_at_cdc.noaa.gov>
Date: 17 Jan 1997 10:59:14 -0700

>> On Wed, 15 Jan 1997 17:29:21 -0500,
>> Andrew Veliath(AV) wrote:
Mark> Has anyone successfully compiled 2.0.44 against the new
Mark> X11R6.3 library?

Mark> "/usr/local/x11r6.3/include/X11/Xlib.h", line 71: identifier
Mark> redeclared: wchar_t current : ulong previous: long :
Mark> "/usr/include/stdlib.h", line 61 cc: acomp failed for
Mark> GetFont.c make[1]: *** [GetFont.o] Error 2
Mark> "/usr/local/x11r6.3/include/X11/Xlib.h", line 71: identifier
Mark> redeclared: wchar_t current : ulong previous: long :
Mark> "/usr/include/stdlib.h", line 61 "add_window.c", line 251:

AV> A diff -u produced a 200 line diff between the Xlib.h versions, and I

??

Are you sure you're comparing X11R6.1 and X11R6.3 as distributed by
ftp.x.org (not XFree86)?

My diff only says,

$ diff -c /usr/local/x11r6.1/include/X11/Xlib.h /usr/local/x11r6.3/include/X11/Xlib.h
*** /usr/local/x11r6.1/include/X11/Xlib.h Sun Mar 17 08:12:53 1996
--- /usr/local/x11r6.3/include/X11/Xlib.h Tue Jan 14 13:21:45 1997
***************
*** 1,4 ****
! /* $XConsortium: Xlib.h /main/118 1995/09/19 10:00:22 kaleb $ */
  /*
  Copyright (c) 1985, 1986, 1987, 1991 X Consortium
--- 1,4 ----
! /* $XConsortium: Xlib.h /main/119 1996/09/28 16:35:29 rws $ */
  /*
  Copyright (c) 1985, 1986, 1987, 1991 X Consortium
$

I'm on a Solaris-2.5/Sparc system, if it matters.

AV> suspect your problem with with conflicting wchar_t declarations. The
AV> "replace this with #include or typedef appropriate for your system"
AV> comment might be of use here.

AV> Xlib.h:61 from R6.3:

AV> #ifndef X_WCHAR
AV> #ifdef X_NOT_STDC_ENV
AV> #define X_WCHAR
AV> #endif
AV> #endif

AV> #ifndef X_WCHAR
AV> #include <stddef.h>
AV> #else
AV> /* replace this with #include or typedef appropriate for your system */
AV> typedef unsigned long wchar_t;
AV> #endif

This is the Xlib.h fragment I see in both R6.1 and R6.3. The only
thing I can see that could cause the error is that X_NOT_STDC_ENV must
be defined in the R6.3 xmkmf but not in the R6.1 xmkmf. Otherwise,
X_WCHAR is not defined (as under R6.1 apparently) and stddef.h gets
pulled in. Although the error from cc complained about stdlib.h <->
Xlib.h inconsistency, not stddef.h <-> Xlib.h inconsistency, so I'm
still confused, and a grep of the R6.1 xmkmf generated Makefile
doesn't contain `X_NOT_STDC_ENV'. I confess I'm not real proficient in
xmkmf (or cc), so I may be missing something obvious to others.

Note that stddef.h defines,

#ifndef _WCHAR_T
#define _WCHAR_T
typedef long wchar_t;
#endif

I suppose a Q & D fix would be to change the line in Xlib.h to agree,
but I'd really like to understand why the R6.3 xmkmf build fails.

BTW, are these compiler warnings

  "add_window.c", line 251: warning: integer overflow detected: op "<<"

and

  prototype: pointer to function(int) returning void : "/usr/include/signal.h", line 37
  argument : pointer to function(void) returning void

anything to be concerned about?

Thanks.

-- 
  -mb-
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jan 17 1997 - 11:59:46 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST