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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Kirill Makurin <maiddaisuki <at> outlook.com>
Subject: bug#78682: closed (Re: bug#78682: Building libltdl with MSVC fails)
Date: Thu, 05 Jun 2025 18:22:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78682: Building libltdl with MSVC fails

which was filed against the libtool package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78682 <at> debbugs.gnu.org.

-- 
78682: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78682
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 78682-done <at> debbugs.gnu.org
Cc: Kirill Makurin <maiddaisuki <at> outlook.com>
Subject: Re: bug#78682: Building libltdl with MSVC fails
Date: Thu, 5 Jun 2025 21:21:01 +0300
[Message part 3 (text/plain, inline)]
On 05/06/2025 21:03, Kirill Makurin wrote:
> I can confirm that this was the issue.
> 
> I had to explicitly set both F77 and FC to "no". Even if there is no 
> Fortran compiler found, configure sets them to "ifc".

Great! I am glad you found a simple fix. I have set F77 and FC to no in
my test environment, but I could not remember why.

> I was thinking to suggest both libtool and automake to add options to 
> explicitly disable checks and test for specific languages. Obviously, 
> this needs a separate discussion.

For now, I will update notes.texi to inform users about this
configuration issue and close the bug.

Thank you for debugging!

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Kirill Makurin <maiddaisuki <at> outlook.com>
To: "bug-libtool <at> gnu.org" <bug-libtool <at> gnu.org>
Subject: Building libltdl with MSVC fails
Date: Tue, 3 Jun 2025 14:29:06 +0000
[Message part 7 (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 8 (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.