Ubuntu服务器14.04的Coova-Chilli 1.3.0构建失败

时间:2016-01-27 04:42:00

标签: build openssl ubuntu-14.04 radius coovachilli

遵循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不是最近的版本。没有其他应用程序有这个问题。所以我删除了openssl包,从源代码构建并安装它。最新版本是openssl 1.0.2e。我在翻录和重建openssl之后重新测试了radius服务器,所有这些都令人惊讶地仍然正常工作。

我试图再次编译coova-chilli以及1.2.9但是收到同样的错误。 libssl.a存在于该位置。

关于如何最好地进行的任何想法?

1 个答案:

答案 0 :(得分:0)

关于Coova-Chilli的Debian / Ubuntu的说明对于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

参考:https://help.ubuntu.com/community/WifiDocs/CoovaChilli