您尚未登录。

楼主 #1 2017-12-29 19:08:14

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

root@ubuntu:/home/vv3/Downloads/buildroot-2017.08.1# make
>>> wpa_supplicant 2.6 Building
PATH="/home/vv3/Downloads/buildroot-2017.08.1/output/host/bin:/home/vv3/Downloads/buildroot-2017.08.1/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -I/home/vv3/Downloads/buildroot-2017.08.1/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libnl3/" LDFLAGS="" BINDIR=/usr/sbin LIBS="" LIBS_c="" LIBS_p="" /usr/bin/make -j5 CC="/home/vv3/Downloads/buildroot-2017.08.1/output/host/bin/arm-linux-gnueabihf-gcc" -C /home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant
make[1]: Entering directory `/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant'
../src/common/sae.o: In function `sae_cn_confirm.isra.2':
sae.c:(.text+0x168): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x198): undefined reference to `crypto_bignum_to_bin'
../src/common/sae.o: In function `sae_cn_confirm_ffc':
sae.c:(.text+0x214): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x22c): undefined reference to `crypto_bignum_to_bin'
../src/common/sae.o: In function `sae_cn_confirm_ecc':
sae.c:(.text+0x2a4): undefined reference to `crypto_ec_point_to_bin'
sae.c:(.text+0x2c0): undefined reference to `crypto_ec_point_to_bin'
../src/common/sae.o: In function `sae_derive_pwe_ecc':
sae.c:(.text+0x370): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x388): undefined reference to `crypto_ec_prime_len_bits'
sae.c:(.text+0x40c): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0x420): undefined reference to `crypto_bignum_legendre'
sae.c:(.text+0x464): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x528): undefined reference to `crypto_ec_prime_len_bits'
sae.c:(.text+0x5c0): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0x5d8): undefined reference to `crypto_ec_point_compute_y_sqr'
sae.c:(.text+0x5f0): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x600): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x60c): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x670): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0x67c): undefined reference to `crypto_bignum_is_zero'
sae.c:(.text+0x690): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x6a4): undefined reference to `crypto_bignum_init'
sae.c:(.text+0x6c0): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x6cc): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x6e0): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x6f4): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x758): undefined reference to `crypto_bignum_mulmod'
sae.c:(.text+0x778): undefined reference to `crypto_bignum_mulmod'
sae.c:(.text+0x7a0): undefined reference to `crypto_bignum_mulmod'
sae.c:(.text+0x7bc): undefined reference to `crypto_bignum_legendre'
sae.c:(.text+0x7e0): undefined reference to `crypto_bignum_mulmod'
sae.c:(.text+0x804): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x828): undefined reference to `crypto_ec_point_init'
sae.c:(.text+0x850): undefined reference to `crypto_ec_point_solve_y_coord'
sae.c:(.text+0x860): undefined reference to `crypto_bignum_deinit'
../src/common/sae.o: In function `sae_derive_pwe_ffc':
sae.c:(.text+0x984): undefined reference to `crypto_bignum_init'
sae.c:(.text+0xa80): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0xaac): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0xad8): undefined reference to `crypto_bignum_exptmod'
sae.c:(.text+0xae8): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xaf4): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xb14): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0xb2c): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xb44): undefined reference to `crypto_bignum_sub'
sae.c:(.text+0xb60): undefined reference to `crypto_bignum_div'
sae.c:(.text+0xb74): undefined reference to `crypto_bignum_is_zero'
sae.c:(.text+0xbb4): undefined reference to `crypto_bignum_is_one'
../src/common/sae.o: In function `sae_get_rand.isra.5':
sae.c:(.text+0xc20): undefined reference to `crypto_bignum_bits'
sae.c:(.text+0xc90): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0xc9c): undefined reference to `crypto_bignum_is_zero'
sae.c:(.text+0xcb0): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xcbc): undefined reference to `crypto_bignum_is_one'
sae.c:(.text+0xcd4): undefined reference to `crypto_bignum_cmp'
../src/common/sae.o: In function `sae_clear_temp_data':
sae.c:(.text+0xd10): undefined reference to `crypto_ec_deinit'
sae.c:(.text+0xd1c): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xd28): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xd34): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xd40): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xd4c): undefined reference to `crypto_bignum_deinit'
../src/common/sae.o:sae.c:(.text+0xd58): more undefined references to `crypto_bignum_deinit' follow
../src/common/sae.o: In function `sae_clear_temp_data':
sae.c:(.text+0xd70): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0xd7c): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0xd88): undefined reference to `crypto_ec_point_deinit'
../src/common/sae.o: In function `sae_clear_data':
sae.c:(.text+0xdc4): undefined reference to `crypto_bignum_deinit'
../src/common/sae.o: In function `sae_set_group':
sae.c:(.text+0xe10): undefined reference to `crypto_ec_init'
sae.c:(.text+0xe28): undefined reference to `crypto_ec_prime_len'
sae.c:(.text+0xe34): undefined reference to `crypto_ec_get_prime'
sae.c:(.text+0xe40): undefined reference to `crypto_ec_get_order'
sae.c:(.text+0xe88): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0xea8): undefined reference to `crypto_bignum_init_set'
../src/common/sae.o: In function `sae_prepare_commit':
sae.c:(.text+0xf24): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0xfd0): undefined reference to `crypto_bignum_add'
sae.c:(.text+0xfe4): undefined reference to `crypto_bignum_mod'
sae.c:(.text+0xff0): undefined reference to `crypto_bignum_is_zero'
sae.c:(.text+0x1004): undefined reference to `crypto_bignum_is_one'
sae.c:(.text+0x1040): undefined reference to `crypto_ec_point_mul'
sae.c:(.text+0x105c): undefined reference to `crypto_bignum_init'
sae.c:(.text+0x1080): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x1098): undefined reference to `crypto_ec_point_init'
sae.c:(.text+0x10c0): undefined reference to `crypto_ec_point_invert'
sae.c:(.text+0x10fc): undefined reference to `crypto_bignum_exptmod'
sae.c:(.text+0x1118): undefined reference to `crypto_bignum_inverse'
sae.c:(.text+0x1128): undefined reference to `crypto_bignum_init'
../src/common/sae.o: In function `sae_process_commit':
sae.c:(.text+0x1188): undefined reference to `crypto_bignum_init'
sae.c:(.text+0x11a0): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x11ac): undefined reference to `crypto_ec_point_init'
sae.c:(.text+0x11cc): undefined reference to `crypto_ec_point_mul'
sae.c:(.text+0x1200): undefined reference to `crypto_ec_point_add'
sae.c:(.text+0x1220): undefined reference to `crypto_ec_point_mul'
sae.c:(.text+0x1238): undefined reference to `crypto_ec_point_is_at_infinity'
sae.c:(.text+0x1258): undefined reference to `crypto_ec_point_to_bin'
sae.c:(.text+0x1284): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0x129c): undefined reference to `crypto_bignum_init'
sae.c:(.text+0x12bc): undefined reference to `crypto_bignum_exptmod'
sae.c:(.text+0x12f0): undefined reference to `crypto_bignum_mulmod'
sae.c:(.text+0x1310): undefined reference to `crypto_bignum_exptmod'
sae.c:(.text+0x1320): undefined reference to `crypto_bignum_is_one'
sae.c:(.text+0x1340): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x136c): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x13d8): undefined reference to `crypto_bignum_add'
sae.c:(.text+0x13ec): undefined reference to `crypto_bignum_mod'
sae.c:(.text+0x1404): undefined reference to `crypto_bignum_to_bin'
../src/common/sae.o: In function `sae_write_commit':
sae.c:(.text+0x15e0): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x1638): undefined reference to `crypto_ec_point_to_bin'
sae.c:(.text+0x1690): undefined reference to `crypto_bignum_to_bin'
../src/common/sae.o: In function `sae_parse_commit':
sae.c:(.text+0x187c): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0x18a4): undefined reference to `crypto_bignum_cmp'
sae.c:(.text+0x18c4): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x18e8): undefined reference to `crypto_bignum_is_zero'
sae.c:(.text+0x190c): undefined reference to `crypto_bignum_is_one'
sae.c:(.text+0x1924): undefined reference to `crypto_bignum_cmp'
sae.c:(.text+0x1938): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x19a8): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x19b8): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0x19d0): undefined reference to `crypto_bignum_init'
sae.c:(.text+0x19e0): undefined reference to `crypto_bignum_init_set'
sae.c:(.text+0x19fc): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x1a08): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x1a2c): undefined reference to `crypto_bignum_sub'
sae.c:(.text+0x1a40): undefined reference to `crypto_bignum_is_zero'
sae.c:(.text+0x1a54): undefined reference to `crypto_bignum_is_one'
sae.c:(.text+0x1a6c): undefined reference to `crypto_bignum_cmp'
sae.c:(.text+0x1a80): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x1a98): undefined reference to `crypto_bignum_exptmod'
sae.c:(.text+0x1ac0): undefined reference to `crypto_bignum_is_one'
sae.c:(.text+0x1ad4): undefined reference to `crypto_bignum_deinit'
sae.c:(.text+0x1aec): undefined reference to `crypto_bignum_cmp'
sae.c:(.text+0x1b2c): undefined reference to `crypto_ec_point_cmp'
sae.c:(.text+0x1b58): undefined reference to `crypto_bignum_to_bin'
sae.c:(.text+0x1bdc): undefined reference to `crypto_ec_point_deinit'
sae.c:(.text+0x1bec): undefined reference to `crypto_ec_point_from_bin'
sae.c:(.text+0x1c08): undefined reference to `crypto_ec_point_is_on_curve'
sae.c:(.text+0x1c2c): undefined reference to `crypto_bignum_cmp'
collect2: error: ld returned 1 exit status
make[1]: *** [wpa_supplicant] Error 1
make[1]: Leaving directory `/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant'
make: *** [/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/.stamp_built] Error 2

