<div dir="ltr">Mike,<div><br></div><div>That is very helpful. I will build the cross on the master and see how that goes.</div><div>Shaks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 9:46 AM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc 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 <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> 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 "<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'm running bootstrap.sh [ I'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 $@ && \</div><div> export PKG_CONFIG_PATH=$(X86_64_INSTALL)/usr/lib/pkgconfig && \</div><div> export ac_cv_func_malloc_0_nonnull=yes && \</div><div> export ac_cv_func_realloc_0_nonnull=yes && \</div><div> export apr_cv_mutex_recursive=yes && \</div><div> export ac_cv_file__dev_urandom=yes && \</div><div> export ac_cv_file__dev_ptmx=yes && \</div><div> export ac_cv_file__dev_zero=yes && \</div><div> export ac_cv_func_setpgrp_void=yes && \</div><div> export apr_cv_process_shared_works=yes && \</div><div> export apr_cv_mutex_robust_shared=no && \</div><div> export apr_cv_tcp_nodelay_with_cork=yes && \</div><div> export ac_cv_sizeof_struct_iovec=8 && \</div><div> export apr_cv_mutex_recursive=yes && \</div><div> export ac_cv_file_dbd_apr_dbd_mysql_c=no && \</div><div> $(freeswitch_loc)/bootstrap.sh && \</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="-I$(freeswitch_loc)/src/include -D_GNU_SOURCE" \</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="-Wno-error=strict-aliasing \</div><div> -Wno-error=unused-value"</div></div></div></div></blockquote><br><blockquote type="cite"><div><div dir="ltr"><div><div> sed -e 's/^DEFAULT_INCLUDES = -I./DEFAULT_INCLUDES = -I$$(abs_builddir)/g' \</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 '/DTHREADSAFE/ a TCC += $$(CPPFLAGS) $$(LDFLAGS)' \</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 's%-DSWITCH_DECLARE_CLASS%-I$(freeswitch_loc)/src/include -I$(X86_64_BUILD)/freeswitch/src/include -DSWITCH_DECLARE_CLASS%g' \</div><div> -i $@/Makefile</div></div></div></div></blockquote><div><br></div></span>What is this for? That symbol doesn't even exist in the core Makefile, so this line is actually doing nothing at all. I don'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="-I$(freeswitch_loc)/src/include -D_GNU_SOURCE -DHAVE_UINT64_T" \</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'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"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></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'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'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 <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> 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'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'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_err2string'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_get_dn_ber'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_get_option'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_sasl_bind'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_search_ext'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_memfree'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_msgfree'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_first_message'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_unbind_ext'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_get_attribute_ber'</div><div>./.libs/libfreeswitch.so: undefined reference to `ber_memfree'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_next_message'</div><div>./.libs/libfreeswitch.so: undefined reference to `ldap_pvt_url_scheme2proto'</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"><<a>mike@jerris.com</a>></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 <<a>shakumarsoftware@gmail.com</a>> 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'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 "<a href="http://libfreeswitch.la/" target="_blank">libfreeswitch.la</a>". 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'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"><<a>mike@jerris.com</a>></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'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>
> On Aug 31, 2015, at 4:52 PM, Sharath Kumar <<a>shakumarsoftware@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I'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>
><br>
> I also noticed in the libs directory there is no speex folder, so I had to copy it from some other place.<br>
><br>
> How do I disable speex from compiling ? is it with --without-speex in the configure script ?<br>
><br>
> thanks,<br>
> Shaks<br>
</div></div>> _________________________________________________________________________<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>