From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C56F91F5A0 for ; Sat, 11 Feb 2023 12:06:42 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=R5KfDC3J; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQodz-00066J-4x; Sat, 11 Feb 2023 07:06:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQody-00066A-3S for bug-gnulib@gnu.org; Sat, 11 Feb 2023 07:06:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQodv-0005tJ-SM for bug-gnulib@gnu.org; Sat, 11 Feb 2023 07:06:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676117170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1HDsakjybDLzfiX+49OZFnonlXUUJ0TRXVxJ3Qn3Qj4=; b=R5KfDC3J2LxwyikHdA6XUzJ0cYswvNUU0at07zehI5jSMLa56sx8peJcnLGkxyWm7GTmn0 iz1NVoqO1Oxk61JzbGjJs8XLg7RHO4cEJoinVYmrzpP3mLMMEl716a7rfKlLPzYp8iF/Ac xz/EMMcFO5YiwcRpfGH8vd8EzpwRwLg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-611-v9T1ZDmHPU6hXZ2bB-eHrA-1; Sat, 11 Feb 2023 07:06:06 -0500 X-MC-Unique: v9T1ZDmHPU6hXZ2bB-eHrA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1CD9D811E9C; Sat, 11 Feb 2023 12:06:06 +0000 (UTC) Received: from calimero.vinschen.de (unknown [10.39.192.107]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E8A9B140EBF6; Sat, 11 Feb 2023 12:06:05 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 659E2A80C4D; Sat, 11 Feb 2023 13:06:04 +0100 (CET) Date: Sat, 11 Feb 2023 13:06:04 +0100 From: Corinna Vinschen To: Reuben Thomas Cc: Bruno Haible , bug-gnulib@gnu.org Subject: Re: [PATCH] Do not decorate symbols as dllexport on Cygwin Message-ID: References: <20230205194344.269174-1-vinschen@redhat.com> <3192712.XEUel18Ref@nimes> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Received-SPF: pass client-ip=170.10.129.124; envelope-from=vinschen@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org On Feb 11 11:36, Reuben Thomas wrote: > On Fri, 10 Feb 2023 at 14:21, Bruno Haible wrote: > > > It complains about the symbols defined in libiconv. This means, you need > > to invoke the Gnulib module 'iconv' and add $(LIBICONV) or $(LTLIBICONV) > > to the LDFLAGS. > > > > Bruno to the rescue again! Many thanks. > > Having added the iconv gnulib module, the Windows build works, but the > tests, which use a Cython module, are now broken. The actual error is: > > Traceback (most recent call last): > File "D:\a\recode\recode\tests\pytest", line 135, in main > module = __import__(base[:-3]) > File "D:/a/recode/recode/tests/./t21_names.py", line 2, in > import common > File "D:/a/recode/recode/tests/./common.py", line 10, in > import Recode > ImportError: DLL load failed while importing Recode: The specified module > could not be found. > > I assume that the "DLL load failed" indicates a link error. If you're sure that the native recode.dll has been built, is it possible that it's just not found, because it's not in Windows' DLL search path? Keep in mind that Windows searches DLLs in the OS default paths, in $PATH, or in the same dir the executable has been started from. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order So at a guess, you either just have to add the directory where recode.dll resides to $PATH, or you have to copy the DLL into a path already in $PATH. Corinna