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.