<div dir="ltr">Made<br><div><div><br><span id="result_box" class="" lang="en"><span class="">gdb /usr/local/freeswitch/bin/freeswitch</span></span><br><span id="result_box" class="" lang="en"><span class="">(gdb)handle SIGABRT stop print nopass</span></span><br><span id="result_box" class="" lang="en"><span class="">(gdb)run -nonat -c<br><br>Issued:<br></span></span><br><span id="result_box" class="" lang="en"><span class="">Program received signal SIGABRT, Aborted.<br>0x0f84e564 in raise () from /lib/libc.so.6<br><br></span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">made</span> <span class="">after</span> <span class="">run<br></span></span>(gdb)bt</span> <span class="">,</span> <br><span class="">issued</span><span class="">:<br><br></span></span><br>#0  0x0f84e564 in raise () from /lib/libc.so.6<br>#1  0x0f8501b4 in abort () from /lib/libc.so.6<br>#2  0x0fcfecdc in switch_core_memory_init () at src/switch_core_memory.c:634<br>#3  0x0fd23160 in switch_core_init (flags=68097, console=SWITCH_TRUE,<br>    err=0xbfca80e8) at src/switch_core.c:1597<br>#4  0x0fd237d4 in switch_core_init_and_modload (flags=0, console=1485,<br>    err=0x6) at src/switch_core.c:2048<br>#5  0x100053d4 in main (argc=3, argv=0xbfca9dd4) at src/switch.c:1083<br><br></div><div>After:<br><br>(gdb) list<br>421             /* skip whitespaces */<br>422            
 while ((*p == 13) || (*p == 10) || (*p == 9) || (*p == 32) || (*       
                                                                      p 
== 11)) p++;<br>423             return (p[0] == &#39;-&#39;);<br>424     }<br>425<br>426<br>427     /* the main application entry point */<br>428     int main(int argc, char *argv[])<br>429     {<br>430             char pid_path[PATH_MAX] = &quot;&quot;;   /* full path to the pid file */<br>(gdb) up<br>#1  0x0f8501b4 in abort () from /lib/libc.so.6<br>(gdb) list<br>431             char pid_buffer[32] = &quot;&quot;;       /* pid string */<br>432             char old_pid_buffer[32] = &quot;&quot;;   /* pid string */<br>433             switch_size_t pid_len, old_pid_len;<br>434 
            const char *err = NULL;         /* error value for return 
from f                                                                   
          reeswitch initialization */<br>435     #ifndef WIN32<br>436   
          switch_bool_t nf = SWITCH_FALSE;                              
 /                                                                       
      * TRUE if we are running in nofork mode */<br>437             switch_bool_t do_wait = SWITCH_FALSE;<br>438             char *runas_user = NULL;<br>439             char *runas_group = NULL;<br>440             int fds[2] = { 0, 0 };<br>(gdb) up<br>#2  0x0fcfecdc in switch_core_memory_init () at src/switch_core_memory.c:634<br>634                     abort();<br>(gdb) list<br>629             }<br>630<br>631 
            if ((apr_pool_create_ex(&amp;memory_manager.memory_pool, 
NULL, NULL,                                                             
                 my_allocator)) != APR_SUCCESS) {<br>632                     apr_allocator_destroy(my_allocator);<br>633                     my_allocator = NULL;<br>634                     abort();<br>635             }<br>636<br>637 
            if ((apr_thread_mutex_create(&amp;my_mutex, 
APR_THREAD_MUTEX_NESTED,                                                 
                             memory_manager.memory_pool)) != 
APR_SUCCESS) {<br>638                     abort();<br>(gdb) up<br>#3  0x0fd23160 in switch_core_init (flags=68097, console=SWITCH_TRUE,<br>    err=0xbff110f8) at src/switch_core.c:1597<br>1597            if (!(runtime.memory_pool = switch_core_memory_init())) {<br>(gdb) list<br>1592            if (apr_initialize() != SWITCH_STATUS_SUCCESS) {<br>1593                    *err = &quot;FATAL ERROR! Could not initialize APR\n&quot;;<br>1594                    return SWITCH_STATUS_MEMERR;<br>1595            }<br>1596<br>1597            if (!(runtime.memory_pool = switch_core_memory_init())) {<br>1598                    *err = &quot;FATAL ERROR! Could not allocate memory pool\n&quot;;<br>1599                    return SWITCH_STATUS_MEMERR;<br>1600            }<br>1601            switch_assert(runtime.memory_pool != NULL);<br>(gdb) up<br>#4  0x0fd237d4 in switch_core_init_and_modload (flags=0, console=1541,<br>    err=0x6) at src/switch_core.c:2048<br>2048 
           if (switch_core_init(flags, console, err) != 
SWITCH_STATUS_SUCCE                                                     
                        SS) {<br>(gdb) list<br>2043            int x = 0;<br>2044            const char *use = NULL;<br>2045    #include &quot;cc.h&quot;<br>2046<br>2047<br>2048            if (switch_core_init(flags, console, err) != SWITCH_STATUS_SUCCESS) {<br>2049                    return SWITCH_STATUS_GENERR;<br>2050            }<br>2051<br>2052            if (runtime.runlevel &gt; 1) {<br>(gdb) up<br>#5  0x100053d4 in main (argc=3, argv=0xbff12de4) at src/switch.c:1083<br>1083            if (switch_core_init_and_modload(flags, nc ? SWITCH_FALSE : SWITCH_TRUE, &amp;err) != SWITCH_STATUS_SUCCESS) {<br>(gdb) list<br>1078                    return 255;<br>1079            }<br>1080<br>1081            switch_file_write(fd, pid_buffer, &amp;pid_len);<br>1082<br>1083            if (switch_core_init_and_modload(flags, nc ? SWITCH_FALSE : SWITCH_TRUE, &amp;err) != SWITCH_STATUS_SUCCESS) {<br>1084                    fprintf(stderr, &quot;Cannot Initialize [%s]\n&quot;, err);<br>1085                    return 255;<br>1086            }<br>1087<br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">2014-12-02 22:28 GMT+05:00  <span dir="ltr">&lt;<a href="mailto:freeswitch-dev-request@lists.freeswitch.org" target="_blank">freeswitch-dev-request@lists.freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send FreeSWITCH-dev mailing list submissions to<br>
        <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:freeswitch-dev-request@lists.freeswitch.org">freeswitch-dev-request@lists.freeswitch.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeswitch-dev-owner@lists.freeswitch.org">freeswitch-dev-owner@lists.freeswitch.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of FreeSWITCH-dev digest...&quot;<br>
<br>Today&#39;s Topics:<br>
<br>
   1. Re: FreeSwitch and PowerPC (?????? ?????????)<br>
   2. Re: FreeSwitch on PowerPC (Anthony Minessale)<br>
   3. Re: FreeSWITCH-dev Digest, Vol 102, Issue 1 (?????? ?????????)<br>
<br><br>---------- Пересылаемое сообщение ----------<br>From: &quot;Андрей Аппалонов&quot; &lt;<a href="mailto:appalonovandrey@gmail.com">appalonovandrey@gmail.com</a>&gt;<br>To: <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>Cc: <br>Date: Mon, 1 Dec 2014 23:01:45 +0500<br>Subject: Re: [Freeswitch-dev] FreeSwitch and PowerPC<br><div dir="ltr"><span lang="en"><span>system</span> <span>Linux 2.6.29.6</span> <span>from</span> <span>Freescale.</span> <span>proc mpc83021- big endian</span><br> <span>PowerPC</span> <span>architecture</span></span><br clear="all"><br><br><br>Best Regards,<br>Appalonov Andrei.
</div>
<br><br>---------- Пересылаемое сообщение ----------<br>From: Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;<br>To: <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a><br>Cc: <br>Date: Mon, 1 Dec 2014 12:48:53 -0600<br>Subject: Re: [Freeswitch-dev] FreeSwitch on PowerPC<br><div dir="ltr">can you get a backtrace from gdb of the core file rather than strace?<div>I know the srtp lib has had a problem in big endian.</div><div><br></div><div>You could try adding --disable-srtp to configure params</div><div><br></div>







<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 6:50 AM, Андрей Аппалонов <span dir="ltr">&lt;<a href="mailto:appalonovandrey@gmail.com" target="_blank">appalonovandrey@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><span>Hello</span><span></span><span>!</span><br><span lang="en"> <span>Can you</span> <span>help me?</span> <span>The problem</span> <span>is as follows:</span><br><br> <span>I compiled</span> <span>FreeSwitch</span> <span>for</span> <span>PowerPC.</span> <span>FS</span> <span>compiled,</span> <span>but</span> <span>does not want to</span> <span>run</span><span>.</span> <span>Gives</span> <span>a</span> <span>Aborted</span><span>.</span> <span>Runs under</span> <span>strace,</span> <span>this is what</span> <span>gives</span> <span>(the last</span> <span>38</span> <span>lines):</span></span><br><br>open(&quot;/proc/stat&quot;, O_RDONLY)            = 3<br>fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(3, &quot;cpu  278 0 1857 11232 0 10 29 0 0&quot;..., 1024) = 1024<br>read(3, &quot;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&quot;..., 1024) = 161<br>read(3, &quot;&quot;..., 1024)                    = 0<br>close(3)                                = 0<br>munmap(0x48023000, 4096)                = 0<br>sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0<br>setpriority(PRIO_PROCESS, 1485, -10)    = 0<br>setrlimit(RLIMIT_STACK, {rlim_cur=240*1024, rlim_max=8192*1024}) = 0<br>setrlimit(RLIMIT_NOFILE, {rlim_cur=999999, rlim_max=999999}) = 0<br>setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_NPROC, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_RTPRIO, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>mkdir(&quot;/usr/local/freeswitch/<div>run&quot;, 0750) = -1 EEXIST (File exists)<br>open(&quot;/usr/local/freeswitch/run/freeswitch.pid&quot;, O_RDONLY) = 3<br>read(3, &quot;1483&quot;..., 32)                  = 4<br>close(3)                                = 0<br>open(&quot;/usr/local/freeswitch/run/freeswitch.pid&quot;, O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3<br>fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0<br>write(3, &quot;1485&quot;..., 4)                  = 4<br>uname({sys=&quot;Linux&quot;, node=&quot;OD-171/172&quot;, ...}) = 0<br>open(&quot;/proc/stat&quot;, O_RDONLY)            = 4<br>fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(4, &quot;cpu  279 0 1858 11232 0 10 29 0 0&quot;..., 1024) = 1024<br>read(4, &quot;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&quot;..., 1024) = 161<br>read(4, &quot;&quot;..., 1024)                    = 0<br>close(4)                                = 0<br>munmap(0x48023000, 4096)                = 0<br>rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0<br>tgkill(1485, 1485, SIGABRT)             = 0<br>--- SIGABRT (Aborted) @ 0 (0) ---<br>+++ killed by SIGABRT +++<br><br><font size="4"><span lang="en"><span>it</span> <span>wrote</span> <span>gdb</span></span></font>:<br><br></div><div>warning: exec file is newer than core file.<br><br>warning: Can&#39;t read pathname for load map: Input/output error.<br>Reading symbols from /lib/libm.so.6...done.<br>Loaded symbols for /lib/libm.so.6<br>Reading symbols from /lib/libpthread.so.0...done.<br>Loaded symbols for /lib/libpthread.so.0<br>Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.<br>Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1<br>Reading symbols from /usr/lib/libz.so.1...done.<br>Loaded symbols for /usr/lib/libz.so.1<br>Reading symbols from /lib/librt.so.1...done.<br>Loaded symbols for /lib/librt.so.1<br>Reading symbols from /lib/libdl.so.2...done.<br>Loaded symbols for /lib/libdl.so.2<br>Reading symbols from /lib/libcrypt.so.1...done.<br>Loaded symbols for /lib/libcrypt.so.1<br>Reading symbols from /usr/lib/libssl.so.0.9.8...done.<br>Loaded symbols for /usr/lib/libssl.so.0.9.8<br>Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.<br>Loaded symbols for /usr/lib/libcrypto.so.0.9.8<br>Reading symbols from /usr/lib/libjpeg.so.62...done.<br>Loaded symbols for /usr/lib/libjpeg.so.62<br>Reading symbols from /lib/libc.so.6...done.<br>Loaded symbols for /lib/libc.so.6<br>Reading symbols from /lib/ld.so.1...done.<br>Loaded symbols for /lib/ld.so.1<br>Reading symbols from /lib/libstdc++.so.6...done.<br>Loaded symbols for /lib/libstdc++.so.6<br>Reading symbols from /lib/libgcc_s.so.1...done.<br>Loaded symbols for /lib/libgcc_s.so.1<br>Core was generated by `./freeswitch&#39;.<br>Program terminated with signal 6, Aborted.<br>#0  0x0f84e564 in raise () from /lib/libc.so.6<br><font size="4"><br></font></div></div></div><div><span lang="en"><font size="4"><span>Under</span> <span>gdb</span> <span>run:</span></font><br><br> <span>export CFLAGS = &quot;- g -ggdb&quot;</span><br> <span>export MOD_CFLAGS = &quot;- g -ggdb&quot;</span><br> <span>./run_configure</span><br> <span>make</span><br><br> <span>ulimit -c unlimited</span><br> <span>./freeswitch</span><br><br> <span>gdb bin / freeswitch core</span><br><font size="4"><br> <span>Version</span> <span>FreeSwitch 1.4.0.</span></font><br><br> <font size="4"><span>run_configure</span> <span>looks like this:</span><br></font><br> <span>export PATH = / opt / freescale / usr / local / gcc-4.1.78-eglibc-2.5.78-1 / powerpc-e300c3-linux-gnu / bin: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / lib: $ PATH</span><br><br> <span>#export CC = powerpc-e300c3-linux-gnu-gcc</span><br><br> <span>declare -x CROSS_COMPILE = &quot;powerpc-e300c3-linux-gnu-&quot;</span><br> <span>declare -x CC = &quot;$ CROSS_COMPILE&quot; gcc</span><br> <span>declare -x CXX = &quot;$ CROSS_COMPILE&quot; g ++</span><br> <span>declare -x CPP = &quot;$ CROSS_COMPILE&quot; cpp</span><br> <span>declare -x STRIP = &quot;$ CROSS_COMPILE&quot; strip</span><br> <span>declare -x RANLIB = &quot;$ CROSS_COMPILE&quot; ranlib</span><br> <span>declare -x AR = &quot;$ CROSS_COMPILE&quot; ar</span><br> <span>declare -x AS = &quot;$ CROSS_COMPILE&quot; as</span><br> <span>declare -x NM = &quot;$ CROSS_COMPILE&quot; nm</span><br> <span>declare -x LD = &quot;$ CROSS_COMPILE&quot; ld</span><br> <span>export LDFLAGS = -L / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib</span><br><br> <span>export ac_cv_sizeof_ssize_t =</span> <span>4</span><br> <span>export ac_cv_lib_z_inflateReset = yes</span><br> <span>./configure
 --target = powerpc --with-lib-subdir = / home / common / ltib-mpc83xx /
 mpc8308erdb / rootfs / usr / lib --with-gcc-arch = powerpc --host = 
powerpc-e300c3-linux</span> <span>-gnu \</span><br> <span>ac_cv_file__dev_ptmx = yes --disable-core-libedit-support --without-apr-util</span></span></div><span><div><br></div><br><span lang="en"><span>What</span> <span>could be</span> <span>the reason for such</span> <span>behavior?<br><br><br></span></span></span><span><font color="#888888"><span><font color="#888888"><div><div dir="ltr"><span lang="en"><span>Best Regards</span><span>,</span><br> <span>Appalonov</span> <span>Andrei.</span></span></div></div></font></span></font></span><br></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" 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://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div></div></div>
</div>
<br><br>---------- Пересылаемое сообщение ----------<br>From: &quot;Андрей Аппалонов&quot; &lt;<a href="mailto:appalonovandrey@gmail.com">appalonovandrey@gmail.com</a>&gt;<br>To: <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a><br>Cc: <br>Date: Tue, 2 Dec 2014 22:27:08 +0500<br>Subject: Re: [Freeswitch-dev] FreeSWITCH-dev Digest, Vol 102, Issue 1<br><div dir="ltr"><span lang="en"><span>system</span> <span>Linux 2.6.29.6</span> <span>from</span> <span>Freescale.</span> <span>proc mpc83021- big endian</span><br> <span>PowerPC</span> <span>architecture</span></span><div class="gmail_extra"><br><div class="gmail_quote">2014-12-01 19:22 GMT+05:00  <span dir="ltr">&lt;<a href="mailto:freeswitch-dev-request@lists.freeswitch.org" target="_blank">freeswitch-dev-request@lists.freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send FreeSWITCH-dev mailing list submissions to<br>
        <a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">freeswitch-dev@lists.freeswitch.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:freeswitch-dev-request@lists.freeswitch.org" target="_blank">freeswitch-dev-request@lists.freeswitch.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeswitch-dev-owner@lists.freeswitch.org" target="_blank">freeswitch-dev-owner@lists.freeswitch.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of FreeSWITCH-dev digest...&quot;<br>
<br>Today&#39;s Topics:<br>
<br>
   1. FreeSwitch and PowerPC (?????? ?????????)<br>
   2. FreeSWITCH Friday FreeForAll Reminder! (Ken Rice)<br>
   3. FreeSwitch on PowerPC (?????? ?????????)<br>
   4. Re: FreeSwitch and PowerPC (Brian West)<br>
<br><br>---------- Пересылаемое сообщение ----------<br>From: &quot;Андрей Аппалонов&quot; &lt;<a href="mailto:appalonovandrey@gmail.com" target="_blank">appalonovandrey@gmail.com</a>&gt;<br>To: <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>Cc: <br>Date: Thu, 27 Nov 2014 18:41:55 +0500<br>Subject: [Freeswitch-dev] FreeSwitch and PowerPC<br><div dir="ltr"><div><div>Hello! <br>Help me, please.<br></div><div><br><span lang="en"><span>I did</span> <span>cross-compilation</span> <span>FreeSwitch</span> <span>for</span> <span>PowerPC.</span> <span>In the end,</span> <span>everything has been</span> <span>successfully</span> <span>compiled.</span> <span>But</span> <span>when</span> <span>you try to start</span> <span>FreeSwitch</span> <span>on</span> PowerPC<span></span> <span>gives</span> <span>just</span> <span>Aborted</span><span>.</span> <span>When you try to</span> <span>run through the</span> <span>/usr/bin/strace</span> <span>gives the following</span></span><br><br>open(&quot;/usr/local/freeswitch/run/freeswitch.pid&quot;, O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3<br>fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0<br>write(3, &quot;2701&quot;..., 4)                  = 4<br>uname({sys=&quot;Linux&quot;, node=&quot;OD-171/172&quot;, ...}) = 0<br>open(&quot;/proc/stat&quot;, O_RDONLY)            = 4<br>fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(4, &quot;cpu  5014 0 14136 1112775 0 692 1&quot;..., 1024) = 1024<br>read(4, &quot; 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 &quot;..., 1024) = 188<br>read(4, &quot;&quot;..., 1024)                    = 0<br>close(4)                                = 0<br>munmap(0x48023000, 4096)                = 0<br>rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0<br>tgkill(2701, 2701, SIGABRT)             = 0<br>--- SIGABRT (Aborted) @ 0 (0) ---<br>+++ killed by SIGABRT +++<br><br> <span lang="en"><span>What</span> <span>could be wrong?</span></span></div>
<div><br><br><br></div>Best Regards,<br></div>Appalonov Andrei.</div>
<br><br>---------- Пересылаемое сообщение ----------<br>From: Ken Rice &lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>, <a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">freeswitch-dev@lists.freeswitch.org</a><br>Cc: <br>Date: Fri, 28 Nov 2014 15:03:44 +0000<br>Subject: [Freeswitch-dev] FreeSWITCH Friday FreeForAll Reminder!<br>FreeSWITCHers, Do not forget to join us at 2PM CST for the FreeSWITCH Friday FreeFor All<br>
Visit <a href="http://ift.tt/1n3h0Pf" target="_blank">http://ift.tt/1n3h0Pf</a> and Click Call 888 with your WebRTC enabled Browser and headset, Call <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> or see <a href="http://ift.tt/1prwIZL" target="_blank">http://ift.tt/1prwIZL</a> for access info!<br>
-- Ken FreeSWITCH.org ClueCon.com OSTAG.org <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch Twitter: @FreeSWITCH @ClueCon
<br><br>---------- Пересылаемое сообщение ----------<br>From: &quot;Андрей Аппалонов&quot; &lt;<a href="mailto:appalonovandrey@gmail.com" target="_blank">appalonovandrey@gmail.com</a>&gt;<br>To: <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>Cc: <br>Date: Mon, 1 Dec 2014 17:50:58 +0500<br>Subject: [Freeswitch-dev] FreeSwitch on PowerPC<br><div dir="ltr"><span>Hello</span><span></span><span>!</span><br><span lang="en"> <span>Can you</span> <span>help me?</span> <span>The problem</span> <span>is as follows:</span><br><br> <span>I compiled</span> <span>FreeSwitch</span> <span>for</span> <span>PowerPC.</span> <span>FS</span> <span>compiled,</span> <span>but</span> <span>does not want to</span> <span>run</span><span>.</span> <span>Gives</span> <span>a</span> <span>Aborted</span><span>.</span> <span>Runs under</span> <span>strace,</span> <span>this is what</span> <span>gives</span> <span>(the last</span> <span>38</span> <span>lines):</span></span><br><br>open(&quot;/proc/stat&quot;, O_RDONLY)            = 3<br>fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(3, &quot;cpu  278 0 1857 11232 0 10 29 0 0&quot;..., 1024) = 1024<br>read(3, &quot;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&quot;..., 1024) = 161<br>read(3, &quot;&quot;..., 1024)                    = 0<br>close(3)                                = 0<br>munmap(0x48023000, 4096)                = 0<br>sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0<br>setpriority(PRIO_PROCESS, 1485, -10)    = 0<br>setrlimit(RLIMIT_STACK, {rlim_cur=240*1024, rlim_max=8192*1024}) = 0<br>setrlimit(RLIMIT_NOFILE, {rlim_cur=999999, rlim_max=999999}) = 0<br>setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_NPROC, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_RTPRIO, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0<br>mkdir(&quot;/usr/local/freeswitch/<div>run&quot;, 0750) = -1 EEXIST (File exists)<br>open(&quot;/usr/local/freeswitch/run/freeswitch.pid&quot;, O_RDONLY) = 3<br>read(3, &quot;1483&quot;..., 32)                  = 4<br>close(3)                                = 0<br>open(&quot;/usr/local/freeswitch/run/freeswitch.pid&quot;, O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3<br>fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0<br>write(3, &quot;1485&quot;..., 4)                  = 4<br>uname({sys=&quot;Linux&quot;, node=&quot;OD-171/172&quot;, ...}) = 0<br>open(&quot;/proc/stat&quot;, O_RDONLY)            = 4<br>fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(4, &quot;cpu  279 0 1858 11232 0 10 29 0 0&quot;..., 1024) = 1024<br>read(4, &quot;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&quot;..., 1024) = 161<br>read(4, &quot;&quot;..., 1024)                    = 0<br>close(4)                                = 0<br>munmap(0x48023000, 4096)                = 0<br>rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0<br>tgkill(1485, 1485, SIGABRT)             = 0<br>--- SIGABRT (Aborted) @ 0 (0) ---<br>+++ killed by SIGABRT +++<br><br><font size="4"><span lang="en"><span>it</span> <span>wrote</span> <span>gdb</span></span></font>:<br><br></div><div>warning: exec file is newer than core file.<br><br>warning: Can&#39;t read pathname for load map: Input/output error.<br>Reading symbols from /lib/libm.so.6...done.<br>Loaded symbols for /lib/libm.so.6<br>Reading symbols from /lib/libpthread.so.0...done.<br>Loaded symbols for /lib/libpthread.so.0<br>Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.<br>Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1<br>Reading symbols from /usr/lib/libz.so.1...done.<br>Loaded symbols for /usr/lib/libz.so.1<br>Reading symbols from /lib/librt.so.1...done.<br>Loaded symbols for /lib/librt.so.1<br>Reading symbols from /lib/libdl.so.2...done.<br>Loaded symbols for /lib/libdl.so.2<br>Reading symbols from /lib/libcrypt.so.1...done.<br>Loaded symbols for /lib/libcrypt.so.1<br>Reading symbols from /usr/lib/libssl.so.0.9.8...done.<br>Loaded symbols for /usr/lib/libssl.so.0.9.8<br>Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.<br>Loaded symbols for /usr/lib/libcrypto.so.0.9.8<br>Reading symbols from /usr/lib/libjpeg.so.62...done.<br>Loaded symbols for /usr/lib/libjpeg.so.62<br>Reading symbols from /lib/libc.so.6...done.<br>Loaded symbols for /lib/libc.so.6<br>Reading symbols from /lib/ld.so.1...done.<br>Loaded symbols for /lib/ld.so.1<br>Reading symbols from /lib/libstdc++.so.6...done.<br>Loaded symbols for /lib/libstdc++.so.6<br>Reading symbols from /lib/libgcc_s.so.1...done.<br>Loaded symbols for /lib/libgcc_s.so.1<br>Core was generated by `./freeswitch&#39;.<br>Program terminated with signal 6, Aborted.<br>#0  0x0f84e564 in raise () from /lib/libc.so.6<br><font size="4"><br></font></div><div><span lang="en"><font size="4"><span>Under</span> <span>gdb</span> <span>run:</span></font><br><br> <span>export CFLAGS = &quot;- g -ggdb&quot;</span><br> <span>export MOD_CFLAGS = &quot;- g -ggdb&quot;</span><br> <span>./run_configure</span><br> <span>make</span><br><br> <span>ulimit -c unlimited</span><br> <span>./freeswitch</span><br><br> <span>gdb bin / freeswitch core</span><br><font size="4"><br> <span>Version</span> <span>FreeSwitch 1.4.0.</span></font><br><br> <font size="4"><span>run_configure</span> <span>looks like this:</span><br></font><br> <span>export PATH = / opt / freescale / usr / local / gcc-4.1.78-eglibc-2.5.78-1 / powerpc-e300c3-linux-gnu / bin: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs: \</span><br> <span>/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / lib: $ PATH</span><br><br> <span>#export CC = powerpc-e300c3-linux-gnu-gcc</span><br><br> <span>declare -x CROSS_COMPILE = &quot;powerpc-e300c3-linux-gnu-&quot;</span><br> <span>declare -x CC = &quot;$ CROSS_COMPILE&quot; gcc</span><br> <span>declare -x CXX = &quot;$ CROSS_COMPILE&quot; g ++</span><br> <span>declare -x CPP = &quot;$ CROSS_COMPILE&quot; cpp</span><br> <span>declare -x STRIP = &quot;$ CROSS_COMPILE&quot; strip</span><br> <span>declare -x RANLIB = &quot;$ CROSS_COMPILE&quot; ranlib</span><br> <span>declare -x AR = &quot;$ CROSS_COMPILE&quot; ar</span><br> <span>declare -x AS = &quot;$ CROSS_COMPILE&quot; as</span><br> <span>declare -x NM = &quot;$ CROSS_COMPILE&quot; nm</span><br> <span>declare -x LD = &quot;$ CROSS_COMPILE&quot; ld</span><br> <span>export LDFLAGS = -L / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib</span><br><br> <span>export ac_cv_sizeof_ssize_t =</span> <span>4</span><br> <span>export ac_cv_lib_z_inflateReset = yes</span><br> <span>./configure
 --target = powerpc --with-lib-subdir = / home / common / ltib-mpc83xx /
 mpc8308erdb / rootfs / usr / lib --with-gcc-arch = powerpc --host = 
powerpc-e300c3-linux</span> <span>-gnu \</span><br> <span>ac_cv_file__dev_ptmx = yes --disable-core-libedit-support --without-apr-util</span></span></div><div><br></div><br><span lang="en"><span>What</span> <span>could be</span> <span>the reason for such</span> <span>behavior?<br><br><br></span></span><span><font color="#888888"><span><font color="#888888"><div><div dir="ltr"><span lang="en"><span>Best Regards</span><span>,</span><br> <span>Appalonov</span> <span>Andrei.</span></span></div></div></font></span></font></span><br></div>
<br><br>---------- Пересылаемое сообщение ----------<br>From: Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;<br>To: &quot;<a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">freeswitch-dev@lists.freeswitch.org</a>&quot; &lt;<a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">freeswitch-dev@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Mon, 1 Dec 2014 08:22:14 -0600<br>Subject: Re: [Freeswitch-dev] FreeSwitch and PowerPC<br><div dir="ltr">What system are you running on and what rev of FreeSWITCH are you trying?  This is why I wanted to get my hands on some big endian systems to make sure everything was still working properly.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 27, 2014 at 7:41 AM, Андрей Аппалонов <span dir="ltr">&lt;<a href="mailto:appalonovandrey@gmail.com" target="_blank">appalonovandrey@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hello! <br>Help me, please.<br></div><div><br><span lang="en"><span>I did</span> <span>cross-compilation</span> <span>FreeSwitch</span> <span>for</span> <span>PowerPC.</span> <span>In the end,</span> <span>everything has been</span> <span>successfully</span> <span>compiled.</span> <span>But</span> <span>when</span> <span>you try to start</span> <span>FreeSwitch</span> <span>on</span> PowerPC<span></span> <span>gives</span> <span>just</span> <span>Aborted</span><span>.</span> <span>When you try to</span> <span>run through the</span> <span>/usr/bin/strace</span> <span>gives the following</span></span><br><br>open(&quot;/usr/local/freeswitch/run/freeswitch.pid&quot;, O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3<br>fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0<br>write(3, &quot;2701&quot;..., 4)                  = 4<br>uname({sys=&quot;Linux&quot;, node=&quot;OD-171/172&quot;, ...}) = 0<br>open(&quot;/proc/stat&quot;, O_RDONLY)            = 4<br>fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000<br>read(4, &quot;cpu  5014 0 14136 1112775 0 692 1&quot;..., 1024) = 1024<br>read(4, &quot; 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 &quot;..., 1024) = 188<br>read(4, &quot;&quot;..., 1024)                    = 0<br>close(4)                                = 0<br>munmap(0x48023000, 4096)                = 0<br>rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0<br>tgkill(2701, 2701, SIGABRT)             = 0<br>--- SIGABRT (Aborted) @ 0 (0) ---<br>+++ killed by SIGABRT +++<br><br> <span lang="en"><span>What</span> <span>could be wrong?</span></span></div>
<div><br><br><br></div>Best Regards,<br></div>Appalonov Andrei.</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" 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://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font face="courier new, monospace" size="1"><img><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><span lang="en"><span>system</span> <span>Linux 2.6.29.6</span> <span>from</span> <span>Freescale.</span> <span>proc mpc83021- big endian</span><br> <span>PowerPC</span> <span>architecture</span></span><br clear="all"><br><br><br>Best Regards,<br>Appalonov Andrei.
</div></div>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>С уважением,<br></div><div>Аппалонов Андрей.</div></div></div>
</div></div></div></div>