delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/05/06:49:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D84D53858282
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1709639381;
bh=Z/d0hYUn2WPnlwDrhPeJUIIG8g0O58ZZ5UxJzlb/slA=;
h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=E7gIEMtyTHGfRXvObBRcQNL1bwAi2zN1dFKuYhq24MPmRJCS8qbRIgKIOZr8a86Hn
tSBOTw489shncxbgW79LIehPGW1WZJ8UiHM3JV5O6bmvCacAVN7eX07AtscDX2bxAT
lPuOEAqPYtjDsYUtCHjH2ga2ktjY7BimZV4hrIXk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 81FEC3858CDA
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 81FEC3858CDA
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709639328; cv=none;
b=JY/ZxT3t/2zMhJiYfAvDX91Qvbw/wazBHw5TZgonYhQQtlwZl+MhEJL4unDA+zChvy8do17YHUcWqNAWNxwTpgqO5EoFW10eX/HDhU8QacFTbQZrSaqPbM44mTLvWHLZ0KParN30KJ9COmcgQMQ0q5/fFDhU35knp+07p1mJz2U=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1709639328; c=relaxed/simple;
bh=GKQVYkJPbx7CImeUcBn3FBh6IQKRovLJtKoNoJT2QiE=;
h=DKIM-Signature:Date:Message-Id:To:Subject:From:Mime-Version;
b=th7HfjlJknaNhuPD50hGBrOroBfgYD3+m24upDLeaRmpq+757oGzLKemV1AL+GbJ8nvWoCIK2UleiMZbZpmPyFxmAAdGCZqD5yy5qKbTXc19bjD04H2pIaaiV5hWP5cwkVXI/GeX89+Fb49d7CbcC/m28akd1WTTQ6UCcFQ5/Vk=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Tue, 05 Mar 2024 20:48:38 +0900 (JST)
Message-Id: <20240305.204838.932004035509696090.trueroad@trueroad.jp>
To: cygwin AT cygwin DOT com
Cc: trueroad AT trueroad DOT jp
Subject: libfontconfig-devel-2.15.0-1 links wrong DLL
X-Mailer: Mew version 6.9 on Emacs 29.2
Mime-Version: 1.0
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE,
SPF_SOFTFAIL, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Masamichi Hosoda via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Masamichi Hosoda <trueroad AT trueroad DOT jp>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi

If I understand correctly,
libfontconfig-devel-2.15.0-1 links wrong DLL (i.e. libfontconfig-1.dll)
instead of correct DLL (i.e. cygfontconfig-1.dll).
Since the wrong DLL does not exist,
the executable file using libfontconfig-devel-2.15.0-1 cannot be executed.

```
$ cat foo.c
#include <fontconfig/fontconfig.h>

int main(void)
{
  FcInit();
  return 0;
}

$ gcc -o foo foo.c -lfontconfig

$ ldd foo
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffccda50000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffccc230000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffccb590000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x7ffcb3ff0000)
        libfontconfig-1.dll => not found

$
```

Using the previous version, libfontconfig-devel-2.13.1-2, it is fine.

```
$ gcc -o foo foo.c -lfontconfig

$ ldd foo
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffccda50000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffccc230000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffccb590000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x7ffcb3ff0000)
        cygfontconfig-1.dll => /usr/bin/cygfontconfig-1.dll (0x507fd0000)
        cygexpat-1.dll => /usr/bin/cygexpat-1.dll (0x5d5bf0000)
        cygfreetype-6.dll => /usr/bin/cygfreetype-6.dll (0x51c6b0000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x5ee2d0000)
        cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x50caa0000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3d2a10000)
        cygbrotlidec-1.dll => /usr/bin/cygbrotlidec-1.dll (0x42f930000)
        cygz.dll => /usr/bin/cygz.dll (0x597fd0000)
        cygbz2-1.dll => /usr/bin/cygbz2-1.dll (0x3e1e30000)
        cygpng16-16.dll => /usr/bin/cygpng16-16.dll (0x5a9870000)
        cygbrotlicommon-1.dll => /usr/bin/cygbrotlicommon-1.dll (0x4678a0000)

$
```

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

- Raw text -


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