在 04/14/2020 05:12 PM, Иван Трусков 写道: > I am trying to compile heimdal in msys environment . However for some > reasons i do not understand, i am unable to build shared libraries. > > All i get during compilation is (output around error left for context): > > > CC memset_s.lo > > CC strsep_copy.lo > > CCLD libroken.la <http://libroken.la> >> libtool: warning: undefined symbols not allowed in x86_64-pc-msys > shared libraries; building static only > > CCLD snprintf-test.exe > > CC resolve-test.o > > CCLD resolve-test.exe > > Before that i have followed instructions in > https://github.com/msys2/MSYS2-packages/blob/master/heimdal/PKGBUILD in > patching and configuring heimdal sources > Is there a way to find out just what is midding? It is entirely possible > my environment lacks some of the necessary shared libraries, but which ones? >
You have to pass `-Wl,-no-undefined` in LDFLAGS. On Linux, SOs are not required to have been fully linked. Those undefined symbols can be resolved during load time. But Windows DLL loader is unable to perform this. DLLs cannot contain pending symbols just like EXEs. -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users