找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8324|回复: 8

aria2编译问题,急!!!!!!在线等!!!!!

[复制链接]
发表于 2013-5-26 23:09 | 显示全部楼层 |阅读模式
./configure ARIA2_STATIC=yes编译会出错,直接./configure能编译通过,正常运行。
发表于 2013-5-26 23:19 | 显示全部楼层
编译成什么机器的目标码?

x86 , mipsel, ... ?
 楼主| 发表于 2013-5-26 23:33 | 显示全部楼层
x86的
 楼主| 发表于 2013-5-26 23:36 | 显示全部楼层
./configure ARIA2_STATIC=yes的:
lib -lssl -lcrypto -ldl -lz   -L/usr/lib -lxml2 -lz -lm  -lpthread -ldl -lrt
DEFS:           -DHAVE_CONFIG_H
SQLite3:        no
GnuTLS:         no
OpenSSL:        yes
CA Bundle:      
LibXML2:        yes
LibExpat:      
LibCares:       no
Zlib:           no
Epoll:          yes
Bittorrent:     yes
Metalink:       yes
XML-RPC:        yes
Message Digest: yes
WebSocket:      yes
bash_completion dir: ${datarootdir}/doc/${PACKAGE_TARNAME}/bash_completion
Static build:   yes
 楼主| 发表于 2013-5-26 23:45 | 显示全部楼层
centos5



make[5]: Entering directory `/root/Desktop/aria2-1.16.5/deps/wslay/lib'
Making all in includes
make[6]: Entering directory `/root/Desktop/aria2-1.16.5/deps/wslay/lib/includes'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay/lib/includes'
make[6]: Entering directory `/root/Desktop/aria2-1.16.5/deps/wslay/lib'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay/lib'
make[5]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay/lib'
Making all in tests
make[5]: Entering directory `/root/Desktop/aria2-1.16.5/deps/wslay/tests'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay/tests'
make[5]: Entering directory `/root/Desktop/aria2-1.16.5/deps/wslay'
make[5]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay'
make[4]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay'
make[3]: Leaving directory `/root/Desktop/aria2-1.16.5/deps/wslay'
make[3]: Entering directory `/root/Desktop/aria2-1.16.5/deps'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/Desktop/aria2-1.16.5/deps'
make[2]: Leaving directory `/root/Desktop/aria2-1.16.5/deps'
Making all in src
make[2]: Entering directory `/root/Desktop/aria2-1.16.5/src'
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2  -all-static -static-libgcc -static-libstdc++ -o aria2c main.o option_processing.o version_usage.o libaria2c.a    ../deps/wslay/lib/libwslay.la -lrt -L/usr/kerberos/lib -lssl -lcrypto -ldl -lz   -L/usr/lib -lxml2 -lz -lm  -lpthread -ldl -lrt
libtool: link: g++ -g -O2 -static -static-libgcc -static-libstdc++ -o aria2c main.o option_processing.o version_usage.o  libaria2c.a ../deps/wslay/lib/.libs/libwslay.a -L/usr/kerberos/lib -lssl -lcrypto -L/usr/lib -lxml2 -lz -lm -lpthread -ldl -lrt
g++: unrecognized option '-static-libstdc++'
/usr/lib/libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0xb41): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libaria2c.a(util.o): In function `aria2::util::getHomeDir()':
/root/Desktop/aria2-1.16.5/src/util.cc:1273: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libaria2c.a(SocketCore.o): In function `aria2::callGetaddrinfo(addrinfo**, char const*, char const*, int, int, int, int)':
/root/Desktop/aria2-1.16.5/src/SocketCore.cc:1431: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
(.text+0xb19): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0xe1): undefined reference to `krb5_rc_default'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0xfc): undefined reference to `krb5_rc_initialize'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0x122): undefined reference to `krb5_rc_get_lifespan'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0x13c): undefined reference to `krb5_rc_destroy'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x174): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x197): undefined reference to `krb5_timeofday'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x1ba): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_krb5_free_data_contents':
(.text+0x241): undefined reference to `krb5_free_data_contents'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2ba): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2d6): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2ec): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2fb): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x33b): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x355): undefined reference to `krb5_cc_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x376): undefined reference to `krb5_cc_get_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x3a8): undefined reference to `krb5_get_credentials'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x41b): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x43c): undefined reference to `krb5_kt_resolve'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x458): undefined reference to `krb5_kt_close'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x46e): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x47d): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x49e): undefined reference to `krb5_kt_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4d2): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x50f): undefined reference to `krb5_kt_get_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x531): undefined reference to `krb5_kt_free_entry'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xaf7): undefined reference to `valid_cksumtype'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xb21): undefined reference to `krb5_checksum_size'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xb5a): undefined reference to `krb5_checksum_size'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1711): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x174d): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17ae): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17c7): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17dd): undefined reference to `krb5_auth_con_free'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17ec): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x180e): undefined reference to `krb5_cc_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1830): undefined reference to `krb5_cc_get_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x18f1): undefined reference to `krb5_get_credentials'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1975): undefined reference to `krb5_mk_req_extended'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1cf7): undefined reference to `krb5_auth_con_free'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d23): undefined reference to `krb5_auth_con_init'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d5c): undefined reference to `krb5_kt_close'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d75): undefined reference to `krb5_free_ticket'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d8e): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1dbe): undefined reference to `krb5_auth_con_getrcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1dfe): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1e32): undefined reference to `krb5_auth_con_setrcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1e63): undefined reference to `krb5_kt_resolve'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1f8d): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1fde): undefined reference to `krb5_get_server_rcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x2031): undefined reference to `krb5_principal_compare'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x20b9): undefined reference to `krb5_kt_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x2119): undefined reference to `krb5_kt_get_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x218f): undefined reference to `krb5_decrypt_tkt_part'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x21b5): undefined reference to `krb5_kt_free_entry'
collect2: ld returned 1 exit status
make[2]: *** [aria2c] 错误 1
make[2]: Leaving directory `/root/Desktop/aria2-1.16.5/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/Desktop/aria2-1.16.5'
make: *** [all] 错误 2
[root@localhost aria2-1.16.5]#
发表于 2013-5-27 00:17 | 显示全部楼层
本帖最后由 bwq518 于 2013-5-27 00:18 编辑


缺开发包。

apt-get install krb5-multidev libkrb53
发表于 2013-5-27 00:28 | 显示全部楼层
不懂,帮顶、、
 楼主| 发表于 2013-5-27 00:57 | 显示全部楼层
centos5 没有这样开发包
 楼主| 发表于 2013-5-27 08:36 来自手机 | 显示全部楼层
本帖最后由 liangchaofu 于 2013-5-27 17:06 编辑

下了个deb包转成rpm的
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-18 01:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表