<div dir="ltr"><div>&gt;&gt;Fails with what message?<br></div><div><br></div><div>When I configure with --without-ldap </div><div><br></div><div>&quot;checking for ldap support...</div><div>checking for ldap_init in -lno... no</div><div>checking for ldap_init in -lno... no</div><div>checking for ldap_init in -lno... no</div><div>checking for ldap_init in -lno... no</div><div>configure: error: could not find an LDAP library</div><div>configure: error: /home/sharath/trunk/unpacked/freeswitch-1.4.21/libs/apr-util/configure.gnu failed for libs/apr-util</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 9:46 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On Sep 2, 2015, at 11:11 AM, Sharath Kumar &lt;<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">I am not building my own apr-util. If I try to build FS with --without-ldap option, the main FS configure script fails with this message &quot;<div>The configure of apr-util does not have ldap disabled either.</div><div><br></div></div></div></blockquote><div><br></div></span>Fails with what message?</div><div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div>Platform: standard x86_64-linux but with a custom kernel.</div><div><br></div><div>Trying to cross-compile on a Ubuntu 14.4 host.</div><div><br></div><div>1. I&#39;m running bootstrap.sh [ I&#39;m not sure whether I should run this it seems like it is for Debian]  <br></div></div></div></blockquote><div><br></div></span>Thats correct, you should be running this.</div><div><div><div class="h5"><br><blockquote type="cite"><div><div dir="ltr"><div>2. A makefile that basically calls the top-level configure script and calls make.</div><div><br></div><div><div>PHONY : $(X86_64_ARCH)/freeswitch</div><div>$(X86_64_ARCH)/freeswitch: $(freeswitch_loc)/configure</div><div>        cd $(TOP)</div><div>        mkdir -p $@</div><div>        cd $@ &amp;&amp; \</div><div>        export PKG_CONFIG_PATH=$(X86_64_INSTALL)/usr/lib/pkgconfig &amp;&amp; \</div><div>        export ac_cv_func_malloc_0_nonnull=yes &amp;&amp; \</div><div>        export ac_cv_func_realloc_0_nonnull=yes &amp;&amp; \</div><div>        export apr_cv_mutex_recursive=yes &amp;&amp; \</div><div>        export ac_cv_file__dev_urandom=yes &amp;&amp; \</div><div>        export ac_cv_file__dev_ptmx=yes &amp;&amp; \</div><div>        export ac_cv_file__dev_zero=yes &amp;&amp; \</div><div>        export ac_cv_func_setpgrp_void=yes &amp;&amp; \</div><div>        export apr_cv_process_shared_works=yes &amp;&amp; \</div><div>        export apr_cv_mutex_robust_shared=no &amp;&amp; \</div><div>        export apr_cv_tcp_nodelay_with_cork=yes &amp;&amp; \</div><div>        export ac_cv_sizeof_struct_iovec=8 &amp;&amp; \</div><div>        export apr_cv_mutex_recursive=yes &amp;&amp; \</div><div>        export ac_cv_file_dbd_apr_dbd_mysql_c=no &amp;&amp; \</div><div>        $(freeswitch_loc)/bootstrap.sh &amp;&amp; \</div><div>        $(freeswitch_loc)/configure \</div><div>            --build=`uname -m` \</div><div>            --host=$(X86_64_ARCH) \</div><div>            --exec-prefix=/usr \</div><div>            --prefix=/var/lib/freeswitch \</div><div>            --libexecdir=/usr/lib \</div><div>            --libdir=/usr/lib \</div><div>            --sysconfdir=/etc/freeswitch \</div><div>            --datarootdir=/usr/share \</div><div>            --includedir=/usr/include/freeswitch \</div><div>            --with-modinstdir=/usr/lib/freeswitch/mod \</div><div>            --localstatedir=/var \</div><div>            --with-rundir=/var/run \</div><div>            --disable-core-libedit-support \</div></div></div></div></blockquote><br><blockquote type="cite"><div><div dir="ltr"><div><div>            --enable-static \</div></div></div></div></blockquote></div></div>why --enable-static ?<span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><div>            --disable-debug \</div><div>            --disable-core-odbc-support \</div><div>            --disable-system-xmlrpc-c \</div><div>            --without-erlang \</div><div>            --without-python \</div><div>            --with-sysroot=$(X86_64_INSTALL) \</div></div></div></div></blockquote><div><br></div></span><div>this looks mostly good</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><div>                                                                                                                                                64,1-8        38%</div></div><div><div>CPPFLAGS=&quot;-I$(freeswitch_loc)/src/include -D_GNU_SOURCE&quot; \</div></div></div></div></blockquote><div><br></div></span><div>Why are you adding -D_GNU_SOURCE?  Is this line actually needed?</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><div>            CFLAGS=&quot;-Wno-error=strict-aliasing \</div><div>                    -Wno-error=unused-value&quot;</div></div></div></div></blockquote><br><blockquote type="cite"><div><div dir="ltr"><div><div>        sed -e &#39;s/^DEFAULT_INCLUDES = -I./DEFAULT_INCLUDES = -I$$(abs_builddir)/g&#39; \</div><div>            -i $@/libs/tiff-4.0.2/libtiff/Makefile</div></div></div></div></blockquote></span><div>What is this for?</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><div>        sed -e &#39;/DTHREADSAFE/ a TCC += $$(CPPFLAGS) $$(LDFLAGS)&#39; \</div><div>            -i $@/libs/sqlite/Makefile</div></div></div></div></blockquote><div><br></div></span>What is this for? (note on master, we use system sqlite)</div><div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><div>        sed -e &#39;s%-DSWITCH_DECLARE_CLASS%-I$(freeswitch_loc)/src/include -I$(X86_64_BUILD)/freeswitch/src/include -DSWITCH_DECLARE_CLASS%g&#39; \</div><div>            -i $@/Makefile</div></div></div></div></blockquote><div><br></div></span>What is this for?  That symbol doesn&#39;t even exist in the core Makefile, so this line is actually doing nothing at all.  I don&#39;t think you actually need to add the -I$(X86_64_BUILD)/freeswitch/src/include explicitly here, it will likely get added where it needs to be from stuff from pkg-config (at least on master)</div><div><br><blockquote type="cite"><div><div dir="ltr"><div><div>        $(MAKE) -C $@ $(X86_64_BUILD)/freeswitch/modules.conf</div></div></div></div></blockquote><div><br></div>What does this do?</div><div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div>   $(MAKE) -j $(SIMUL) -C $@ DESTDIR=$(X86_64_INSTALL) \</div><div>          CPPFLAGS=&quot;-I$(freeswitch_loc)/src/include -D_GNU_SOURCE -DHAVE_UINT64_T&quot; \</div></div></div></blockquote><div><br></div></span>What is this CPPFLAGS for?</div><div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div>          install</div><div><br></div><div><br></div><div>I also ran autoconf --reconf to generate Makefile.in from the Makefile.am file.</div><div><br></div></div></div></blockquote><div><br></div></span><div>you shouldn&#39;t have to do that</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div>I will definitely migrate to the master but I wanted to try and see if 1.4 builds. </div></div></div></blockquote><div><br></div></span>I have done quite a lot in the master build system that moves quite a few libraries (although not apr-utils) out of our build system.  This will require you to repackage seperately a few more libs for your cross toolchain, but should greatly simplify the cross of freeswitch itself.  I have also done quite a bit of work fixing srcdir and cross builds in master that is not in the 1.4 branch.  It is likely much easier for you to accomplish this on master (although I do have working cross builds on 1.4, its a lot more painful to make work right)</div><div><div class="h5"><div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Am I doing something obviously wrong here ?</div><div><br></div><div>Mike, Thank you so much!</div><div><br></div><div>Shaks</div><div><br></div><div><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 7:06 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">those are out of apr-util but we don&#39;t use them, and I thought that in our configure we pass to that we disable those.  What steps exactly are you going through trying to build this?  You shouldn&#39;t need to be building your own apr libs, those should build as part of our build proces, and in my experience they should cross easily.  can you reply with some details of the platform your trying to cross to and why your build scripts look like so far?  Also, we are getting ready to release 1.6 very soon.  If you are already making a huge version jump I would reccomend you working off master which will become 1.6 instead of 1.4.<div><div><span></span><div><div><br>On Tuesday, September 1, 2015, Sharath Kumar &lt;<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Mike,<div>That is great! I ran it through autoconf and It compiles now but I have strange linking errors in <a href="http://libfreeswitch.la/" target="_blank">libfreeswitch</a>.so :(.  Does FS require LDAP lib or is it the apr-util that is not being linked not sure? I searched for these symbols in the older FS and it is nowhere to be found in the .so. The sources also don&#39;t have them! Any help would be great!<div><br></div><div>thank you,</div><div>Shaks<br><div><br></div><div><br><div><div>./.libs/libfreeswitch.so: undefined reference to `ber_free&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_err2string&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_get_dn_ber&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_get_option&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_sasl_bind&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_search_ext&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_memfree&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_msgfree&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_first_message&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_unbind_ext&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_get_attribute_ber&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ber_memfree&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_next_message&#39;</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_pvt_url_scheme2proto&#39;</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 1:50 PM, Michael Jerris <span dir="ltr">&lt;<a>mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Recent code uses automake.  The rules are in there:<div><br></div><div><div style="margin:0px;font-size:13px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">:grep lib_LTLIBRARIES Makefile.am</div><div style="margin:0px;font-size:13px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0)">lib_LTLIBRARIES          = <a href="http://libfreeswitch.la/" target="_blank">libfreeswitch.la</a></div><div><div><div><br></div><div><blockquote type="cite"><div>On Sep 1, 2015, at 3:39 PM, Sharath Kumar &lt;<a>shakumarsoftware@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div>Mike,</div><div>Thank you! I was migrating from FS 1.0.6 to 1.4.21 and the old one *had* the speex in the lib. I guess the latest doesn&#39;t use it. thanks for the clarification. I guess I will have to manually build speex for my embedded target and install it as a package.</div><div><div>I am also confused about building the FS library i.e &quot;<a href="http://libfreeswitch.la/" target="_blank">libfreeswitch.la</a>&quot;. In the older FS, there is a Makefile.in that had rules to make the <a href="http://libfreeswitch.la/" target="_blank">libfreeswitch.la</a>. I may not have looked hard enough but the newer one (Makefile.in) doesn&#39;t seem to have any rules to build <a href="http://libfreeswitch.la/" target="_blank">libfreeswitch.la</a>. Am I completely mistaken ?</div><div><br></div><div>thank you,</div><div>Shaks </div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 10:38 AM, Michael Jerris <span dir="ltr">&lt;<a>mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">There is no without-speex, as we use some speex functionality in the core.  We use system packages for the speex library, as detected using pkg-config.  I&#39;m not sure how you could get an error building freeswitch that is attempting to build speex, as we do not build speex.<br>
<div><div><br>
<br>
&gt; On Aug 31, 2015, at 4:52 PM, Sharath Kumar &lt;<a>shakumarsoftware@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m trying to cross-compile for an embedded target and building the latest production build from source but it fails trying to build speex.<br>
&gt;<br>
&gt; I also noticed in the libs directory there is no speex folder, so I had to copy it from some other place.<br>
&gt;<br>
&gt; How do I disable speex from compiling ? is it with --without-speex in the configure script ?<br>
&gt;<br>
&gt; thanks,<br>
&gt; Shaks<br>
</div></div>&gt; _________________________________________________________________________<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services: <br><a>consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a>FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div></div></div>
</blockquote></div></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>