在 Solaris 10 5.10 上构建 SVN 时出现 dlsym 版本错误
我正在尝试在 Solaris 10 中构建 Subversion 1.6.9:
uname -a:
SunOS drccd 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Fire-V890 Solaris
为了构建它,我运行以下命令:
export CC="gcc -I/home/susher/openssl-0.9.8l/ssl_install/include
-L/home/susher/openssl-0.9.8l/ssl_install/lib"
export CFLAGS="-O2 -g -I/home/susher/openssl-0.9.8l/ssl_install/include"
export LDFLAGS="-L/home/susher/openssl-0.9.8l/ssl_install/lib"
export CPP="gcc -E -I/home/susher/openssl-0.9.8l/ssl_install/include"
./configure --prefix=/home/susher/SVN/subversion-1.6.9/svn_install
--with-ssl
--with-libs=/home/susher/openssl-0.9.8l/ssl_install/
--includedir=/home/susher/openssl-0.9.8l/ssl_install/
make
注意:命令中的换行符是为了便于阅读。
OpenSSL 0.9.8 已成功构建,因此我预计不会出现与这些库相关的任何问题,但当然我可能是错的。
运行上述命令后,Subversion 开始构建,大约 20 分钟后输出以下错误:
sunbox[subversion-1.6.9]: /opt/exp/gnu/bin/ld: ../../subversion/libsvn_subr/.libs
/libsvn_subr-1.so: dlsym: invalid version 10 (max 0)
../../subversion/libsvn_subr/.libs/libsvn_subr-1.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_delta/libsvn_delta-1.la] Error 1
我进行了大量搜索,找不到 dlsym: invalid version 10 (max 0) 的任何信息。
如果有人有任何想法请告诉我,如果有人想阅读它,我可以向他们发送 ./configure 和 make 的完整输出。
谢谢。
I am trying to build Subversion 1.6.9 in Solaris 10:
uname -a:
SunOS drccd 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Fire-V890 Solaris
To build it I run the following:
export CC="gcc -I/home/susher/openssl-0.9.8l/ssl_install/include
-L/home/susher/openssl-0.9.8l/ssl_install/lib"
export CFLAGS="-O2 -g -I/home/susher/openssl-0.9.8l/ssl_install/include"
export LDFLAGS="-L/home/susher/openssl-0.9.8l/ssl_install/lib"
export CPP="gcc -E -I/home/susher/openssl-0.9.8l/ssl_install/include"
./configure --prefix=/home/susher/SVN/subversion-1.6.9/svn_install
--with-ssl
--with-libs=/home/susher/openssl-0.9.8l/ssl_install/
--includedir=/home/susher/openssl-0.9.8l/ssl_install/
make
Note: Line breaks in commands are for readability purposes.
OpenSSL 0.9.8 had successfully built so I am not expecting any issues to be associated with those libraries, but of course I may be wrong.
After running the commands above, Subversion starts building and about 20 minutes later the following error is output:
sunbox[subversion-1.6.9]: /opt/exp/gnu/bin/ld: ../../subversion/libsvn_subr/.libs
/libsvn_subr-1.so: dlsym: invalid version 10 (max 0)
../../subversion/libsvn_subr/.libs/libsvn_subr-1.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_delta/libsvn_delta-1.la] Error 1
I did quite a lot of searching and could not find any information for dlsym: invalid version 10 (max 0).
If anyone has any ideas please let me know, and if anyone would like to read it, I can send them the entire output of ./configure and make.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了类似的错误,结果表明您必须在 /usr/ccs/bin/ld 中使用 Sun 的 ld 而不是 GNU 的 ld。使用选项“--with-ld=/usr/ccs/bin/ld”重新编译gcc,并且gcc源目录中没有“ld”子目录。这实际上是推荐的设置,请参阅
GCC 的主机/目标特定安装说明
I had a similair error, and it turned out that you have to use Sun's ld in /usr/ccs/bin/ld and not GNU's ld. Recompile gcc with the option "--with-ld=/usr/ccs/bin/ld" and have no "ld" subdirectory in the gcc source directory. This is in fact the recommended setting, see
Host/Target specific installation notes for GCC