FLTK logo

[fltk.bugs] [HIGH] STR #1598: configure problem "U32" missing in config.h

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[HIGH] STR #1598: configure problem "U32" missing in config.h Albrecht Schlosser Feb 12, 2007  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Version: fltk 1.1-r5691 svn / cygwin.

Summary: configure does not define U32 (and U16) in config.h

I've seen some more reports in fltk.general regarding this problem. It may
be related to a recent upgrade of autoconf, but I'm not sure. Previous
versions didn't show this problem. Configure output will be attached in
file autoconf_U32.txt. There are some warnings: ": integer expression
expected 2" and (4 times) ": integer expression expected 4".

I upgraded my cygwin version recently, and I think that the problem arised
after upgrading, even without changing the fltk sources.

Autoconf version is now 2.61, but I don't know the previous version that
worked. IIRC, 2.60 had the problem, too.

My linux box with autoconf 2.59d does define U16 and U32:

#define U16 unsigned short
#define U32 unsigned
/* #undef U64 */

but this might also be a system related issue.

If someone can help and needs more info, please ask for it. I can't see
anything strange in config.log.

Albrecht

Link: http://www.fltk.org/str.php?L1598
Version: 1.1-current
fltk-r5691> make distclean
=== cleaning src ===
=== cleaning fluid ===
=== cleaning test ===
=== cleaning documentation ===
schlosser@pc-as /mnt/e/c-projekte/fltk-r5691
fltk-r5691> autoconf
schlosser@pc-as /mnt/e/c-projekte/fltk-r5691
fltk-r5691> ./configure
checking for gcc... gcc

 [---snip...]

checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
: integer expression expected 2
: integer expression expected 4
: integer expression expected 4
: integer expression expected 4
: integer expression expected 4
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes

 [---snip...]

---------------
from config.h:
---------------

/*
 * WORDS_BIGENDIAN:
 *
 * Byte order of your machine: 1 = big-endian, 0 = little-endian.
 */

#define WORDS_BIGENDIAN 0

/*
 * U16, U32, U64:
 *
 * Types used by fl_draw_image.  One of U32 or U64 must be defined.
 * U16 is optional but FLTK will work better with it!
 */

/* #undef U16 */
/* #undef U32 */
/* #undef U64 */

/*
 * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H, HAVE_SCANDIR:
 *
 * Where is <dirent.h> (used only by fl_file_chooser and scandir).
 */

#define HAVE_DIRENT_H 1

------------------------------------

fltk-r5691> ./fltk-config --version
1.1.8
fltk-r5691> autoconf --version
autoconf (GNU Autoconf) 2.61
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
fltk-r5691> gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

fltk-r5691> ld --version
GNU ld version 2.17.50 20060817
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.