delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/08/15/16:29:33

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Wed, 15 Aug 2001 16:29:16 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Does CVS build?
Message-ID: <20010815162916.A28118@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20010815132450 DOT A1468 AT dothill DOT com> <3B7AEC05 DOT 7FBF0C8C AT yahoo DOT com> <20010815155157 DOT B20199 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <20010815155157.B20199@redhat.com>; from cgf@redhat.com on Wed, Aug 15, 2001 at 03:51:57PM -0400

On Wed, Aug 15, 2001 at 03:51:57PM -0400, Christopher Faylor wrote:
>>This is caused by the following patch.  What's up Chris?
>>
>>Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf AT cygnus DOT com>
>>
>>        * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, >under
>>        Cygwin.
>
>WIP.  I know that you will all use your substantial programming skills
>to work around this problem while libiberty is being fixed.

Here is a libiberty patch to try.  configure has to be regenerated after applying
this patch.

cgf

Index: configure.in
===================================================================
RCS file: /cvs/uberbaum/libiberty/configure.in,v
retrieving revision 1.33
diff -p -r1.33 configure.in
*** configure.in	2001/07/05 17:24:39	1.33
--- configure.in	2001/08/15 20:04:49
*************** if test -n "${with_target_subdir}"; then
*** 177,184 ****
      # Of the functions in $checkfuncs, newlib only has strerror.
      AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR)
  
!     setobjs=yes
! 
    fi
  
  else
--- 177,186 ----
      # Of the functions in $checkfuncs, newlib only has strerror.
      AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR)
  
!     case "$host" in
! 	*-*-cygwin*) ;;
! 	*) setobjs=yes ;;
!     esac
    fi
  
  else
*************** if test -z "${setobjs}"; then
*** 221,233 ****
      setobjs=yes
      ;;
  
-   esac
- fi
- 
- if test -z "${setobjs}"; then
- 
-   case "${host}" in
- 
    *-*-cygwin*)
      # The Cygwin library actually uses a couple of files from
      # libiberty when it is built.  If we are building a native
--- 223,228 ----
*************** if test -z "${setobjs}"; then
*** 247,252 ****
--- 242,272 ----
        funcs="`echo $funcs | sed -e 's/random//'`"
        LIBOBJS="$LIBOBJS random.o"
        vars="`echo $vars | sed -e 's/sys_siglist//'`"
+       # Newer cygwins define sys_errlist and sys_nerr.
+       # We have a chicken/egg situation here, though.  How do we know that
+       # the toolchain being built contains a newer cygwin?
+       # The code below checks for the existence of sys_errlist in the
+       # winsup/cygwin/cygwin.din file.  The assumption is that you are going
+       # to be building a dll which contains this global.
+       # If this is not found then check if the export is in the library
+       # that is used by GCC.  Define the appropriate libiberty_cv_var variables
+       # if so.
+       if test -z "$libiberty_cv_var_sys_errlist"
+       then
+ 	  eval `sed -n -e 's/^sys_errlist.*/libiberty_cv_var_sys_errlist=yes/p' \
+ 		       -e 's/^sys_nerr .*/libiberty_cv_var_sys_nerr=yes/p' \
+ 		    "$srcdir/../winsup/cygwin/cygwin.din" 2>/dev/null`
+ 	  if test -z "$libiberty_cv_var_sys_errlist"
+ 	  then
+ 	      for v in sys_errlist sys_nerr; do
+ 		  AC_TRY_LINK([int *p;], [extern int _imp__$v; p = &_imp__$v;],
+ 			       [eval "libiberty_cv_var_$v=yes"],
+ 			       [eval "libiberty_cv_var_$v=no"])
+ 	      done
+ 	  fi
+       fi
+       test -z "$libiberty_cv_var_sys_errlist" && libiberty_cv_var_sys_errlist=no
+       test -z "$libiberty_cv_var_sys_nerr" && libiberty_cv_var_sys_nerr=no
        checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
      fi
      ;;

- Raw text -


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