Ubuntu 服务器 14.04 的 Coova-Chilli 1.3.0 构建失败
Coova-Chilli 1.3.0 build fails for Ubuntu server 14.04
遵循 Coova-Chilli 发行版本的说明。
wget https://coova.github.io/coova-chilli/coova-chilli-1.3.0.tar.gz
tar xzf coova-chilli-1.3.0.tar.gz
cd coova-chilli-1.3.0/
debuild -b
结果出现如下错误
...........Error Section................
/usr/bin/ld: /usr/lib/libssl.a(s23_srvr.o): relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libchilli.la' with the above command before
installing it
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/download/coova-chilli-1.3.0/src'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/download/coova-chilli-1.3.0/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/download/coova-chilli-1.3.0/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/download/coova-chilli-1.3.0'
make: *** [install] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed
我最初认为 openssl 可能不是一个足够新的版本。 None 的其他应用程序有这个问题。所以我删除了 openssl 包,从源代码构建并安装它。最新版本是 openssl 1.0.2e。我在撕毁并重建 openssl 后重新测试了 radius 服务器,令人惊讶的是一切仍然正常工作。
我尝试再次编译 coova-chilli 和 1.2.9,但收到同样的错误。 libssl.a 出现在该位置。
对如何最好地进行有任何想法吗?
Debian/Ubuntu 在 Coova-Chilli 上的说明对 Ubuntu 不正确。
wget https://coova.github.io/coova-chilli/coova-chilli-1.3.0.tar.gz
tar xzf coova-chilli-1.3.0.tar.gz
cd coova-chilli-1.3.0/
./configure --prefix= --enable-miniportal (or whatever flags you want)
make
sudo make install
update-rc.d chilli defaults
遵循 Coova-Chilli 发行版本的说明。
wget https://coova.github.io/coova-chilli/coova-chilli-1.3.0.tar.gz
tar xzf coova-chilli-1.3.0.tar.gz
cd coova-chilli-1.3.0/
debuild -b
结果出现如下错误
...........Error Section................
/usr/bin/ld: /usr/lib/libssl.a(s23_srvr.o): relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libchilli.la' with the above command before
installing it
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/download/coova-chilli-1.3.0/src'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/download/coova-chilli-1.3.0/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/download/coova-chilli-1.3.0/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/download/coova-chilli-1.3.0'
make: *** [install] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed
我最初认为 openssl 可能不是一个足够新的版本。 None 的其他应用程序有这个问题。所以我删除了 openssl 包,从源代码构建并安装它。最新版本是 openssl 1.0.2e。我在撕毁并重建 openssl 后重新测试了 radius 服务器,令人惊讶的是一切仍然正常工作。
我尝试再次编译 coova-chilli 和 1.2.9,但收到同样的错误。 libssl.a 出现在该位置。
对如何最好地进行有任何想法吗?
Debian/Ubuntu 在 Coova-Chilli 上的说明对 Ubuntu 不正确。
wget https://coova.github.io/coova-chilli/coova-chilli-1.3.0.tar.gz
tar xzf coova-chilli-1.3.0.tar.gz
cd coova-chilli-1.3.0/
./configure --prefix= --enable-miniportal (or whatever flags you want)
make
sudo make install
update-rc.d chilli defaults