다운로드 XML 보안 오류

다운로드 XML 보안 오류

Shibboleth-SP를 컴파일하기 위해 Linux(Amazon Linux)에서 XML 보안(2.0.4)을 다운로드하려고 합니다. 문서에서 제공하는 표준 구성을 실행하면(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]: xsec에서 모두 만들려면 `/opt/build/xml-security-c-2.0.4' 디렉토리를 입력하세요.

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 보안을 구축하는 데 어려움을 겪었으므로 도움을 주시면 대단히 감사하겠습니다.

관련 정보