<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Freeswitch v1.2.stable build fails on Ubuntu 11.10 x64</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>That&#8217;s a missing zlib<BR>
<BR>
<BR>
On 2/5/14 1:14 PM, &quot;Josh Nankin&quot; &lt;<a href="jnankin@gmail.com">jnankin@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>So, indeed when I took out the step for the new OpenSSL when building v1.2.stable on Ubuntu 11.10, the build went through fine.  However, when I build v1.4.beta with the new OpenSSL, I'm still getting the following error:<BR>
<BR>
*** Warning: Linking the shared library libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &nbsp;against the<BR>
*** static library libs/libedit/src/.libs/libedit.a is not portable!<BR>
quiet_libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o  .libs/libfreeswitch_la-switch_apr.o .libs/libfreeswitch_la-switch_buffer.o .libs/libfreeswitch_la-switch_caller.o .libs/libfreeswitch_la-switch_channel.o .libs/libfreeswitch_la-switch_console.o .libs/libfreeswitch_la-switch_mprintf.o .libs/libfreeswitch_la-switch_core_media_bug.o .libs/libfreeswitch_la-switch_core_timer.o .libs/libfreeswitch_la-switch_core_asr.o .libs/libfreeswitch_la-switch_core_event_hook.o .libs/libfreeswitch_la-switch_core_speech.o .libs/libfreeswitch_la-switch_core_memory.o .libs/libfreeswitch_la-switch_core_codec.o .libs/libfreeswitch_la-switch_core_file.o .libs/libfreeswitch_la-switch_core_hash.o .libs/libfreeswitch_la-switch_core_sqldb.o .libs/libfreeswitch_la-switch_core_session.o .libs/libfreeswitch_la-switch_core_directory.o .libs/libfreeswitch_la-switch_core_state_machine.o .libs/libfreeswitch_la-switch_core_io.o .libs/libfreeswitch_la-switch_core_rwlock.o .libs/libfreeswitch_la-switch_core_port_allocator.o .libs/libfreeswitch_la-switch_core.o .libs/libfreeswitch_la-switch_scheduler.o .libs/libfreeswitch_la-switch_core_db.o .libs/libfreeswitch_la-switch_dso.o .libs/libfreeswitch_la-switch_loadable_module.o .libs/libfreeswitch_la-switch_utils.o .libs/libfreeswitch_la-switch_event.o .libs/libfreeswitch_la-switch_resample.o .libs/libfreeswitch_la-switch_regex.o .libs/libfreeswitch_la-switch_rtp.o .libs/libfreeswitch_la-switch_ivr_bridge.o .libs/libfreeswitch_la-switch_ivr_originate.o .libs/libfreeswitch_la-switch_ivr_async.o .libs/libfreeswitch_la-switch_ivr_play_say.o .libs/libfreeswitch_la-switch_ivr_say.o .libs/libfreeswitch_la-switch_ivr_menu.o .libs/libfreeswitch_la-switch_ivr.o .libs/libfreeswitch_la-switch_stun.o .libs/libfreeswitch_la-switch_nat.o .libs/libfreeswitch_la-switch_log.o .libs/libfreeswitch_la-switch_xml.o .libs/libfreeswitch_la-switch_xml_config.o .libs/libfreeswitch_la-switch_config.o .libs/libfreeswitch_la-switch_time.o .libs/libfreeswitch_la-switch_odbc.o .libs/libfreeswitch_la-switch_pgsql.o .libs/libfreeswitch_la-switch_limit.o .libs/libfreeswitch_la-g711.o .libs/libfreeswitch_la-switch_pcm.o .libs/libfreeswitch_la-switch_profile.o .libs/libfreeswitch_la-switch_json.o .libs/libfreeswitch_la-switch_curl.o .libs/libfreeswitch_la-tpl.o .libs/libfreeswitch_la-stfu.o .libs/libfreeswitch_la-libteletone_detect.o .libs/libfreeswitch_la-libteletone_generate.o .libs/libfreeswitch_la-miniwget.o .libs/libfreeswitch_la-minixml.o .libs/libfreeswitch_la-igd_desc_parse.o .libs/libfreeswitch_la-minisoap.o .libs/libfreeswitch_la-miniupnpc.o .libs/libfreeswitch_la-upnpreplyparse.o .libs/libfreeswitch_la-upnpcommands.o .libs/libfreeswitch_la-minissdpc.o .libs/libfreeswitch_la-upnperrors.o .libs/libfreeswitch_la-natpmp.o .libs/libfreeswitch_la-getgateway.o .libs/libfreeswitch_la-plc.o .libs/libfreeswitch_la-alloc.o .libs/libfreeswitch_la-bit_operations.o .libs/switch_cpp.o   -lz -L/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -L/usr/openssl101f/lib libs/apr-util/.libs/libaprutil-1.a libs/apr/.libs/libapr-1.a libs/sqlite/.libs/libsqlite3.a libs/pcre/.libs/libpcre.a libs/speex/libspeex/.libs/libspeexdsp.a libs/srtp/.libs/libsrtp.a libs/libedit/src/.libs/libedit.a libs/curl/lib/.libs/libcurl.a libs/apr-util/xml/expat/lib/.libs/libexpat.a -luuid -lpthread -ldl -lcrypt -lrt -lssl -lcrypto -lncurses /usr/lib/x86_64-linux-gnu/libjpeg.so -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crtn.o  -O2 -Wl,-lodbc   -pthread -Wl,-soname -Wl,libfreeswitch.so.1 -o .libs/libfreeswitch.so.1.0.0<BR>
quiet_libtool: link: (cd &quot;.libs&quot; &amp;&amp; rm -f &quot;libfreeswitch.so.1&quot; &amp;&amp; ln -s &quot;libfreeswitch.so.1.0.0&quot; &quot;libfreeswitch.so.1&quot;)<BR>
quiet_libtool: link: (cd &quot;.libs&quot; &amp;&amp; rm -f &quot;libfreeswitch.so&quot; &amp;&amp; ln -s &quot;libfreeswitch.so.1.0.0&quot; &quot;libfreeswitch.so&quot;)<BR>
quiet_libtool: link: ar cru .libs/libfreeswitch.a libs/libedit/src/.libs/libedit.a  libfreeswitch_la-switch_apr.o libfreeswitch_la-switch_buffer.o libfreeswitch_la-switch_caller.o libfreeswitch_la-switch_channel.o libfreeswitch_la-switch_console.o libfreeswitch_la-switch_mprintf.o libfreeswitch_la-switch_core_media_bug.o libfreeswitch_la-switch_core_timer.o libfreeswitch_la-switch_core_asr.o libfreeswitch_la-switch_core_event_hook.o libfreeswitch_la-switch_core_speech.o libfreeswitch_la-switch_core_memory.o libfreeswitch_la-switch_core_codec.o libfreeswitch_la-switch_core_file.o libfreeswitch_la-switch_core_hash.o libfreeswitch_la-switch_core_sqldb.o libfreeswitch_la-switch_core_session.o libfreeswitch_la-switch_core_directory.o libfreeswitch_la-switch_core_state_machine.o libfreeswitch_la-switch_core_io.o libfreeswitch_la-switch_core_rwlock.o libfreeswitch_la-switch_core_port_allocator.o libfreeswitch_la-switch_core.o libfreeswitch_la-switch_scheduler.o libfreeswitch_la-switch_core_db.o libfreeswitch_la-switch_dso.o libfreeswitch_la-switch_loadable_module.o libfreeswitch_la-switch_utils.o libfreeswitch_la-switch_event.o libfreeswitch_la-switch_resample.o libfreeswitch_la-switch_regex.o libfreeswitch_la-switch_rtp.o libfreeswitch_la-switch_ivr_bridge.o libfreeswitch_la-switch_ivr_originate.o libfreeswitch_la-switch_ivr_async.o libfreeswitch_la-switch_ivr_play_say.o libfreeswitch_la-switch_ivr_say.o libfreeswitch_la-switch_ivr_menu.o libfreeswitch_la-switch_ivr.o libfreeswitch_la-switch_stun.o libfreeswitch_la-switch_nat.o libfreeswitch_la-switch_log.o libfreeswitch_la-switch_xml.o libfreeswitch_la-switch_xml_config.o libfreeswitch_la-switch_config.o libfreeswitch_la-switch_time.o libfreeswitch_la-switch_odbc.o libfreeswitch_la-switch_pgsql.o libfreeswitch_la-switch_limit.o libfreeswitch_la-g711.o libfreeswitch_la-switch_pcm.o libfreeswitch_la-switch_profile.o libfreeswitch_la-switch_json.o libfreeswitch_la-switch_curl.o libfreeswitch_la-tpl.o libfreeswitch_la-stfu.o libfreeswitch_la-libteletone_detect.o libfreeswitch_la-libteletone_generate.o libfreeswitch_la-miniwget.o libfreeswitch_la-minixml.o libfreeswitch_la-igd_desc_parse.o libfreeswitch_la-minisoap.o libfreeswitch_la-miniupnpc.o libfreeswitch_la-upnpreplyparse.o libfreeswitch_la-upnpcommands.o libfreeswitch_la-minissdpc.o libfreeswitch_la-upnperrors.o libfreeswitch_la-natpmp.o libfreeswitch_la-getgateway.o libfreeswitch_la-plc.o libfreeswitch_la-alloc.o libfreeswitch_la-bit_operations.o switch_cpp.o<BR>
quiet_libtool: link: ranlib .libs/libfreeswitch.a<BR>
quiet_libtool: link: ( cd &quot;.libs&quot; &amp;&amp; rm -f &quot;libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &quot; &amp;&amp; ln -s &quot;../libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &quot; &quot;libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &quot; )<BR>
quiet_libtool: link: gcc -I/home/ubuntu/freeswitch/libs/curl/include -I/usr/include/uuid -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/libs/libteletone/src -I/home/ubuntu/freeswitch/libs/stfu -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -pthread -D_REENTRANT -D_GNU_SOURCE -I/home/ubuntu/freeswitch/libs/apr/include -I/home/ubuntu/freeswitch/libs/apr-util/include -I/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -I/home/ubuntu/freeswitch/libs/libtpl-1.5/src -I/home/ubuntu/freeswitch/libs/stfu -I/home/ubuntu/freeswitch/libs/sqlite -I/home/ubuntu/freeswitch/libs/pcre -I/home/ubuntu/freeswitch/libs/speex/include -Ilibs/speex/include -I/home/ubuntu/freeswitch/libs/srtp/include -I/home/ubuntu/freeswitch/libs/srtp/crypto/include -Ilibs/srtp/crypto/include -I/home/ubuntu/freeswitch/libs/spandsp/src -I/home/ubuntu/freeswitch/libs/tiff-4.0.2/libtiff -DENABLE_SRTP -DSWITCH_HAVE_ODBC -I/usr/include -I/home/ubuntu/freeswitch/libs/libedit/src -DSWITCH_HAVE_LIBEDIT -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT -I/usr/openssl101f/include -o .libs/freeswitch freeswitch-switch.o -Wl,-lodbc  -lm -lz -L/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -L/usr/openssl101f/lib ./.libs/libfreeswitch.so libs/apr/.libs/libapr-1.a -luuid -lrt -ldl -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lssl -lcrypto -lncurses /usr/lib/x86_64-linux-gnu/libjpeg.so -pthread -Wl,-rpath -Wl,/usr/local/freeswitch/lib<BR>
./.libs/libfreeswitch.so: undefined reference to `zlibVersion'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflate'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit2_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateEnd'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateReset'<BR>
collect2: ld returned 1 exit status<BR>
make[1]: *** [freeswitch] Error 1<BR>
make: *** [all] Error 2<BR>
make &quot;OUR_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-all ; done )&quot;; echo $mods )&quot; &quot;OUR_CLEAN_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-clean ; done )&quot;; echo $mods )&quot; &quot;OUR_INSTALL_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-install ; done)&quot;; echo $mods )&quot; &quot;OUR_UNINSTALL_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-uninstall ; done)&quot;; echo $mods )&quot; &quot;OUR_DISABLED_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; mods=&quot;$(for i in $tmp_mods ; do echo $i-all ; done )&quot;; echo $mods )&quot; &quot;OUR_DISABLED_CLEAN_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;;  mods=&quot;$(for i in $tmp_mods ; do echo $i-clean ; done )&quot;; echo $mods )&quot; &quot;OUR_DISABLED_INSTALL_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; mods=&quot;$(for i in $tmp_mods ; do echo $i-install ; done)&quot;; echo $mods )&quot; &quot;OUR_DISABLED_UNINSTALL_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; mods=&quot;$(for i in $tmp_mods ; do echo $i-uninstall ; done)&quot;; echo $mods )&quot; `test -n &quot;&quot; || echo -s` install-recursive<BR>
quiet_libtool: link: gcc -I/home/ubuntu/freeswitch/libs/curl/include -I/usr/include/uuid -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/libs/libteletone/src -I/home/ubuntu/freeswitch/libs/stfu -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -pthread -D_REENTRANT -D_GNU_SOURCE -I/home/ubuntu/freeswitch/libs/apr/include -I/home/ubuntu/freeswitch/libs/apr-util/include -I/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -I/home/ubuntu/freeswitch/libs/libtpl-1.5/src -I/home/ubuntu/freeswitch/libs/stfu -I/home/ubuntu/freeswitch/libs/sqlite -I/home/ubuntu/freeswitch/libs/pcre -I/home/ubuntu/freeswitch/libs/speex/include -Ilibs/speex/include -I/home/ubuntu/freeswitch/libs/srtp/include -I/home/ubuntu/freeswitch/libs/srtp/crypto/include -Ilibs/srtp/crypto/include -I/home/ubuntu/freeswitch/libs/spandsp/src -I/home/ubuntu/freeswitch/libs/tiff-4.0.2/libtiff -DENABLE_SRTP -DSWITCH_HAVE_ODBC -I/usr/include -I/home/ubuntu/freeswitch/libs/libedit/src -DSWITCH_HAVE_LIBEDIT -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT -I/usr/openssl101f/include -o .libs/freeswitch freeswitch-switch.o -Wl,-lodbc  -lm -lz -L/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -L/usr/openssl101f/lib ./.libs/libfreeswitch.so libs/apr/.libs/libapr-1.a -luuid -lrt -ldl -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lssl -lcrypto -lncurses /usr/lib/x86_64-linux-gnu/libjpeg.so -pthread -Wl,-rpath -Wl,/usr/local/freeswitch/lib<BR>
./.libs/libfreeswitch.so: undefined reference to `zlibVersion'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflate'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit2_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateEnd'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateReset'<BR>
collect2: ld returned 1 exit status<BR>
make[1]: *** [freeswitch] Error 1<BR>
make: *** [install] Error 2<BR>
test -d /usr/local/freeswitch/conf || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/conf<BR>
for conffile in `cd /home/ubuntu/freeswitch/conf/vanilla &amp;&amp; find . -name \*.xml &amp;&amp; find . -name \*.conf &amp;&amp; find . -name \*.tpl  &amp;&amp; find . -name \*.ttml &amp;&amp; find . -name mime.types` ; do \<BR>
dir=`echo $conffile | sed -e 's|^\.||' | sed -e 's|/[^/]*$||'`; \<BR>
filename=`echo $conffile | sed -e 's|^\.||' | sed -e 's|^.*/||'`; \<BR>
test -d /usr/local/freeswitch/conf$dir || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/conf$dir ; \<BR>
test -f /usr/local/freeswitch/conf$dir/$filename || \<BR>
test -f /usr/local/freeswitch/conf$dir/$filename.noload || \<BR>
/usr/bin/install -c -m 644 /home/ubuntu/freeswitch/conf/vanilla/$dir/$filename /usr/local/freeswitch/conf$dir; \<BR>
done<BR>
test -d /usr/local/freeswitch/htdocs || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/htdocs<BR>
for htdocsfile in `cd /home/ubuntu/freeswitch/htdocs &amp;&amp; find . -type f -name \* | sed -e 's|^\.||'` ; do \<BR>
dir=`echo $htdocsfile | sed -e 's|/[^/]*$||'`; \<BR>
filename=`echo $htdocsfile | sed -e 's|^.*/||'`; \<BR>
test -d /usr/local/freeswitch/htdocs$dir || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/htdocs$dir ; \<BR>
test -f /usr/local/freeswitch/htdocs$dir/$filename || /usr/bin/install -c -m 644 /home/ubuntu/freeswitch/htdocs/$dir/$filename /usr/local/freeswitch/htdocs$dir 2&gt;/dev/null;  \<BR>
<BR>
<BR>
<BR>
Seems to be the same one I got with v1.2.  Any ideas?<BR>
<BR>
<BR>
On Tue, Feb 4, 2014 at 5:51 PM, Josh Nankin &lt;<a href="jnankin@gmail.com">jnankin@gmail.com</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>I've been using the following script for some time to build freeswitch on my machines.  I recently edited the script to install openssl v1.0.1f, as that is now required it seems by this version of free switch.<BR>
<BR>
Here's my script:<BR>
<BR>
#!/bin/bash<BR>
<BR>
test &quot;$BRANCH&quot; != &quot;&quot; || BRANCH=v1.2.stable<BR>
<BR>
apt-get update<BR>
apt-get install -y git-core subversion build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev gawk<BR>
apt-get install -y libcurl4-openssl-dev libexpat1-dev libgnutls-dev libtiff4-dev libx11-dev unixodbc-dev libssl-dev python2.6-dev \<BR>
                       zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev python-dev \<BR>
                       uuid-dev<BR>
update-alternatives --set awk /usr/bin/gawk<BR>
git clone -b $BRANCH git://git.freeswitch.org/freeswitch.git &lt;<a href="http://git.freeswitch.org/freeswitch.git">http://git.freeswitch.org/freeswitch.git</a>&gt; <BR>
<BR>
<BR>
###############################################################<BR>
# INSTALL OPENSSL v1.0.1f<BR>
###############################################################<BR>
wget <a href="http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1f-fix_parallel_build-1.patch">http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1f-fix_parallel_build-1.patch</a><BR>
wget <a href="http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1f-fix_pod_syntax-1.patch">http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1f-fix_pod_syntax-1.patch</a><BR>
wget <a href="http://www.openssl.org/source/openssl-1.0.1f.tar.gz">http://www.openssl.org/source/openssl-1.0.1f.tar.gz</a><BR>
tar -zxvf openssl-1.0.1f.tar.gz<BR>
cd openssl-1.0.1f<BR>
<BR>
patch -Np1 -i ../openssl-1.0.1f-fix_parallel_build-1.patch &amp;&amp;<BR>
patch -Np1 -i ../openssl-1.0.1f-fix_pod_syntax-1.patch &amp;&amp;<BR>
./config --prefix=/usr/openssl101f -fPIC \<BR>
         --openssldir=/etc/ssl \<BR>
         --libdir=lib          \<BR>
         shared                \<BR>
         zlib-dynamic &amp;&amp;<BR>
