emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile failure due to Xaw3d include file issues


From: Ulrich Mueller
Subject: Compile failure due to Xaw3d include file issues
Date: Tue, 17 Apr 2007 17:18:27 +0200

[Resending, since my first message didn't appear on the list for some reason.]

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. 

Configure defines HAVE_XAW3D=1 in src/config.h, but in spite of this
include files are expected to be in /usr/include/X11/Xaw
(e.g., Paned.h) that don't exist there (since libX11 is not
installed).

Xaw3d installs its own include files, but they are in
/usr/include/X11/Xaw3d (there is a Paned.h, too).

On the other hand, if I install libXaw on the system and compile Emacs
(the include files are there and compilation succeeds now), ldd or
scanelf show that the libXaw _library_ is not needed:

   $ scanelf -n src/emacs
    TYPE   NEEDED FILE 
   ET_EXEC 
libXaw3d.so.8,libXmu.so.6,libXt.so.6,libSM.so.6,libICE.so.6,libXext.so.6,libX11.so.6,libncurses.so.5,libm.so.6,libc.so.6
 src/emacs 

So a possible workaround is to install in addition libX11 during build
time, while at run time it is not required. This doesn't look like a
clean solution, however.

See also Gentoo bug #174453: <http://bugs.gentoo.org/show_bug.cgi?id=174453>


>From config.log:

     $ ./configure --prefix=/usr --host=i686-pc-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --program-suffix=-emacs-22 
--without-carbon --without-sound --with-x --without-xpm 
--with-toolkit-scroll-bars --without-jpeg --without-tiff --without-gif 
--without-png --with-x-toolkit=athena --without-gtk --with-x-toolkit=lucid 
--build=i686-pc-linux-gnu

   hostname = a1iulm2
   uname -m = i686
   uname -r = 2.6.20-gentoo-r5
   uname -s = Linux
   uname -v = #1 Tue Apr 10 10:47:47 CEST 2007

Error message from "make bootstrap":

   make[3]: Entering directory 
`/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/lwlib'
   i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE   -DUSE_LUCID  -D_BSD_SOURCE    
-march=pentium-m -O2 -pipe -DHAVE_CONFIG_H -Demacs -I. -I../src 
-I/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/lwlib 
-I/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/lwlib/../src
 /var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/lwlib/lwlib.c
   i686-pc-linux-gnu-gcc  -c -D_BSD_SOURCE   -Demacs -DHAVE_CONFIG_H 
-DUSE_LUCID  -I. 
-I/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/src 
-D_BSD_SOURCE  -march=pentium-m -O2 -pipe dispnew.c
   
/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/lwlib/lwlib.c:51:27:
 error: X11/Xaw/Paned.h: No such file or directory
   make[3]: *** [lwlib.o] Error 1
   make[3]: Leaving directory 
`/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/lwlib'
   make[2]: *** [really-lwlib] Error 2
   make[2]: *** Waiting for unfinished jobs....
   make[2]: Leaving directory 
`/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97/src'
   make[1]: *** [bootstrap-build] Error 2
   make[1]: Leaving directory 
`/var/tmp/portage/app-editors/emacs-cvs-22.0.97/work/emacs-22.0.97'
   make: *** [bootstrap] Error 2

(If I do "make -k bootstrap", there is the same issue for src/xmenu.c
and src/xfns.c.)

Ulrich




reply via email to

[Prev in Thread] Current Thread [Next in Thread]