离线

楼主 #2 2017-12-30 12:30:53

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

这个问题没有人遇到么,查了好久的资料都找不到是什么问题

离线

#3 2017-12-31 06:48:04

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

看起来是链接出错,那么应该是缺库,把openssl这个库编译进去就好了。
记得当年罗锤子给openssl捐了几百万。
其实这些软件编译最好用buildroot





离线

楼主 #4 2017-12-31 23:10:44

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

晕哥 说:

看起来是链接出错,那么应该是缺库,把openssl这个库编译进去就好了。
记得当年罗锤子给openssl捐了几百万。
其实这些软件编译最好用buildroot


晕哥,我的上面就在buildroot上编译根文件统出的错,在那里配置openssl呢,我在配置项里搜索/openssl有好多,都不知道那个是?

离线

#5 2018-01-03 08:50:26

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

OpenSSL在这个位置:
Target packages > Libraries > Crypto > OpenSSL





离线

楼主 #6 2018-01-04 17:42:05

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

晕哥 说:

OpenSSL在这个位置:
Target packages > Libraries > Crypto > OpenSSL

晕哥,Target packages > Libraries > Crypto > OpenSSL配置上去了,还是报下面的错误,是什问题呢,
>>> wpa_supplicant 2.6 Building
PATH="/home/vv3/Downloads/buildroot-2017.08.1/output/host/bin:/home/vv3/Downloads/buildroot-2017.08.1/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -I/home/vv3/Downloads/buildroot-2017.08.1/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libnl3/" LDFLAGS="" BINDIR=/usr/sbin LIBS="" LIBS_c="" LIBS_p="" /usr/bin/make -j5 CC="/home/vv3/Downloads/buildroot-2017.08.1/output/host/bin/arm-linux-gnueabihf-gcc" -C /home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant
make[1]: Entering directory `/home/vv3/Downloads/buildroot-2017.08.1/output/build/wpa_supplicant-2.6/wpa_supplicant'
../src/common/sae.o: In function `sae_cn_confirm.isra.2':
sae.c:(.text+0x168): undefined reference to `crypto_bignum_to_bin'

离线

#7 2018-01-04 19:55:37

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

有两个选择,你都试一试:
1. Target packages > Libraries > Crypto 把这里所有的都勾上
2. 去掉 wpa_supplicant > Enable AP mode 选项





离线

#8 2020-08-15 01:10:14

hukolau
会员
注册时间: 2020-06-15
已发帖子: 9
积分: 9

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

我也有这个问题,後来 make clean 後再重build 就ok了

离线

#9 2022-04-18 21:46:29

11小白11
会员
注册时间: 2022-03-05
已发帖子: 10
积分: 0

Re: buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题?

亲测,按楼上的方法可以,勾上openssl后,sudo make clean在sudo make -j4就通过了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn