delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/26/08:10:41

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: "'Howard Chu'" <hyc AT highlandsun DOT com>, <cygwin AT cygwin DOT com>
References: <474AB3A1 DOT 2050608 AT highlandsun DOT com>
Subject: RE: Bash fails on BerkeleyDB configure
Date: Mon, 26 Nov 2007 13:10:13 -0000
Message-ID: <013701c8302d$ae91c730$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <474AB3A1.2050608@highlandsun.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 26 November 2007 11:53, Howard Chu wrote:

[ Howard, it's not convention to Cc: the poster when replying on the Cygwin
list, but since I directed you here from the Gcc list where it is the SOP,
please let me know if you have a preference either way. ]

> if test $ac_cv_type_u_int8_t = yes; then
>    :
> else
> 
>      case "1" in
>      "$ac_cv_sizeof_unsigned_int")
>          u_int8_decl="typedef unsigned int u_int8_t;";;
>      "$ac_cv_sizeof_unsigned_char")
>          u_int8_decl="typedef unsigned char u_int8_t;";;
>      "$ac_cv_sizeof_unsigned_short")
>          u_int8_decl="typedef unsigned short u_int8_t;";;
>      "$ac_cv_sizeof_unsigned_long")
>          u_int8_decl="typedef unsigned long u_int8_t;";;
>      "$ac_cv_sizeof_unsigned_long_long")
>          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; }; }
>          fi;;
>      esac
> fi
> 
> 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.

  Thanks for sending the report.  The fact that it doesn't reproduce when you
paste it into a script by itself makes me suspicious that perhaps we're
getting line-ending trouble here: maybe ac_cv_sizeof_unsigned_char has
actually been defined to "1\r".  This can happen if there are any text-mode
mount points involved, or if the configure script has managed to get the wrong
kind of line-ends.

> Let me know if you need any more info.

  First thing I guess I need to ask is "You didn't by any chance use a
standard windows GUI app to unpack the BerkeleyDB tarball, did you"?  Things
like winzip et al., that aren't unix-aware, often convert line-endings from LF
to CRLF - which bash doesn't like.

  If it's not that simple, then can you please run "cygcheck -s -v -r >
cygcheck.out" on the affected machine, and post it to the list (as an
attachment please) with your next post?  That will give us an overview of the
setup and config of the cygwin installation on the affected machine.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019