Hello, I am having issues compiling the legacy version against the latest libxslt (1.1.41), it doesn't seem to find the function referrences despite them being there.
CCLD xmlsec1.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: xmlsec.o: in function `xmlSecAppShutdown':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/apps/xmlsec.c:2546:(.text.startup+0xf0): undefined reference to `__imp_xsltFreeSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/apps/xmlsec.c:2547:(.text.startup+0xf6): undefined reference to `__imp_xsltCleanupGlobals'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: xmlsec.o: in function `xmlSecAppInit':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/apps/xmlsec.c:2478:(.text.startup+0x900): undefined reference to `__imp_xsltNewSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/apps/xmlsec.c:2479:(.text.startup+0x907): undefined reference to `__imp_xsltSecurityForbid'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/apps/xmlsec.c:2479:(.text.startup+0x913): undefined reference to `__imp_xsltSetSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/apps/xmlsec.c:2484:(.text.startup+0x978): undefined reference to `__imp_xsltSetDefaultSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecXsApplyStylesheet':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:531:(.text+0x1b): undefined reference to `__imp_xsltNewTransformContext'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:538:(.text+0x37): undefined reference to `__imp_xsltSetCtxtSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:544:(.text+0x5b): undefined reference to `__imp_xsltApplyStylesheetUser'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:552:(.text+0x70): undefined reference to `__imp_xsltFreeTransformContext'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecXsltFinalize':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:219:(.text+0x2a0): undefined reference to `__imp_xsltFreeStylesheet'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecXsltReadNode':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:275:(.text+0x55d): undefined reference to `__imp_xsltParseStylesheetDoc'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecXsltPushBin':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:385:(.text+0xace): undefined reference to `__imp_xsltSaveResultTo'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecXslProcess':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:492:(.text+0x12f5): undefined reference to `__imp_xsltSaveResultTo'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecTransformXsltInitialize':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:118:(.text+0x188a): undefined reference to `__imp_xsltNewSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:120:(.text+0x18a0): undefined reference to `__imp_xsltSecurityForbid'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:120:(.text+0x18a7): undefined reference to `__imp_xsltSetSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecTransformXsltShutdown':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:129:(.text+0x1962): undefined reference to `__imp_xsltFreeSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/et5341/source/windows/xmlsec/src/xmlsec1-1.2.41/src/.libs/libxmlsec1.a(xslt.o): in function `xmlSecTransformXsltSetDefaultSecurityPrefs':
C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:147:(.text+0x19a4): undefined reference to `__imp_xsltGetSecurityPrefs'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/source/windows/xmlsec/src/xmlsec1-1.2.41/src/xslt.c:147:(.text+0x19b2): undefined reference to `__imp_xsltSetSecurityPrefs'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:588: xmlsec1.exe] Error 1
make[2]: Leaving directory '/c/source/windows/xmlsec/src/xmlsec1-1.2.41/apps'
make[1]: *** [Makefile:753: all-recursive] Error 1
make[1]: Leaving directory '/c/source/windows/xmlsec/src/xmlsec1-1.2.41'
make: *** [Makefile:571: all] Error 2
Based on the configure's documentation, if I provide LIBXSLT_CFLAGS and LIBXSLT_LIBS it should be able to sees it, so the values being passed were:
Hello, I am having issues compiling the legacy version against the latest libxslt (
1.1.41
), it doesn't seem to find the function referrences despite them being there.Building it with the following:
Resulting in errors:
Based on the
configure
's documentation, if I provideLIBXSLT_CFLAGS
andLIBXSLT_LIBS
it should be able to sees it, so the values being passed were:The provided location did contains all the libs:
And they do contains the functions: