Made

gdb /usr/local/freeswitch/bin/freeswitch
(gdb)handle SIGABRT stop print nopass
(gdb)run -nonat -c

Issued:

Program received signal SIGABRT, Aborted.
0x0f84e564 in raise () from /lib/libc.so.6

made after run
(gdb)bt
,
issued:


#0  0x0f84e564 in raise () from /lib/libc.so.6
#1  0x0f8501b4 in abort () from /lib/libc.so.6
#2  0x0fcfecdc in switch_core_memory_init () at src/switch_core_memory.c:634
#3  0x0fd23160 in switch_core_init (flags=68097, console=SWITCH_TRUE,
    err=0xbfca80e8) at src/switch_core.c:1597
#4  0x0fd237d4 in switch_core_init_and_modload (flags=0, console=1485,
    err=0x6) at src/switch_core.c:2048
#5  0x100053d4 in main (argc=3, argv=0xbfca9dd4) at src/switch.c:1083

After:

(gdb) list
421             /* skip whitespaces */
422             while ((*p == 13) || (*p == 10) || (*p == 9) || (*p == 32) || (*                                                                             p == 11)) p++;
423             return (p[0] == '-');
424     }
425
426
427     /* the main application entry point */
428     int main(int argc, char *argv[])
429     {
430             char pid_path[PATH_MAX] = "";   /* full path to the pid file */
(gdb) up
#1  0x0f8501b4 in abort () from /lib/libc.so.6
(gdb) list
431             char pid_buffer[32] = "";       /* pid string */
432             char old_pid_buffer[32] = "";   /* pid string */
433             switch_size_t pid_len, old_pid_len;
434             const char *err = NULL;         /* error value for return from f                                                                             reeswitch initialization */
435     #ifndef WIN32
436             switch_bool_t nf = SWITCH_FALSE;                               /                                                                             * TRUE if we are running in nofork mode */
437             switch_bool_t do_wait = SWITCH_FALSE;
438             char *runas_user = NULL;
439             char *runas_group = NULL;
440             int fds[2] = { 0, 0 };
(gdb) up
#2  0x0fcfecdc in switch_core_memory_init () at src/switch_core_memory.c:634
634                     abort();
(gdb) list
629             }
630
631             if ((apr_pool_create_ex(&memory_manager.memory_pool, NULL, NULL,                                                                              my_allocator)) != APR_SUCCESS) {
632                     apr_allocator_destroy(my_allocator);
633                     my_allocator = NULL;
634                     abort();
635             }
636
637             if ((apr_thread_mutex_create(&my_mutex, APR_THREAD_MUTEX_NESTED,                                                                              memory_manager.memory_pool)) != APR_SUCCESS) {
638                     abort();
(gdb) up
#3  0x0fd23160 in switch_core_init (flags=68097, console=SWITCH_TRUE,
    err=0xbff110f8) at src/switch_core.c:1597
1597            if (!(runtime.memory_pool = switch_core_memory_init())) {
(gdb) list
1592            if (apr_initialize() != SWITCH_STATUS_SUCCESS) {
1593                    *err = "FATAL ERROR! Could not initialize APR\n";
1594                    return SWITCH_STATUS_MEMERR;
1595            }
1596
1597            if (!(runtime.memory_pool = switch_core_memory_init())) {
1598                    *err = "FATAL ERROR! Could not allocate memory pool\n";
1599                    return SWITCH_STATUS_MEMERR;
1600            }
1601            switch_assert(runtime.memory_pool != NULL);
(gdb) up
#4  0x0fd237d4 in switch_core_init_and_modload (flags=0, console=1541,
    err=0x6) at src/switch_core.c:2048
2048            if (switch_core_init(flags, console, err) != SWITCH_STATUS_SUCCE                                                                             SS) {
(gdb) list
2043            int x = 0;
2044            const char *use = NULL;
2045    #include "cc.h"
2046
2047
2048            if (switch_core_init(flags, console, err) != SWITCH_STATUS_SUCCESS) {
2049                    return SWITCH_STATUS_GENERR;
2050            }
2051
2052            if (runtime.runlevel > 1) {
(gdb) up
#5  0x100053d4 in main (argc=3, argv=0xbff12de4) at src/switch.c:1083
1083            if (switch_core_init_and_modload(flags, nc ? SWITCH_FALSE : SWITCH_TRUE, &err) != SWITCH_STATUS_SUCCESS) {
(gdb) list
1078                    return 255;
1079            }
1080
1081            switch_file_write(fd, pid_buffer, &pid_len);
1082
1083            if (switch_core_init_and_modload(flags, nc ? SWITCH_FALSE : SWITCH_TRUE, &err) != SWITCH_STATUS_SUCCESS) {
1084                    fprintf(stderr, "Cannot Initialize [%s]\n", err);
1085                    return 255;
1086            }
1087


2014-12-02 22:28 GMT+05:00 <freeswitch-dev-request@lists.freeswitch.org>:
Send FreeSWITCH-dev mailing list submissions to
        freeswitch-dev@lists.freeswitch.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
or, via email, send a message with subject or body 'help' to
        freeswitch-dev-request@lists.freeswitch.org

You can reach the person managing the list at
        freeswitch-dev-owner@lists.freeswitch.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-dev digest..."

Today's Topics:

   1. Re: FreeSwitch and PowerPC (?????? ?????????)
   2. Re: FreeSwitch on PowerPC (Anthony Minessale)
   3. Re: FreeSWITCH-dev Digest, Vol 102, Issue 1 (?????? ?????????)


---------- Пересылаемое сообщение ----------
From: "Андрей Аппалонов" <appalonovandrey@gmail.com>
To: FreeSWITCH-dev@lists.freeswitch.org
Cc: 
Date: Mon, 1 Dec 2014 23:01:45 +0500
Subject: Re: [Freeswitch-dev] FreeSwitch and PowerPC
system Linux 2.6.29.6 from Freescale. proc mpc83021- big endian
PowerPC architecture




Best Regards,
Appalonov Andrei.


---------- Пересылаемое сообщение ----------
From: Anthony Minessale <anthony.minessale@gmail.com>
To: freeswitch-dev@lists.freeswitch.org
Cc: 
Date: Mon, 1 Dec 2014 12:48:53 -0600
Subject: Re: [Freeswitch-dev] FreeSwitch on PowerPC
can you get a backtrace from gdb of the core file rather than strace?
I know the srtp lib has had a problem in big endian.

You could try adding --disable-srtp to configure params



On Mon, Dec 1, 2014 at 6:50 AM, Андрей Аппалонов <appalonovandrey@gmail.com> wrote:
Hello!
Can you help me? The problem is as follows:

I compiled FreeSwitch for PowerPC. FS compiled, but does not want to run. Gives a Aborted. Runs under strace, this is what gives (the last 38 lines):


open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000
read(3, "cpu  278 0 1857 11232 0 10 29 0 0"..., 1024) = 1024
read(3, "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 161
read(3, ""..., 1024)                    = 0
close(3)                                = 0
munmap(0x48023000, 4096)                = 0
sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0
setpriority(PRIO_PROCESS, 1485, -10)    = 0
setrlimit(RLIMIT_STACK, {rlim_cur=240*1024, rlim_max=8192*1024}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=999999, rlim_max=999999}) = 0
setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_NPROC, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_RTPRIO, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
mkdir("/usr/local/freeswitch/
run", 0750) = -1 EEXIST (File exists)
open("/usr/local/freeswitch/run/freeswitch.pid", O_RDONLY) = 3
read(3, "1483"..., 32)                  = 4
close(3)                                = 0
open("/usr/local/freeswitch/run/freeswitch.pid", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
write(3, "1485"..., 4)                  = 4
uname({sys="Linux", node="OD-171/172", ...}) = 0
open("/proc/stat", O_RDONLY)            = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000
read(4, "cpu  279 0 1858 11232 0 10 29 0 0"..., 1024) = 1024
read(4, "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 161
read(4, ""..., 1024)                    = 0
close(4)                                = 0
munmap(0x48023000, 4096)                = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(1485, 1485, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++

it wrote gdb:

warning: exec file is newer than core file.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.
Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/libssl.so.0.9.8
Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Reading symbols from /lib/libstdc++.so.6...done.
Loaded symbols for /lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `./freeswitch'.
Program terminated with signal 6, Aborted.
#0  0x0f84e564 in raise () from /lib/libc.so.6

Under gdb run:

export CFLAGS = "- g -ggdb"
export MOD_CFLAGS = "- g -ggdb"
./run_configure
make

ulimit -c unlimited
./freeswitch

gdb bin / freeswitch core

Version FreeSwitch 1.4.0.


run_configure looks like this:

export PATH = / opt / freescale / usr / local / gcc-4.1.78-eglibc-2.5.78-1 / powerpc-e300c3-linux-gnu / bin: \
/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib: \
/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs: \
/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / lib: $ PATH

#export CC = powerpc-e300c3-linux-gnu-gcc

declare -x CROSS_COMPILE = "powerpc-e300c3-linux-gnu-"
declare -x CC = "$ CROSS_COMPILE" gcc
declare -x CXX = "$ CROSS_COMPILE" g ++
declare -x CPP = "$ CROSS_COMPILE" cpp
declare -x STRIP = "$ CROSS_COMPILE" strip
declare -x RANLIB = "$ CROSS_COMPILE" ranlib
declare -x AR = "$ CROSS_COMPILE" ar
declare -x AS = "$ CROSS_COMPILE" as
declare -x NM = "$ CROSS_COMPILE" nm
declare -x LD = "$ CROSS_COMPILE" ld
export LDFLAGS = -L / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib

export ac_cv_sizeof_ssize_t = 4
export ac_cv_lib_z_inflateReset = yes
./configure --target = powerpc --with-lib-subdir = / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib --with-gcc-arch = powerpc --host = powerpc-e300c3-linux -gnu \
ac_cv_file__dev_ptmx = yes --disable-core-libedit-support --without-apr-util


What could be the reason for such behavior?


Best Regards,
Appalonov Andrei.


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org




--
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

ClueCon Weekly Development Call 
☎ sip:888@conference.freeswitch.org  ☎ +19193869900 



---------- Пересылаемое сообщение ----------
From: "Андрей Аппалонов" <appalonovandrey@gmail.com>
To: freeswitch-dev@lists.freeswitch.org
Cc: 
Date: Tue, 2 Dec 2014 22:27:08 +0500
Subject: Re: [Freeswitch-dev] FreeSWITCH-dev Digest, Vol 102, Issue 1
system Linux 2.6.29.6 from Freescale. proc mpc83021- big endian
PowerPC architecture

2014-12-01 19:22 GMT+05:00 <freeswitch-dev-request@lists.freeswitch.org>:
Send FreeSWITCH-dev mailing list submissions to
        freeswitch-dev@lists.freeswitch.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
or, via email, send a message with subject or body 'help' to
        freeswitch-dev-request@lists.freeswitch.org

You can reach the person managing the list at
        freeswitch-dev-owner@lists.freeswitch.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-dev digest..."

Today's Topics:

   1. FreeSwitch and PowerPC (?????? ?????????)
   2. FreeSWITCH Friday FreeForAll Reminder! (Ken Rice)
   3. FreeSwitch on PowerPC (?????? ?????????)
   4. Re: FreeSwitch and PowerPC (Brian West)


---------- Пересылаемое сообщение ----------
From: "Андрей Аппалонов" <appalonovandrey@gmail.com>
To: FreeSWITCH-dev@lists.freeswitch.org
Cc: 
Date: Thu, 27 Nov 2014 18:41:55 +0500
Subject: [Freeswitch-dev] FreeSwitch and PowerPC
Hello!
Help me, please.

I did cross-compilation FreeSwitch for PowerPC. In the end, everything has been successfully compiled. But when you try to start FreeSwitch on PowerPC gives just Aborted. When you try to run through the /usr/bin/strace gives the following

open("/usr/local/freeswitch/run/freeswitch.pid", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
write(3, "2701"..., 4)                  = 4
uname({sys="Linux", node="OD-171/172", ...}) = 0
open("/proc/stat", O_RDONLY)            = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000
read(4, "cpu  5014 0 14136 1112775 0 692 1"..., 1024) = 1024
read(4, " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "..., 1024) = 188
read(4, ""..., 1024)                    = 0
close(4)                                = 0
munmap(0x48023000, 4096)                = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(2701, 2701, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++

 What could be wrong?



Best Regards,
Appalonov Andrei.


---------- Пересылаемое сообщение ----------
From: Ken Rice <krice@freeswitch.org>
To: freeswitch-users@lists.freeswitch.org, freeswitch-dev@lists.freeswitch.org
Cc: 
Date: Fri, 28 Nov 2014 15:03:44 +0000
Subject: [Freeswitch-dev] FreeSWITCH Friday FreeForAll Reminder!
FreeSWITCHers, Do not forget to join us at 2PM CST for the FreeSWITCH Friday FreeFor All
Visit http://ift.tt/1n3h0Pf and Click Call 888 with your WebRTC enabled Browser and headset, Call sip:888@conference.freeswitch.org or see http://ift.tt/1prwIZL for access info!
-- Ken FreeSWITCH.org ClueCon.com OSTAG.org irc.freenode.net #freeswitch Twitter: @FreeSWITCH @ClueCon

---------- Пересылаемое сообщение ----------
From: "Андрей Аппалонов" <appalonovandrey@gmail.com>
To: FreeSWITCH-dev@lists.freeswitch.org
Cc: 
Date: Mon, 1 Dec 2014 17:50:58 +0500
Subject: [Freeswitch-dev] FreeSwitch on PowerPC
Hello!
Can you help me? The problem is as follows:

I compiled FreeSwitch for PowerPC. FS compiled, but does not want to run. Gives a Aborted. Runs under strace, this is what gives (the last 38 lines):


open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000
read(3, "cpu  278 0 1857 11232 0 10 29 0 0"..., 1024) = 1024
read(3, "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 161
read(3, ""..., 1024)                    = 0
close(3)                                = 0
munmap(0x48023000, 4096)                = 0
sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0
setpriority(PRIO_PROCESS, 1485, -10)    = 0
setrlimit(RLIMIT_STACK, {rlim_cur=240*1024, rlim_max=8192*1024}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=999999, rlim_max=999999}) = 0
setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_NPROC, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_RTPRIO, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
mkdir("/usr/local/freeswitch/
run", 0750) = -1 EEXIST (File exists)
open("/usr/local/freeswitch/run/freeswitch.pid", O_RDONLY) = 3
read(3, "1483"..., 32)                  = 4
close(3)                                = 0
open("/usr/local/freeswitch/run/freeswitch.pid", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
write(3, "1485"..., 4)                  = 4
uname({sys="Linux", node="OD-171/172", ...}) = 0
open("/proc/stat", O_RDONLY)            = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000
read(4, "cpu  279 0 1858 11232 0 10 29 0 0"..., 1024) = 1024
read(4, "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 161
read(4, ""..., 1024)                    = 0
close(4)                                = 0
munmap(0x48023000, 4096)                = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(1485, 1485, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++

it wrote gdb:

warning: exec file is newer than core file.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.
Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/libssl.so.0.9.8
Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Reading symbols from /lib/libstdc++.so.6...done.
Loaded symbols for /lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `./freeswitch'.
Program terminated with signal 6, Aborted.
#0  0x0f84e564 in raise () from /lib/libc.so.6

Under gdb run:

export CFLAGS = "- g -ggdb"
export MOD_CFLAGS = "- g -ggdb"
./run_configure
make

ulimit -c unlimited
./freeswitch

gdb bin / freeswitch core

Version FreeSwitch 1.4.0.


run_configure looks like this:

export PATH = / opt / freescale / usr / local / gcc-4.1.78-eglibc-2.5.78-1 / powerpc-e300c3-linux-gnu / bin: \
/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib: \
/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs: \
/ home / common / ltib-mpc83xx / mpc8308erdb / rootfs / lib: $ PATH

#export CC = powerpc-e300c3-linux-gnu-gcc

declare -x CROSS_COMPILE = "powerpc-e300c3-linux-gnu-"
declare -x CC = "$ CROSS_COMPILE" gcc
declare -x CXX = "$ CROSS_COMPILE" g ++
declare -x CPP = "$ CROSS_COMPILE" cpp
declare -x STRIP = "$ CROSS_COMPILE" strip
declare -x RANLIB = "$ CROSS_COMPILE" ranlib
declare -x AR = "$ CROSS_COMPILE" ar
declare -x AS = "$ CROSS_COMPILE" as
declare -x NM = "$ CROSS_COMPILE" nm
declare -x LD = "$ CROSS_COMPILE" ld
export LDFLAGS = -L / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib

export ac_cv_sizeof_ssize_t = 4
export ac_cv_lib_z_inflateReset = yes
./configure --target = powerpc --with-lib-subdir = / home / common / ltib-mpc83xx / mpc8308erdb / rootfs / usr / lib --with-gcc-arch = powerpc --host = powerpc-e300c3-linux -gnu \
ac_cv_file__dev_ptmx = yes --disable-core-libedit-support --without-apr-util


What could be the reason for such behavior?


Best Regards,
Appalonov Andrei.



---------- Пересылаемое сообщение ----------
From: Brian West <brian@freeswitch.org>
To: "freeswitch-dev@lists.freeswitch.org" <freeswitch-dev@lists.freeswitch.org>
Cc: 
Date: Mon, 1 Dec 2014 08:22:14 -0600
Subject: Re: [Freeswitch-dev] FreeSwitch and PowerPC
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.

On Thu, Nov 27, 2014 at 7:41 AM, Андрей Аппалонов <appalonovandrey@gmail.com> wrote:
Hello!
Help me, please.

I did cross-compilation FreeSwitch for PowerPC. In the end, everything has been successfully compiled. But when you try to start FreeSwitch on PowerPC gives just Aborted. When you try to run through the /usr/bin/strace gives the following

open("/usr/local/freeswitch/run/freeswitch.pid", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
write(3, "2701"..., 4)                  = 4
uname({sys="Linux", node="OD-171/172", ...}) = 0
open("/proc/stat", O_RDONLY)            = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48023000
read(4, "cpu  5014 0 14136 1112775 0 692 1"..., 1024) = 1024
read(4, " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "..., 1024) = 188
read(4, ""..., 1024)                    = 0
close(4)                                = 0
munmap(0x48023000, 4096)                = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(2701, 2701, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++

 What could be wrong?



Best Regards,
Appalonov Andrei.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org




--

Brian West
brian@freeswitch.org


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest


_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org



system Linux 2.6.29.6 from Freescale. proc mpc83021- big endian
PowerPC architecture




Best Regards,
Appalonov Andrei.

_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org




--
С уважением,
Аппалонов Андрей.