make<BR>
make install<BR>
<BR>
##############################################################<BR>
# INSTALL FREESWITCH<BR>
##############################################################<BR>
cd ..<BR>
cd freeswitch<BR>
./bootstrap.sh<BR>
./configure CFLAGS=&quot;-I/usr/openssl101f/include&quot; LDFLAGS=&quot;-L/usr/openssl101f/lib&quot;<BR>
<BR>
cat &gt;modules.conf &lt;&lt;'EOL'<BR>
applications/mod_commands<BR>
applications/mod_conference<BR>
applications/mod_db<BR>
applications/mod_dptools<BR>
applications/mod_enum<BR>
applications/mod_esf<BR>
applications/mod_esl<BR>
applications/mod_expr<BR>
applications/mod_fifo<BR>
applications/mod_fsv<BR>
applications/mod_hash<BR>
applications/mod_httapi<BR>
applications/mod_spandsp<BR>
codecs/mod_amr<BR>
codecs/mod_bv<BR>
codecs/mod_g723_1<BR>
codecs/mod_g729<BR>
codecs/mod_h26x<BR>
codecs/mod_vp8<BR>
codecs/mod_speex<BR>
dialplans/mod_dialplan_asterisk<BR>
dialplans/mod_dialplan_xml<BR>
endpoints/mod_loopback<BR>
endpoints/mod_sofia<BR>
event_handlers/mod_cdr_csv<BR>
event_handlers/mod_cdr_sqlite<BR>
event_handlers/mod_event_socket<BR>
formats/mod_local_stream<BR>
formats/mod_native_file<BR>
formats/mod_sndfile<BR>
formats/mod_tone_stream<BR>
languages/mod_lua<BR>
languages/mod_spidermonkey<BR>
loggers/mod_console<BR>
loggers/mod_logfile<BR>
loggers/mod_syslog<BR>
say/mod_say_en<BR>
xml_int/mod_xml_cdr<BR>
xml_int/mod_xml_rpc<BR>
xml_int/mod_xml_scgi<BR>
EOL<BR>
make<BR>
<BR>
<BR>
cat &gt;/etc/init.d/freeswitch &lt;&lt;'EOL'<BR>
#!/bin/sh<BR>
### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-<BR>
### BEGIN INIT INFO<BR>
# Provides: freeswitch<BR>
# Required-Start: $network $remote_fs $local_fs<BR>
# Required-Stop: $network $remote_fs $local_fs<BR>
# Default-Start: 2 3 4 5<BR>
# Default-Stop: 0 1 6<BR>
# Short-Description: FreeSWITCH Softswitch<BR>
# Description: FreeSWITCH Softswitch<BR>
### END INIT INFO<BR>
<BR>
# Author: Travis Cross &lt;<a href="tc@traviscross.com">tc@traviscross.com</a>&gt;<BR>
<BR>
PATH=/sbin:/usr/sbin:/bin:/usr/bin<BR>
DESC=freeswitch<BR>
NAME=freeswitch<BR>
DAEMON=/usr/local/freeswitch/bin/freeswitch<BR>
DAEMON_ARGS=&quot;-u freeswitch -g daemon -rp -nc -nonat&quot;<BR>
USER=freeswitch<BR>
PIDFILE=/usr/local/freeswitch/run/freeswitch.pid<BR>
SCRIPTNAME=/etc/init.d/$NAME<BR>
WORKDIR=/usr/local/freeswitch/lib<BR>
<BR>
[ -x $DAEMON ] || exit 0<BR>
[ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME<BR>
. /lib/init/vars.sh<BR>
. /lib/lsb/init-functions<BR>
<BR>
do_start() {<BR>
  start-stop-daemon --start --quiet \<BR>
    --pidfile $PIDFILE --exec $DAEMON --name $NAME --user $USER \<BR>
    --test &gt; /dev/null \<BR>
    || return 1<BR>
  ulimit -s 240<BR>
  start-stop-daemon --start --quiet \<BR>
    --pidfile $PIDFILE --exec $DAEMON --name $NAME --user $USER \<BR>
    --chdir $WORKDIR -- $DAEMON_ARGS $DAEMON_OPTS \<BR>
    || return 2<BR>
  return 0<BR>
}<BR>
<BR>
stop_fs() {<BR>
  start-stop-daemon --stop --quiet \<BR>
    --pidfile $PIDFILE --name $NAME --user $USER \<BR>
    --retry=TERM/30/KILL/5<BR>
}<BR>
<BR>
stop_fs_children() {<BR>
  start-stop-daemon --stop --quiet \<BR>
    --exec $DAEMON \<BR>
    --oknodo --retry=0/30/KILL/5<BR>
}<BR>
<BR>
do_stop() {<BR>
  stop_fs<BR>
  RETVAL=&quot;$?&quot;<BR>
  [ &quot;$RETVAL&quot; -eq 2 ] &amp;&amp; return 2<BR>
  stop_fs_children<BR>
  [ &quot;$?&quot; -eq 2 ] &amp;&amp; return 2<BR>
  rm -f $PIDFILE<BR>
  return &quot;$RETVAL&quot;<BR>
}<BR>
<BR>
do_reload() {<BR>
  start-stop-daemon --stop --quiet \<BR>
    --pidfile $PIDFILE --name $NAME --user $USER \<BR>
    --signal HUP<BR>
}<BR>
<BR>
case &quot;$1&quot; in<BR>
  start)<BR>
    [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_daemon_msg &quot;Starting $DESC &quot; &quot;$NAME&quot;<BR>
    do_start<BR>
    case &quot;$?&quot; in<BR>
      0|1) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 0 ;;<BR>
      2) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 1 ;;<BR>
    esac<BR>
    ;;<BR>
  stop)<BR>
    [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_daemon_msg &quot;Stopping $DESC&quot; &quot;$NAME&quot;<BR>
    do_stop<BR>
    case &quot;$?&quot; in<BR>
      0|1) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 0 ;;<BR>
      2) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 1 ;;<BR>
    esac<BR>
    ;;<BR>
  status)<BR>
    status_of_proc &quot;$DAEMON&quot; &quot;$NAME&quot; &amp;&amp; exit 0 || exit $?<BR>
    ;;<BR>
  reload|force-reload)<BR>
    log_daemon_msg &quot;Reloading $DESC&quot; &quot;$NAME&quot;<BR>
    do_reload<BR>
    log_end_msg $?<BR>
    ;;<BR>
  restart)<BR>
    log_daemon_msg &quot;Restarting $DESC&quot; &quot;$NAME&quot;<BR>
    do_stop<BR>
    case &quot;$?&quot; in<BR>
      0|1)<BR>
        do_start<BR>
        case &quot;$?&quot; in<BR>
          0) log_end_msg 0 ;;<BR>
          1|*) log_end_msg 1 ;;<BR>
        esac<BR>
        ;;<BR>
      *) log_end_msg 1 ;;<BR>
    esac<BR>
    ;;<BR>
  *)<BR>
    echo &quot;Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}&quot; &gt;&amp;2<BR>
    exit 3<BR>
    ;;<BR>
esac<BR>
<BR>
exit 0<BR>
EOL<BR>
chmod a+x /etc/init.d/freeswitch<BR>
<BR>
make install<BR>
make samples<BR>
adduser --disabled-password  --quiet --system --gecos &quot;FreeSWITCH Voice Platform&quot; --ingroup daemon freeswitch<BR>
chown -R freeswitch:daemon /usr/local/freeswitch/<BR>
chmod -R o-rwx /usr/local/freeswitch/<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
The build error I'm getting is the following:<BR>
<BR>
<BR>
<BR>
<BR>
*** Warning: Linking the shared library libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &nbsp;against the<BR>
*** static library libs/libedit/src/.libs/libedit.a is not portable!<BR>
quiet_libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o  .libs/libfreeswitch_la-switch_apr.o .libs/libfreeswitch_la-switch_buffer.o .libs/libfreeswitch_la-switch_caller.o .libs/libfreeswitch_la-switch_channel.o .libs/libfreeswitch_la-switch_console.o .libs/libfreeswitch_la-switch_mprintf.o .libs/libfreeswitch_la-switch_core_media_bug.o .libs/libfreeswitch_la-switch_core_timer.o .libs/libfreeswitch_la-switch_core_asr.o .libs/libfreeswitch_la-switch_core_event_hook.o .libs/libfreeswitch_la-switch_core_speech.o .libs/libfreeswitch_la-switch_core_memory.o .libs/libfreeswitch_la-switch_core_codec.o .libs/libfreeswitch_la-switch_core_file.o .libs/libfreeswitch_la-switch_core_hash.o .libs/libfreeswitch_la-switch_core_sqldb.o .libs/libfreeswitch_la-switch_core_session.o .libs/libfreeswitch_la-switch_core_directory.o .libs/libfreeswitch_la-switch_core_state_machine.o .libs/libfreeswitch_la-switch_core_io.o .libs/libfreeswitch_la-switch_core_rwlock.o .libs/libfreeswitch_la-switch_core_port_allocator.o .libs/libfreeswitch_la-switch_core.o .libs/libfreeswitch_la-switch_scheduler.o .libs/libfreeswitch_la-switch_core_db.o .libs/libfreeswitch_la-switch_dso.o .libs/libfreeswitch_la-switch_loadable_module.o .libs/libfreeswitch_la-switch_utils.o .libs/libfreeswitch_la-switch_event.o .libs/libfreeswitch_la-switch_resample.o .libs/libfreeswitch_la-switch_regex.o .libs/libfreeswitch_la-switch_rtp.o .libs/libfreeswitch_la-switch_ivr_bridge.o .libs/libfreeswitch_la-switch_ivr_originate.o .libs/libfreeswitch_la-switch_ivr_async.o .libs/libfreeswitch_la-switch_ivr_play_say.o .libs/libfreeswitch_la-switch_ivr_say.o .libs/libfreeswitch_la-switch_ivr_menu.o .libs/libfreeswitch_la-switch_ivr.o .libs/libfreeswitch_la-switch_stun.o .libs/libfreeswitch_la-switch_nat.o .libs/libfreeswitch_la-switch_log.o .libs/libfreeswitch_la-switch_xml.o .libs/libfreeswitch_la-switch_xml_config.o .libs/libfreeswitch_la-switch_config.o .libs/libfreeswitch_la-switch_time.o .libs/libfreeswitch_la-switch_odbc.o .libs/libfreeswitch_la-switch_pgsql.o .libs/libfreeswitch_la-switch_limit.o .libs/libfreeswitch_la-g711.o .libs/libfreeswitch_la-switch_pcm.o .libs/libfreeswitch_la-switch_profile.o .libs/libfreeswitch_la-switch_json.o .libs/libfreeswitch_la-switch_curl.o .libs/libfreeswitch_la-tpl.o .libs/libfreeswitch_la-stfu.o .libs/libfreeswitch_la-libteletone_detect.o .libs/libfreeswitch_la-libteletone_generate.o .libs/libfreeswitch_la-miniwget.o .libs/libfreeswitch_la-minixml.o .libs/libfreeswitch_la-igd_desc_parse.o .libs/libfreeswitch_la-minisoap.o .libs/libfreeswitch_la-miniupnpc.o .libs/libfreeswitch_la-upnpreplyparse.o .libs/libfreeswitch_la-upnpcommands.o .libs/libfreeswitch_la-minissdpc.o .libs/libfreeswitch_la-upnperrors.o .libs/libfreeswitch_la-natpmp.o .libs/libfreeswitch_la-getgateway.o .libs/libfreeswitch_la-plc.o .libs/libfreeswitch_la-alloc.o .libs/libfreeswitch_la-bit_operations.o .libs/switch_cpp.o   -lz -L/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -L/usr/openssl101f/lib libs/apr-util/.libs/libaprutil-1.a libs/apr/.libs/libapr-1.a libs/sqlite/.libs/libsqlite3.a libs/pcre/.libs/libpcre.a libs/speex/libspeex/.libs/libspeexdsp.a libs/srtp/.libs/libsrtp.a libs/libedit/src/.libs/libedit.a libs/curl/lib/.libs/libcurl.a libs/apr-util/xml/expat/lib/.libs/libexpat.a -luuid -lpthread -ldl -lcrypt -lrt -lssl -lcrypto -lncurses /usr/lib/x86_64-linux-gnu/libjpeg.so -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crtn.o  -O2 -Wl,-lodbc   -pthread -Wl,-soname -Wl,libfreeswitch.so.1 -o .libs/libfreeswitch.so.1.0.0<BR>
quiet_libtool: link: (cd &quot;.libs&quot; &amp;&amp; rm -f &quot;libfreeswitch.so.1&quot; &amp;&amp; ln -s &quot;libfreeswitch.so.1.0.0&quot; &quot;libfreeswitch.so.1&quot;)<BR>
quiet_libtool: link: (cd &quot;.libs&quot; &amp;&amp; rm -f &quot;libfreeswitch.so&quot; &amp;&amp; ln -s &quot;libfreeswitch.so.1.0.0&quot; &quot;libfreeswitch.so&quot;)<BR>
quiet_libtool: link: ar cru .libs/libfreeswitch.a libs/libedit/src/.libs/libedit.a  libfreeswitch_la-switch_apr.o libfreeswitch_la-switch_buffer.o libfreeswitch_la-switch_caller.o libfreeswitch_la-switch_channel.o libfreeswitch_la-switch_console.o libfreeswitch_la-switch_mprintf.o libfreeswitch_la-switch_core_media_bug.o libfreeswitch_la-switch_core_timer.o libfreeswitch_la-switch_core_asr.o libfreeswitch_la-switch_core_event_hook.o libfreeswitch_la-switch_core_speech.o libfreeswitch_la-switch_core_memory.o libfreeswitch_la-switch_core_codec.o libfreeswitch_la-switch_core_file.o libfreeswitch_la-switch_core_hash.o libfreeswitch_la-switch_core_sqldb.o libfreeswitch_la-switch_core_session.o libfreeswitch_la-switch_core_directory.o libfreeswitch_la-switch_core_state_machine.o libfreeswitch_la-switch_core_io.o libfreeswitch_la-switch_core_rwlock.o libfreeswitch_la-switch_core_port_allocator.o libfreeswitch_la-switch_core.o libfreeswitch_la-switch_scheduler.o libfreeswitch_la-switch_core_db.o libfreeswitch_la-switch_dso.o libfreeswitch_la-switch_loadable_module.o libfreeswitch_la-switch_utils.o libfreeswitch_la-switch_event.o libfreeswitch_la-switch_resample.o libfreeswitch_la-switch_regex.o libfreeswitch_la-switch_rtp.o libfreeswitch_la-switch_ivr_bridge.o libfreeswitch_la-switch_ivr_originate.o libfreeswitch_la-switch_ivr_async.o libfreeswitch_la-switch_ivr_play_say.o libfreeswitch_la-switch_ivr_say.o libfreeswitch_la-switch_ivr_menu.o libfreeswitch_la-switch_ivr.o libfreeswitch_la-switch_stun.o libfreeswitch_la-switch_nat.o libfreeswitch_la-switch_log.o libfreeswitch_la-switch_xml.o libfreeswitch_la-switch_xml_config.o libfreeswitch_la-switch_config.o libfreeswitch_la-switch_time.o libfreeswitch_la-switch_odbc.o libfreeswitch_la-switch_pgsql.o libfreeswitch_la-switch_limit.o libfreeswitch_la-g711.o libfreeswitch_la-switch_pcm.o libfreeswitch_la-switch_profile.o libfreeswitch_la-switch_json.o libfreeswitch_la-switch_curl.o libfreeswitch_la-tpl.o libfreeswitch_la-stfu.o libfreeswitch_la-libteletone_detect.o libfreeswitch_la-libteletone_generate.o libfreeswitch_la-miniwget.o libfreeswitch_la-minixml.o libfreeswitch_la-igd_desc_parse.o libfreeswitch_la-minisoap.o libfreeswitch_la-miniupnpc.o libfreeswitch_la-upnpreplyparse.o libfreeswitch_la-upnpcommands.o libfreeswitch_la-minissdpc.o libfreeswitch_la-upnperrors.o libfreeswitch_la-natpmp.o libfreeswitch_la-getgateway.o libfreeswitch_la-plc.o libfreeswitch_la-alloc.o libfreeswitch_la-bit_operations.o switch_cpp.o<BR>
quiet_libtool: link: ranlib .libs/libfreeswitch.a<BR>
quiet_libtool: link: ( cd &quot;.libs&quot; &amp;&amp; rm -f &quot;libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &quot; &amp;&amp; ln -s &quot;../libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &quot; &quot;libfreeswitch.la &lt;<a href="http://libfreeswitch.la">http://libfreeswitch.la</a>&gt; &quot; )<BR>
quiet_libtool: link: gcc -I/home/ubuntu/freeswitch/libs/curl/include -I/usr/include/uuid -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/libs/libteletone/src -I/home/ubuntu/freeswitch/libs/stfu -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -pthread -D_REENTRANT -D_GNU_SOURCE -I/home/ubuntu/freeswitch/libs/apr/include -I/home/ubuntu/freeswitch/libs/apr-util/include -I/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -I/home/ubuntu/freeswitch/libs/libtpl-1.5/src -I/home/ubuntu/freeswitch/libs/stfu -I/home/ubuntu/freeswitch/libs/sqlite -I/home/ubuntu/freeswitch/libs/pcre -I/home/ubuntu/freeswitch/libs/speex/include -Ilibs/speex/include -I/home/ubuntu/freeswitch/libs/srtp/include -I/home/ubuntu/freeswitch/libs/srtp/crypto/include -Ilibs/srtp/crypto/include -I/home/ubuntu/freeswitch/libs/spandsp/src -I/home/ubuntu/freeswitch/libs/tiff-4.0.2/libtiff -DENABLE_SRTP -DSWITCH_HAVE_ODBC -I/usr/include -I/home/ubuntu/freeswitch/libs/libedit/src -DSWITCH_HAVE_LIBEDIT -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT -I/usr/openssl101f/include -o .libs/freeswitch freeswitch-switch.o -Wl,-lodbc  -lm -lz -L/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -L/usr/openssl101f/lib ./.libs/libfreeswitch.so libs/apr/.libs/libapr-1.a -luuid -lrt -ldl -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lssl -lcrypto -lncurses /usr/lib/x86_64-linux-gnu/libjpeg.so -pthread -Wl,-rpath -Wl,/usr/local/freeswitch/lib<BR>
./.libs/libfreeswitch.so: undefined reference to `zlibVersion'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflate'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit2_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateEnd'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateReset'<BR>
collect2: ld returned 1 exit status<BR>
make[1]: *** [freeswitch] Error 1<BR>
make: *** [all] Error 2<BR>
make &quot;OUR_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-all ; done )&quot;; echo $mods )&quot; &quot;OUR_CLEAN_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-clean ; done )&quot;; echo $mods )&quot; &quot;OUR_INSTALL_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-install ; done)&quot;; echo $mods )&quot; &quot;OUR_UNINSTALL_MODULES=$(if test -z &quot;&quot; ; then tmp_mods=&quot;$(grep -v &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; else tmp_mods=&quot;&quot; ; fi ; mods=&quot;$(for i in $tmp_mods ; do echo $i-uninstall ; done)&quot;; echo $mods )&quot; &quot;OUR_DISABLED_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; mods=&quot;$(for i in $tmp_mods ; do echo $i-all ; done )&quot;; echo $mods )&quot; &quot;OUR_DISABLED_CLEAN_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;;  mods=&quot;$(for i in $tmp_mods ; do echo $i-clean ; done )&quot;; echo $mods )&quot; &quot;OUR_DISABLED_INSTALL_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; mods=&quot;$(for i in $tmp_mods ; do echo $i-install ; done)&quot;; echo $mods )&quot; &quot;OUR_DISABLED_UNINSTALL_MODULES=$(tmp_mods=&quot;$(grep &quot;#&quot; /home/ubuntu/freeswitch/modules.conf | grep -v &quot;##&quot; | sed -e &quot;s|^.*/||&quot; | sort | uniq )&quot;; mods=&quot;$(for i in $tmp_mods ; do echo $i-uninstall ; done)&quot;; echo $mods )&quot; `test -n &quot;&quot; || echo -s` install-recursive<BR>
quiet_libtool: link: gcc -I/home/ubuntu/freeswitch/libs/curl/include -I/usr/include/uuid -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/src/include -I/home/ubuntu/freeswitch/libs/libteletone/src -I/home/ubuntu/freeswitch/libs/stfu -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -pthread -D_REENTRANT -D_GNU_SOURCE -I/home/ubuntu/freeswitch/libs/apr/include -I/home/ubuntu/freeswitch/libs/apr-util/include -I/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -I/home/ubuntu/freeswitch/libs/libtpl-1.5/src -I/home/ubuntu/freeswitch/libs/stfu -I/home/ubuntu/freeswitch/libs/sqlite -I/home/ubuntu/freeswitch/libs/pcre -I/home/ubuntu/freeswitch/libs/speex/include -Ilibs/speex/include -I/home/ubuntu/freeswitch/libs/srtp/include -I/home/ubuntu/freeswitch/libs/srtp/crypto/include -Ilibs/srtp/crypto/include -I/home/ubuntu/freeswitch/libs/spandsp/src -I/home/ubuntu/freeswitch/libs/tiff-4.0.2/libtiff -DENABLE_SRTP -DSWITCH_HAVE_ODBC -I/usr/include -I/home/ubuntu/freeswitch/libs/libedit/src -DSWITCH_HAVE_LIBEDIT -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT -I/usr/openssl101f/include -o .libs/freeswitch freeswitch-switch.o -Wl,-lodbc  -lm -lz -L/home/ubuntu/freeswitch/libs/apr-util/xml/expat/lib -L/usr/openssl101f/lib ./.libs/libfreeswitch.so libs/apr/.libs/libapr-1.a -luuid -lrt -ldl -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lssl -lcrypto -lncurses /usr/lib/x86_64-linux-gnu/libjpeg.so -pthread -Wl,-rpath -Wl,/usr/local/freeswitch/lib<BR>
./.libs/libfreeswitch.so: undefined reference to `zlibVersion'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflate'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit2_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateInit_'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateEnd'<BR>
./.libs/libfreeswitch.so: undefined reference to `inflateReset'<BR>
collect2: ld returned 1 exit status<BR>
make[1]: *** [freeswitch] Error 1<BR>
make: *** [install] Error 2<BR>
test -d /usr/local/freeswitch/conf || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/conf<BR>
for conffile in `cd /home/ubuntu/freeswitch/conf/vanilla &amp;&amp; find . -name \*.xml &amp;&amp; find . -name \*.conf &amp;&amp; find . -name \*.tpl  &amp;&amp; find . -name \*.ttml &amp;&amp; find . -name mime.types` ; do \<BR>
dir=`echo $conffile | sed -e 's|^\.||' | sed -e 's|/[^/]*$||'`; \<BR>
filename=`echo $conffile | sed -e 's|^\.||' | sed -e 's|^.*/||'`; \<BR>
test -d /usr/local/freeswitch/conf$dir || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/conf$dir ; \<BR>
test -f /usr/local/freeswitch/conf$dir/$filename || \<BR>
test -f /usr/local/freeswitch/conf$dir/$filename.noload || \<BR>
/usr/bin/install -c -m 644 /home/ubuntu/freeswitch/conf/vanilla/$dir/$filename /usr/local/freeswitch/conf$dir; \<BR>
done<BR>
test -d /usr/local/freeswitch/htdocs || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/htdocs<BR>
for htdocsfile in `cd /home/ubuntu/freeswitch/htdocs &amp;&amp; find . -type f -name \* | sed -e 's|^\.||'` ; do \<BR>
dir=`echo $htdocsfile | sed -e 's|/[^/]*$||'`; \<BR>
filename=`echo $htdocsfile | sed -e 's|^.*/||'`; \<BR>
test -d /usr/local/freeswitch/htdocs$dir || /bin/bash /home/ubuntu/freeswitch/build/config/install-sh -d /usr/local/freeswitch/htdocs$dir ; \<BR>
test -f /usr/local/freeswitch/htdocs$dir/$filename || /usr/bin/install -c -m 644 /home/ubuntu/freeswitch/htdocs/$dir/$filename /usr/local/freeswitch/htdocs$dir 2&gt;/dev/null;  \<BR>
done<BR>
<BR>
<BR>
<BR>
Additionally, it would probably be good for the freeswitch staff to update the wiki for installs on ubuntu, and give one authoritative method for installing on ubuntu.  There are several paragraphs/scripts for installation on Ubuntu, and none of them seem to work for me.<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
Twitter: @FreeSWITCH<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>