From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 77D4F20248 for ; Fri, 12 Apr 2019 00:26:22 +0000 (UTC) Received: from localhost ([127.0.0.1]:56710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEk1M-0001d8-L9 for normalperson@yhbt.net; Thu, 11 Apr 2019 20:26:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEk1I-0001cz-En for bug-gnulib@gnu.org; Thu, 11 Apr 2019 20:26:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEk1G-0007P6-6W for bug-gnulib@gnu.org; Thu, 11 Apr 2019 20:26:16 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::7]:33085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEk1F-00078b-BJ for bug-gnulib@gnu.org; Thu, 11 Apr 2019 20:26:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1555028767; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=JLO4S1pCnMzJqtJ2YhteisxxeQc948kOUPKgWNVTqr4=; b=VppifqgMFyd1Wsk92Kx9zjYOB/Zq5jcxLhBAPJt0Sh3mDJ9WawSRH8jrMM6qLS1sIi DXZ+kRgkeESskySgVgrYqqWERQVZ03LvHzxfYY8Sfi3vsh+Srehfo9ePka0FwM69CZok K/8wyh7sdDftDsG+6pzEPs3dBwkiLzaMB3ILN+PLanfafEl/N2Ky7RmZihMdiUXj4Kfj ObQWZSj3wNydvQqhM9yvq2lUKMGLe7MZKX0BoRTEoHwn6jSikdomd9dUoeT19Bv9YiVl HLvXw0haYy04mr0CTkkWoKozRMLtfmdNecBtBIXPLn2MwuDaYcGGCts6QEGzyVb1Lf+I nQYQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf3zZFW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.18 DYNA|AUTH) with ESMTPSA id m03afev3C0Q7JLd (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 12 Apr 2019 02:26:07 +0200 (CEST) From: Bruno Haible To: Tim =?ISO-8859-1?Q?R=FChsen?= Subject: Re: Tests on MinGW: undef ref pthread_mutex_lock/unlock Date: Fri, 12 Apr 2019 02:26:06 +0200 Message-ID: <9223407.ZOvgIUZfrP@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <4256bd91-1053-6168-d2c4-f42549a2b488@gmx.de> <3195541.m934HO7QNj@omega> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::7 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Tim, The points to look at are: - How does the configure script behave while running the expanded code that comes from threadlib.m4? Try "sh -x ./configure ..." for this exercise. - Why does gl_lock_unlock expand to a call to pthread_mutex_unlock? Only if USE_POSIX_THREADS is defined. And where does USE_POSIX_THREADS come from on your system? > In file included from /usr/share/mingw-w64/include/signal.h:10, > from ./signal.h:52, > from pthread_sigmask.c:20: > pthread_sigmask.c:34:1: error: expected identifier or =E2=80=98(=E2=80=99= before numeric > constant > pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask) > ^~~~~~~~~~~~~~~ > make[4]: *** [Makefile:10495: pthread_sigmask.o] Fehler 1 This one, you can start with a "gcc -E" command, to see where a macro expansion of pthread_sigmask come from. Btw, I never build with mingw-pthreads installed. But even with mingw-pthre= ads installed, gnulib modules ought to not use it; they ought to use the Windows API instead. Bruno