GNU bug report logs - #78682
Building libltdl with MSVC fails

Previous Next

Package: libtool;

Reported by: Kirill Makurin <maiddaisuki <at> outlook.com>

Date: Tue, 3 Jun 2025 16:58:02 UTC

Severity: normal

Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>

Full log


View this message in rfc822 format

From: Kirill Makurin <maiddaisuki <at> outlook.com>
To: 78682 <at> debbugs.gnu.org
Subject: bug#78682: Building libltdl with MSVC fails
Date: Tue, 3 Jun 2025 14:29:06 +0000
[Message part 1 (text/plain, inline)]
Hi,

Building libltdl with MSVC fails:

```
libltdl_la-ltdl.obj : error LNK2019: unresolved external symbol lt_ltdl_LTX_preloaded_symbols referenced in function lt_dlinit
libltdl\.libs\libltdl-7.dll : fatal error LNK1120: 1 unresolved externals
```

I attached full invocation in separate file since it's quite messy.

I did some investigation.

Apparently, `lt_ltdl_LTX_preloaded_symbols` is supposed to be defined in libtool-generated `libltdl/.libs/libltdlS.c`, however it defines `lt_libltdl_LTX_preloaded_symbols` instead, as if it was mingw build.

I was building from libtool-2.5.4 release tarball. I tried building from `master` and the issue also exist there.

Thank you for working on MSVC-related issues. I have some other things to report/suggest.

- Kirill Makurin
[Message part 2 (text/html, inline)]
[cmd.txt (text/plain, attachment)]

This bug report was last modified 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.