When I configure and build 21.5.28 on a Fedora-6 system, fully updated,
I get a few warnings both from configure and from compilation. The
resulting program seems to run OK, but you indicated that you wanted
reports also about warnings. There are a few issues with the finished
program, but I will put them in separate messages.
I will put a condensed version of the warnings in this message, and the
complete logs will be available at
http://www.control.lth.se/user/leif.andersson/xemacs-21.5.28/
The configure command line is:
---------------------------------------------------
VERSION=21.5.28
BASEDIR=/opt/xemacs
BUILDDIR=`pwd`
../xemacs-21.5.28/configure \
--prefix=$BASEDIR/xemacs-$VERSION \
--with-prefix=no \
--with-ldap=no \
--with-gnome=yes \
--with-msw=no \
--with-file-coding=yes \
--enable-database=no \
--with-mule=yes \
--with-canna=no \
--with-xim=no \
--with-wnn=no \
--with-default-eol-detection=yes \
--with-optimization=yes \
--with-error-checking=yes \
--with-athena=3d \
--with-xft=emacs \
==========================================================
The configure warnings are (lines broken by mailer):
-----------------------------------------
configure: creating ./config.status
config.status: creating Makefile.in
config.status: WARNING: /tmp/leif/xemacs-21.5.28/Makefile.in.in seems
to ignore the --datarootdir setting
config.status: creating lib-src/Makefile.in
config.status: WARNING: /tmp/leif/xemacs-21.5.28/lib-src/Makefile.in.in
seems to ignore the --datarootdir setting
config.status: creating lwlib/Makefile.in
config.status: creating src/Makefile.in
config.status: creating src/paths.h
config.status: creating src/xemacs.def.in
config.status: creating lib-src/config.values
config.status: WARNING:
/tmp/leif/xemacs-21.5.28/lib-src/config.values.in seems to ignore the
--datarootdir setting
config.status: creating lib-src/ellcc.h
config.status: creating src/config.h
config.status: creating lwlib/config.h
config.status: executing default commands
==============================================================
A few of the compilation warnings are:
-----------------------------------
gcc -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wdeclaration-after-statement -Wshadow -Wmissing-declarations
-Wmissing-prototypes -Wstrict-prototypes -g -O3 -I. -I../src
-I/tmp/leif/xemacs-21.5.28/lib-src -I/tmp/leif/xemacs-21.5.28/src
-DHAVE_CONFIG_H -I/usr/include/freetype2 -DVERSION='"21.5-b28"'
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c getopt.o getopt1.o regex.o
-lgpm -lncurses -lasound -lm -lutil -o ootags
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c: In function 'C_entries':
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c:2642: warning:
'savetok.buffer' may be used uninitialized in this function
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c:2642: warning:
'savetok.linepos' may be used uninitialized in this function
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c:2642: warning:
'savetok.lineno' may be used uninitialized in this function
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c:2642: warning:
'savetok.linelen' may be used uninitialized in this function
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c:2642: warning: 'savetok.named'
may be used uninitialized in this function
/tmp/leif/xemacs-21.5.28/lib-src/ootags.c:2642: warning: 'savetok.str'
may be used uninitialized in this function
==========================================================================
-----------------------------------------------------------------------
gcc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wunused-parameter -g -O3 -Demacs -I.
-I/tmp/leif/xemacs-21.5.28/src -DHAVE_CONFIG_H -I/usr/include/freetype2
/tmp/leif/xemacs-21.5.28/src/console.c
/tmp/leif/xemacs-21.5.28/src/console.c: In function 'Fset_input_mode':
/tmp/leif/xemacs-21.5.28/src/console.c:1146: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/tmp/leif/xemacs-21.5.28/src/console.c:1147: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/tmp/leif/xemacs-21.5.28/src/console.c: In function 'Fcurrent_input_mode':
/tmp/leif/xemacs-21.5.28/src/console.c:1178: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/tmp/leif/xemacs-21.5.28/src/console.c:1180: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/tmp/leif/xemacs-21.5.28/src/console.c:1181: warning: dereferencing
type-punned pointer will break strict-aliasing rules
=================================================================
There are quite a lot of these warnings. Please see the complete logs.
My knowledge of English and C jargon is not enough to understand the
expressions 'type-punned' and 'strict-aliasing', and Google gave just a
big set of similar warnings. Can anyone give a quick explanation?
Leif Andersson
Lund University, Sweden
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta