[sr #111241] Fixes build issue on MSVC
Ileana Dumitrescu <[email protected]> Fri, 23 May 2025 10:53:33 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1634445344-1748012013=:126819 Content-Type: TEXT/plain; CHARSET=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: inline Follow-up Comment #1, sr #111241 (group libtool):=0A=0A[comment #0 original= submission:]=0A> I'm trying to build libtool with MSVC, but it failed with= an error that a=0A> symbol not found. (Please noticed that the following m= essage is translated=0A> from Chinese)=0A> =0A> CCLD libltdl/libltdl.la= =0A> libltdlS.c=0A> Creating library libltdl/.libs/libltdl.dll.lib and obje= ct=0A> libltdl/.libs/libltdl.dll.exp=0A> libltdl_la-ltdl.obj : error LNK201= 9: Unresolved external symbol=0A> lt_ltdl_LTX_preloaded_symbols, referenced= in lt_dlinit=0A> libltdl\.libs\libltdl-7.dll : fatal error LNK1120: 1 exte= rnal command could=0A> not be resolved=0A> make[2]: *** [Makefile:1176: lib= ltdl/libltdl.la] Error 2=0A> make[2]: Leaving directory '/c/build/build'=0A= > make[1]: *** [Makefile:1651: all-recursive] Error 1=0A> make[1]: Leaving = directory '/c/build/build'=0A> make: *** [Makefile:1033: all] Error 2=0A> = =0A> After applied this patch, it works properly. A noticeable thing is the= shared=0A> library named libltdl-7.dll instead of ltdl-7.dll. However I'm = not sure if it=0A> is a good solution.=0A=0AThank you for your bug report a= nd patch. I have seen errors similar to this=0Abefore while fixing MSVC tes= t failures in libtool, and those fixes should be=0Aapplied soon in the deve= lopment branch. I do not think the patch you provided=0Ais a good solution,= but the commits I push should fix your issue hopefully.=0A=0A=0A ______= _________________________________________________=0A=0AReply to this item a= t:=0A=0A <https://savannah.gnu.org/support/?111241>=0A=0A_________________= ______________________________=0AMessage sent via Savannah=0Ahttps://savann= ah.gnu.org/=0A --8323329-1634445344-1748012013=:126819 Content-Type: APPLICATION/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaDCL7QAKCRCqLAuaBUf3 Tr0DAP0VfULUrJcNodJB1i/7jxEZZNrYd02Jk6f9L4KUwaMiDwEAgyfyeUc3tBr4 Z3hJBTx638vB8tid4KnJ0q7kA99/4Qc= =ARvh -----END PGP SIGNATURE----- --8323329-1634445344-1748012013=:126819--