SVN / Apache 问题未定义符号:apr_crypto_block_cleanup
SVN / Apache Issue undefined symbol: apr_crypto_block_cleanup
我正在使用 AlmaLinux 8 svn/apache。
尝试启动我的 httpd 服务时,收到以下状态消息:
Aug 12 17:54:06 domain.tld httpd[495168]: httpd: Syntax error on line 132 of /etc/httpd/conf/httpd2.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-svn.conf: Cannot load /usr/lib/apache/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_crypto_block_cleanup
过去,只需将 /usr/lib64/libsvn_subr-1.so.0 移动到 /usr/lib64/libsvn_subr-1.so.0-old 即可修复错误,但这次(已更新 dnf)情况并非如此。
苦苦挣扎,因为我的调试机会有限,所以如果可以提供任何帮助调试的东西就足以作为答案。我能找到的唯一适合我的输出如下。
linux-vdso.so.1 (0x00007ffd13835000)
libsvn_repos-1.so.0 => /usr/lib64/libsvn_repos-1.so.0 (0x00007fb9de978000)
libsvn_fs-1.so.0 => /usr/lib64/libsvn_fs-1.so.0 (0x00007fb9de76a000)
libsvn_fs_fs-1.so.0 => /usr/lib64/libsvn_fs_fs-1.so.0 (0x00007fb9de512000)
libsvn_fs_x-1.so.0 => /usr/lib64/libsvn_fs_x-1.so.0 (0x00007fb9de2ba000)
libsvn_delta-1.so.0 => /usr/lib64/libsvn_delta-1.so.0 (0x00007fb9de09a000)
libsvn_fs_util-1.so.0 => /usr/lib64/libsvn_fs_util-1.so.0 (0x00007fb9dde96000)
libsvn_subr-1.so.0 => /usr/lib64/libsvn_subr-1.so.0 (0x00007fb9ddc02000)
libaprutil-1.so.0 => /usr/lib/apache/libaprutil-1.so.0 (0x00007fb9dd9cd000)
libapr-1.so.0 => /usr/lib/apache/libapr-1.so.0 (0x00007fb9dd788000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007fb9dd580000)
libcrypt.so.1 => /usr/lib64/libcrypt.so.1 (0x00007fb9dd357000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fb9dd11c000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fb9dcf05000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fb9dcd01000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fb9dcae1000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fb9dc71c000)
libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00007fb9dc408000)
libmagic.so.1 => /usr/lib64/libmagic.so.1 (0x00007fb9dc1e1000)
liblz4.so.1 => /usr/lib64/liblz4.so.1 (0x00007fb9dbfc4000)
libutf8proc.so.2 => /usr/lib64/libutf8proc.so.2 (0x00007fb9dbd7b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb9dedea000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007fb9db9f9000)
目前 svn 只能通过 svn 提供,因此我在 cli 上什至没有可用的 svn。
请帮忙!
运行 以下解决了我的问题:
tar xvf subversion-1.14.0.tar.gz
cd subversion-1.14.0
wget https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip -O sqlite-ation-3081101.zip
unzip sqlite-amalgamation-3081101.zip
mv sqlite-amalgamation-3081101 sqlite-amalgamation
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-lz4=internal --with-utf8proc=internal
make -j4
mv subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/lib/apache/mod_dav_svn.so
无论如何谢谢,希望这对以后的人(很可能是我)有所帮助。
我正在使用 AlmaLinux 8 svn/apache。
尝试启动我的 httpd 服务时,收到以下状态消息:
Aug 12 17:54:06 domain.tld httpd[495168]: httpd: Syntax error on line 132 of /etc/httpd/conf/httpd2.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-svn.conf: Cannot load /usr/lib/apache/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_crypto_block_cleanup
过去,只需将 /usr/lib64/libsvn_subr-1.so.0 移动到 /usr/lib64/libsvn_subr-1.so.0-old 即可修复错误,但这次(已更新 dnf)情况并非如此。
苦苦挣扎,因为我的调试机会有限,所以如果可以提供任何帮助调试的东西就足以作为答案。我能找到的唯一适合我的输出如下。
linux-vdso.so.1 (0x00007ffd13835000)
libsvn_repos-1.so.0 => /usr/lib64/libsvn_repos-1.so.0 (0x00007fb9de978000)
libsvn_fs-1.so.0 => /usr/lib64/libsvn_fs-1.so.0 (0x00007fb9de76a000)
libsvn_fs_fs-1.so.0 => /usr/lib64/libsvn_fs_fs-1.so.0 (0x00007fb9de512000)
libsvn_fs_x-1.so.0 => /usr/lib64/libsvn_fs_x-1.so.0 (0x00007fb9de2ba000)
libsvn_delta-1.so.0 => /usr/lib64/libsvn_delta-1.so.0 (0x00007fb9de09a000)
libsvn_fs_util-1.so.0 => /usr/lib64/libsvn_fs_util-1.so.0 (0x00007fb9dde96000)
libsvn_subr-1.so.0 => /usr/lib64/libsvn_subr-1.so.0 (0x00007fb9ddc02000)
libaprutil-1.so.0 => /usr/lib/apache/libaprutil-1.so.0 (0x00007fb9dd9cd000)
libapr-1.so.0 => /usr/lib/apache/libapr-1.so.0 (0x00007fb9dd788000)
librt.so.1 => /usr/lib64/librt.so.1 (0x00007fb9dd580000)
libcrypt.so.1 => /usr/lib64/libcrypt.so.1 (0x00007fb9dd357000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fb9dd11c000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fb9dcf05000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fb9dcd01000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fb9dcae1000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fb9dc71c000)
libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00007fb9dc408000)
libmagic.so.1 => /usr/lib64/libmagic.so.1 (0x00007fb9dc1e1000)
liblz4.so.1 => /usr/lib64/liblz4.so.1 (0x00007fb9dbfc4000)
libutf8proc.so.2 => /usr/lib64/libutf8proc.so.2 (0x00007fb9dbd7b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb9dedea000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007fb9db9f9000)
目前 svn 只能通过 svn 提供,因此我在 cli 上什至没有可用的 svn。
请帮忙!
运行 以下解决了我的问题:
tar xvf subversion-1.14.0.tar.gz
cd subversion-1.14.0
wget https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip -O sqlite-ation-3081101.zip
unzip sqlite-amalgamation-3081101.zip
mv sqlite-amalgamation-3081101 sqlite-amalgamation
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-lz4=internal --with-utf8proc=internal
make -j4
mv subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/lib/apache/mod_dav_svn.so
无论如何谢谢,希望这对以后的人(很可能是我)有所帮助。