From owner-freebsd-questions Mon Jul 1 9:59:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3D9837B400; Mon, 1 Jul 2002 09:59:51 -0700 (PDT) Received: from jet.franken.de (p50849ABA.dip.t-dialin.net [80.132.154.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3271C43E09; Mon, 1 Jul 2002 09:59:50 -0700 (PDT) (envelope-from col@jet.franken.de) Received: (from col@localhost) by jet.franken.de (8.11.1/8.11.1) id g61GxdA20334; Mon, 1 Jul 2002 18:59:39 +0200 Date: Mon, 1 Jul 2002 18:59:38 +0200 From: Marcus Meissner To: Gerald Pfeifer Cc: Scott Bolte , freebsd-questions@freebsd.org, freebsd-emulators@freebsd.org, wine-devel@winehq.com Subject: Re: heads up: wine 20020605 broken on FreeBSD, workaround included Message-ID: <20020701185938.A20061@jet.franken.de> References: <200207011338.g61DcQ601786@crag.niss.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from pfeifer@dbai.tuwien.ac.at on Mon, Jul 01, 2002 at 04:18:47PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jul 01, 2002 at 04:18:47PM +0200, Gerald Pfeifer wrote: > [ I'm now also Cc:ing this to the Wine developers, thus the full-quote. > In fact, all non-GLIBC platforms seem to be affected by this bug! ] > > Based on your pointer, I believe I found the problem. In aclocal.m4 we > have: > > AC_DEFUN([WINE_CHECK_ERRNO], > [AC_CACHE_CHECK([for reentrant libc: $1],[wine_cv_libc_r_$1], > [AC_TRY_RUN([int myerrno = 0; > char buf[256]; > int *$1(){return &myerrno;} > main(){connect(0,buf,255); exit(!myerrno);}], > wine_cv_libc_r_$1=yes, wine_cv_libc_r_$1=no, > wine_cv_libc_r_$1=yes)]) > AS_IF([test "$wine_cv_libc_r_$1" = "yes"],[$2],[$3])]) > > which, in configure, becomes: > > int myerrno = 0; > char buf256; > int *__error(){return &myerrno;} > main(){connect(0,buf,255); exit(!myerrno);} > > That is, instead of an array of 256 characters, we have one character, > and the invocation of connect() is definitely incorrect. > > Could someone more familiar with autoconf please have a look at this? The [256] is evaluated and replaced by 256 by m4. So this is not a glibc, but an autoconf problem. What is the autoconf version used there? Ciao, Marcus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message