下载 XML 安全错误

下载 XML 安全错误

我正在尝试在 Linux (Amazon linux) 上下载 XML-security (2.0.4),以编译 Shibboleth-SP。当我运行文档提供的标准配置时(https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2067398783/XML-Security-C):

./configure --without-xalan --disable-static --prefix=/opt/shibboleth-sp 

我在编译器尝试查找 xerces 文件时遇到问题,因为它们位于我的 shibboleth 目录中。然后我导出所需的变量:

导出 xerces_LIBS=/opt/shibboleth-sp/lib 导出 xerces_CFLAGS=/opt/shibboleth-sp/include

然后我再次使用配置,它告诉我找不到 xercesdefs.hpp 文件,因此我将配置脚本更新为以下内容:

./configure --without-xalan --disable-static --prefix=/opt/shibboleth-sp CXXFLAGS="-I/opt/shibboleth-sp/include"

这让我通过了错误,但是在构建过程中我看到“链接器输入文件未使用,因为链接未完成...... g++:警告:/opt/shibboleth-sp/include:链接器输入文件未使用,因为链接未完成。这是每个文件重复直到编译过程完成。

mv -f xkms/impl/.deps/libxml_security_c_la-XKMSCompoundResultImpl.Tpo xkms/impl/.deps/libxml_security_c_la-XKMSCompoundResultImpl.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I.. -DXSEC_BUILDING_LIBRARY   /opt/shibboleth-sp/include   -pthread -I/opt/shibboleth-sp/include -MT xkms/impl/libxml_security_c_la-XKMSRevokeKeyBindingImpl.lo -MD -MP -MF xkms/impl/.deps/libxml_security_c_la-XKMSRevokeKeyBindingImpl.Tpo -c -o xkms/impl/libxml_security_c_la-XKMSRevokeKeyBindingImpl.lo `test -f 'xkms/impl/XKMSRevokeKeyBindingImpl.cpp' || echo './'`xkms/impl/XKMSRevokeKeyBindingImpl.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I.. -DXSEC_BUILDING_LIBRARY /opt/shibboleth-sp/include -pthread -I/opt/shibboleth-sp/include -MT xkms/impl/libxml_security_c_la-XKMSRevokeKeyBindingImpl.lo -MD -MP -MF xkms/impl/.deps/libxml_security_c_la-XKMSRevokeKeyBindingImpl.Tpo -c xkms/impl/XKMSRevokeKeyBindingImpl.cpp  -fPIC -DPIC -o xkms/impl/.libs/libxml_security_c_la-XKMSRevokeKeyBindingImpl.o

配置过程已完成,当我使用 make 时,我无法继续。

make all-recursive make[1]: 输入目录 `/opt/build/xml-security-c-2.0.4' 在 xsec 中全部制作

make[2]: Entering directory `/opt/build/xml-security-c-2.0.4/xsec'
/bin/sh ../libtool  --tag=CXX   --mode=link g++ -Wall -W /opt/shibboleth-sp/include    -I/opt/shibboleth-sp/include   -o xsec-xtest tools/xtest/xsec_xtest-xtest.o libxml-security-c.la /opt/shibboleth-sp/lib   -lcrypto
libtool: link: g++ -Wall -W /opt/shibboleth-sp/include -I/opt/shibboleth-sp/include -o .libs/xsec-xtest tools/xtest/xsec_xtest-xtest.o /opt/shibboleth-sp/lib  ./.libs/libxml-security-c.so -lpthread -lcrypto -pthread -Wl,-rpath -Wl,/opt/shibboleth-sp/lib
/opt/shibboleth-sp/include: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [xsec-xtest] Error 1
make[2]: Leaving directory `/opt/build/xml-security-c-2.0.4/xsec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/build/xml-security-c-2.0.4'
make: *** [all] Error 2

它试图在这里找到什么文件?是不是链接没有完成的问题?一段时间以来,我一直在构建 XML 安全性的问题上陷入困境,因此非常感谢任何帮助。

相关内容