[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile failure due to Xaw3d include file issues
From: |
Chong Yidong |
Subject: |
Re: Compile failure due to Xaw3d include file issues |
Date: |
Wed, 18 Apr 2007 01:24:20 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) |
Ulrich Mueller <address@hidden> writes:
> Hi,
> not entirely sure if this is really an Emacs bug (or if X.Org is to
> blame):
>
> Emacs 22.0.97 compilation fails on a system where:
> - Xaw3d is installed,
> - libXaw is not installed.
Thanks for the bug report.
Could you test the following patch?
If you could take the time, please see if it works as expected with
all 4 combinations of Xaw3d and libXaw installed/not installed.
*** emacs/src/xfns.c.~1.681.~ 2007-03-24 11:49:48.000000000 -0400
--- emacs/src/xfns.c 2007-04-18 01:18:52.000000000 -0400
***************
*** 72,79 ****
--- 72,84 ----
#include <X11/Shell.h>
#ifndef USE_MOTIF
+ #ifdef HAVE_XAW3D
+ #include <X11/Xaw3d/Paned.h>
+ #include <X11/Xaw3d/Label.h>
+ #else /* !HAVE_XAW3D */
#include <X11/Xaw/Paned.h>
#include <X11/Xaw/Label.h>
+ #endif /* HAVE_XAW3D */
#endif /* USE_MOTIF */
#ifdef USG
*** emacs/src/xmenu.c.~1.317.~ 2007-01-20 23:18:14.000000000 -0500
--- emacs/src/xmenu.c 2007-04-18 01:15:43.000000000 -0400
***************
*** 82,88 ****
--- 82,92 ----
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#ifdef USE_LUCID
+ #ifdef HAVE_XAW3D
+ #include <X11/Xaw3d/Paned.h>
+ #else /* !HAVE_XAW3D */
#include <X11/Xaw/Paned.h>
+ #endif /* HAVE_XAW3D */
#endif /* USE_LUCID */
#include "../lwlib/lwlib.h"
#else /* not USE_X_TOOLKIT */
*** emacs/lwlib/lwlib.c.~1.55.~ 2007-02-27 23:25:05.000000000 -0500
--- emacs/lwlib/lwlib.c 2007-04-18 01:21:44.000000000 -0400
***************
*** 48,54 ****
--- 48,58 ----
#endif /* not USE_MOTIF && USE_LUCID */
#endif
#if defined (USE_XAW)
+ #ifdef HAVE_XAW3D
+ #include <X11/Xaw3d/Paned.h>
+ #else /* !HAVE_XAW3D */
#include <X11/Xaw/Paned.h>
+ #endif /* HAVE_XAW3D */
#include "lwlib-Xaw.h"
#endif
*** emacs/lwlib/lwlib-Xaw.c.~1.25.~ 2007-02-26 22:07:08.000000000 -0500
--- emacs/lwlib/lwlib-Xaw.c 2007-04-18 01:22:33.000000000 -0400
***************
*** 35,46 ****
--- 35,55 ----
#include <X11/CoreP.h>
#include <X11/Shell.h>
+ #ifdef HAVE_XAW3D
+ #include <X11/Xaw3d/Scrollbar.h>
+ #include <X11/Xaw3d/Paned.h>
+ #include <X11/Xaw3d/Dialog.h>
+ #include <X11/Xaw3d/Form.h>
+ #include <X11/Xaw3d/Command.h>
+ #include <X11/Xaw3d/Label.h>
+ #else /* !HAVE_XAW3D */
#include <X11/Xaw/Scrollbar.h>
#include <X11/Xaw/Paned.h>
#include <X11/Xaw/Dialog.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Command.h>
#include <X11/Xaw/Label.h>
+ #endif /* HAVE_XAW3D */
#include <X11/Xatom.h>
- Compile failure due to Xaw3d include file issues, Ulrich Mueller, 2007/04/17
- Re: Compile failure due to Xaw3d include file issues,
Chong Yidong <=
- Re: Compile failure due to Xaw3d include file issues, Jan Djärv, 2007/04/18
- Re: Compile failure due to Xaw3d include file issues, Ulrich Mueller, 2007/04/18
- Re: Compile failure due to Xaw3d include file issues, Glenn Morris, 2007/04/18
- Re: Compile failure due to Xaw3d include file issues, Ulrich Mueller, 2007/04/18
- Re: Compile failure due to Xaw3d include file issues, Chong Yidong, 2007/04/18
- Re: Compile failure due to Xaw3d include file issues, Glenn Morris, 2007/04/19
- Re: Compile failure due to Xaw3d include file issues, Chong Yidong, 2007/04/19