This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bash fails on BerkeleyDB configure

I ran into this problem while trying to run the BerkeleyDB 4.6.21 configure script with current Cygwin installed on a Windows64 machine. (Windows 2003 Server SP2 x86_64, using the Cygwin build of the x86_64-pc-mingw32 compiler from the mingw-64 project).

The script fails on a case statement. Pasting the case statement into a separate script by itself doesn't fail, so I can't send you a simple test case. But you can easily download the BerkeleyDB source code to reproduce the problem. The first failure starts at line 28024:

if test $ac_cv_type_u_int8_t = yes; then

case "1" in
u_int8_decl="typedef unsigned int u_int8_t;";;
u_int8_decl="typedef unsigned char u_int8_t;";;
u_int8_decl="typedef unsigned short u_int8_t;";;
u_int8_decl="typedef unsigned long u_int8_t;";;
u_int8_decl="typedef unsigned long long u_int8_t;";;
if test "" != "notfatal"; then
{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
{ (exit 1); exit 1; }; }

ac_cv_sizeof_unsigned_int is defined to 4 by prior tests. Likewise,
ac_cv_sizeof_unsigned_char is 1
ac_cv_sizeof_unsigned_short is 2
ac_cv_sizeof_unsigned_long is 4
ac_cv_sizeof_unsigned_long_long is 8

The test fails with "No unsigned 1-byte integral type". The script exits at that point. Getting past this (by explicitly setting variables to bypass the test) just runs into another failure as the script uses the same construct to set a bunch of other type defs.

Let me know if you need any more info.
  -- Howard Chu
  Chief Architect, Symas Corp.
  Director, Highland Sun
  Chief Architect, OpenLDAP

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]