[Bug: 21.5-b28] Found cause of --with-union-type error

robert delius royar xemacs at frinabulax.org
Wed Dec 31 14:48:12 EST 2008


The error appears to be caused by a bug in the way autoconf deals with 
WORDS_BIGENDIAN when configure runs on a G5.
The resulting src/config.h from autoconf 2.63 places
/* #undef WORDS_BIGENDIAN */
in src/config.h whereas 2.62- and 2.61-created configurse add
#define WORDS_BIGENDIAN 1
to src/config.h

When a 2.62 (or 2.61) created configure runs, it says
  checking whether byte ordering is bigendian... yes
but 2.63 script says
  checking whether byte ordering is bigendian... universal

I have no idea whether those are different answers, but they seem to be.

This appears to cause a conflict when --with-union-type is defined from 
configure.  I recreated configure with autoconf (version 2.61 and 2.62) 
and found that WORDS_BIGENDIAN was defined, and the resulting make 
worked even with unions used for Lisp_Object.

Could this point to the potential for even more subtle bugs

Here is the configuration that works fine when autoconf 2.62 is used:

./configure  '--with-mule' '--with-widgets=athena' '--with-athena=next'
  '--with-dialogs=athena' '--with-scrollbars=lucid' '--without-debug'
  '--without-error-checking' '--with-x11'
  '--prefix=/Users/royar/usr/local' '--with-png' '--with-jpeg'
  '--with-tiff' '--with-xmu' '--with-xim=no' '--enable-sound=none,esd'
  '--disable-xfs' '--enable-dump-in-exec' '--with-modules'
  '--enable-external-widget' '--with-dynamic' '--disable-kkcc'
  '--disable-mc-alloc' '--without-ipv6-cname' '--without-ldap'
  '--enable-optimization' '--with-cflags-optimization=-Os -pipe -mcpu=970
   -mtune=970 -mpim-altivec -arch ppc' '--with-xft=emacs,gauges,tabs'
  '--with-compiler=gcc-4.2' '--with-bignum=gmp' '--with-union-type'
   'CC=/usr/bin/gcc-4.2' 'CFLAGS=' 'LDFLAGS=-L/usr/lib -lncurses -lgmp
   -lz -L/usr/X11/lib -lpng -lXpm -lXft -lXrender -lXmu -lXt -lXext
   -lX11 -lSM  -lICE -lneXtaw -lfontconfig -L/opt/local/lib -ltiff -ljpeg
   -lesd'

-- 
Dr. Robert Delius Royar                   Associate Professor of English
Morehead State University                             Morehead, Kentucky




More information about the XEmacs-Beta mailing list