(Asterisk)
Line 25: Line 25:
 
make
 
make
 
make install  
 
make install  
 +
</PRE>
 +
 +
=== OpenSSL ===
 +
 +
Certain Asterisk modules such as chan_sip and chan_iax2 require the res_crypto resource module. The res_crypto module will only be built if the libssl dependency is installed.
 +
 +
There seems to be an issue with OpenSSL and Perl 5.18.1 that results with the following error:
 +
<PRE>
 +
cms.pod around line 474: Expected text after =item, not a number
 +
POD document had syntax errors at /usr/local/bin/pod2man line 71.
 +
</PRE>
 +
 +
[http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssl.html Linux from Scratch] have patches that resolve this issue and we apply them here.
 +
 +
<PRE>
 +
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
 +
wget http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1g-fix_parallel_build-1.patch
 +
wget http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1g-fix_pod_syntax-1.patch
 +
tar -xzf openssl-1.0.1g.tar.gz
 +
cd openssl-1.0.1g
 +
patch -Np1 -i ../openssl-1.0.1g-fix_parallel_build-1.patch
 +
patch -Np1 -i ../openssl-1.0.1g-fix_pod_syntax-1.patch
 +
./Configure dist --prefix=/usr/arm-linux-gnueabi
 +
make CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-ranlib LD=arm-linux-gnueabi-ld MAKEDEPPROG=arm-linux-gnueabi-gcc
 +
make install
 
</PRE>
 
</PRE>
  

Revision as of 10:39, 2 May 2014

Prerequisites

ncurses

Download, build and install the ncurses library:

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar -xzf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi CXX="arm-linux-gnueabi-g++"
make
make install

SQLite

SQLite is a software library that implements a self contained server-less transactional SQL database engine.

wget https://sqlite.org/2014/sqlite-autoconf-3080403.tar.gz
tar -xzf sqlite-autoconf-3080403.tar.gz
cd sqlite-autoconf-3080403
./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi 
make
make install 

OpenSSL

Certain Asterisk modules such as chan_sip and chan_iax2 require the res_crypto resource module. The res_crypto module will only be built if the libssl dependency is installed.

There seems to be an issue with OpenSSL and Perl 5.18.1 that results with the following error:

cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/local/bin/pod2man line 71.

Linux from Scratch have patches that resolve this issue and we apply them here.

wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
wget http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1g-fix_parallel_build-1.patch
wget http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1g-fix_pod_syntax-1.patch
tar -xzf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
patch -Np1 -i ../openssl-1.0.1g-fix_parallel_build-1.patch
patch -Np1 -i ../openssl-1.0.1g-fix_pod_syntax-1.patch
./Configure dist --prefix=/usr/arm-linux-gnueabi
make CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-ranlib LD=arm-linux-gnueabi-ld MAKEDEPPROG=arm-linux-gnueabi-gcc
make install

Asterisk

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11.9.0.tar.gz
tar -xzf asterisk-11.9.0.tar.gz
cd asterisk-11.9.0
./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --build=i686-pc-linux-gnu --disable-xmldoc
make
sudo make install DESTDIR=/home/export/rootfs
sudo make samples DESTDIR=/home/export/rootfs