[App_rpt-users] phase2.sh wont do the job

pete M petem001 at hotmail.com
Fri Mar 8 03:43:37 UTC 2013


After going to the svn I was able to compile and run asterisk

I have loaded the node 27821 configuration into the etc/asterisk/ directory (this node is down right now)

and asterisk started, my led started to blink,on the URI, but it stopped right away.

now in message.log thats what I see..

[Mar  7 22:36:05] NOTICE[4490] app_rpt.c: RPT thread restarted on 27821
[Mar  7 22:36:05] WARNING[4490] app_rpt.c: rpt_thread restarted on node 27821
[Mar  7 22:36:05] WARNING[4518] chan_dahdi.c: Unable to open '/dev/zap/pseudo': No such file or directory
[Mar  7 22:36:05] ERROR[4518] chan_dahdi.c: Unable to dup channel: No such file or directory
[Mar  7 22:36:05] WARNING[4519] chan_usbradio.c: File usbradio_tune_usb27821.conf not found, device usb27821 using default parameters.
[Mar  7 22:36:07] NOTICE[4490] app_rpt.c: RPT thread restarted on 27821
[Mar  7 22:36:07] WARNING[4490] app_rpt.c: rpt_thread restarted on node 27821
[Mar  7 22:36:07] WARNING[4520] chan_dahdi.c: Unable to open '/dev/zap/pseudo': No such file or directory
[Mar  7 22:36:07] ERROR[4520] chan_dahdi.c: Unable to dup channel: No such file or directory
[Mar  7 22:36:07] WARNING[4521] chan_usbradio.c: File usbradio_tune_usb27821.conf not found, device usb27821 using default parameters.

of course I did not set any sounf level cause when I try to do asterisk -r I receive this message:


=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

I do have an asterisk.pid, but no asterisk.ctl..

Looks like I did not do something right... I am close, but no cake yet..



From: telesistant at hotmail.com
To: petem001 at hotmail.com; app_rpt-users at ohnosec.org
Subject: RE: [App_rpt-users] phase2.sh wont do the job
Date: Thu, 7 Mar 2013 18:15:28 -0800





I'm not sure why you would expect it to.

phase2.sh, amongst other things, loads the CURRENT RELEASE
of the sources which CLEARLY DO NOT support any of the Centos 6 things.

As I said before, you need to load the SVN version of the sources and it
will be much happier.

https://allstarlink.org/support.html#astupgrade

Jim

From: petem001 at hotmail.com
To: app_rpt-users at ohnosec.org
Date: Thu, 7 Mar 2013 20:29:52 -0500
Subject: [App_rpt-users] phase2.sh wont do the job





Ok Like a few here knows, I am trying to install the acid version of app_rpt on a centos 6 linux.

Someone kind enough gave me good info to start with and I've been able to do a lot..

but after modifying phase2.sh so that it can find its repo, I start it and here is the output..

****** Phase 2 post install ******
Getting asterisk install script from http://dl.allstarlink.org...
Getting files.tar.gz from http://dl.allstarlink.org...
****** Asterisk Installation ******
 7 Mar 20:19:01 ntpdate[5687]: the NTP socket is in use, exiting
Unpacking files.tar.gz...
Compiling Zaptel...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for GNU make... make
checking for grep... /bin/grep
checking for sh... /bin/sh
checking for ln... /bin/ln
checking for wget... /usr/bin/wget
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for newtBell in -lnewt... yes
checking newt.h usability... yes
checking newt.h presence... yes
checking for newt.h... yes
checking for usb_init in -lusb... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
configure: creating ./config.status
config.status: creating build_tools/menuselect-deps
config.status: creating makeopts
config.status: creating build_tools/make_firmware_object
configure: *** Zaptel build successfully configured ***
make[1]: Entering directory `/usr/src/astsrc/zaptel/menuselect'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for GNU make... make
checking for asprintf... yes
checking for getloadavg... yes
checking for setenv... yes
checking for strcasestr... yes
checking for strndup... yes
checking for strnlen... yes
checking for strsep... yes
checking for strtoq... yes
checking for unsetenv... yes
checking for vasprintf... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for pkg-config... pkg-config
configure: creating ./config.status
config.status: creating makeopts
config.status: creating autoconfig.h
configure: configuring in mxml
configure: running /bin/sh './configure' --prefix=/usr/local  'CC=' 'LD=' 'AR=' 'CFLAGS=' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for cp... /bin/cp
checking for ln... /bin/ln
checking for mkdir... /bin/mkdir
checking for nroff... /usr/bin/nroff
checking for rm... /bin/rm
checking for strdup... yes
checking for vsnprintf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mxml.list
config.status: creating mxml.pc
config.status: creating config.h
configure: Menuselect build configuration successfully completed
make[1]: Leaving directory `/usr/src/astsrc/zaptel/menuselect'
make[1]: Entering directory `/usr/src/astsrc/zaptel/menuselect'
make[2]: Entering directory `/usr/src/astsrc/zaptel/menuselect'
gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12      -c -o menuselect.o menuselect.c
gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12      -c -o strcompat.o strcompat.c
gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12      -c -o menuselect_curses.o menuselect_curses.c
make[3]: Entering directory `/usr/src/astsrc/zaptel/menuselect/mxml'
gcc -O -Wall   -c mxml-attr.c
gcc -O -Wall   -c mxml-entity.c
gcc -O -Wall   -c mxml-file.c
gcc -O -Wall   -c mxml-index.c
gcc -O -Wall   -c mxml-node.c
gcc -O -Wall   -c mxml-search.c
gcc -O -Wall   -c mxml-set.c
gcc -O -Wall   -c mxml-private.c
gcc -O -Wall   -c mxml-string.c
/bin/rm -f libmxml.a
/usr/bin/ar crvs libmxml.a mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o
a - mxml-attr.o
a - mxml-entity.o
a - mxml-file.o
a - mxml-index.o
a - mxml-node.o
a - mxml-search.o
a - mxml-set.o
a - mxml-private.o
a - mxml-string.o
ranlib libmxml.a
make[3]: Leaving directory `/usr/src/astsrc/zaptel/menuselect/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a mxml/libmxml.a -lncurses 
make[2]: Leaving directory `/usr/src/astsrc/zaptel/menuselect'
make[1]: Leaving directory `/usr/src/astsrc/zaptel/menuselect'
Generating input for menuselect ...
make[1]: Entering directory `/usr/src/astsrc/zaptel'
make -C /lib/modules/2.6.32-279.22.1.el6.x86_64/build ARCH=x86_64 SUBDIRS=/usr/src/astsrc/zaptel/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o zaptel.o ztd-eth.o ztd-loc.o ztdummy.o ztdynamic.o zttranscode.o wctdm24xxp/" modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-279.22.1.el6.x86_64'
gcc -o /usr/src/astsrc/zaptel/kernel/makefw /usr/src/astsrc/zaptel/kernel/makefw.c
/usr/src/astsrc/zaptel/kernel/makefw /usr/src/astsrc/zaptel/kernel/pciradio.rbt radfw > /usr/src/astsrc/zaptel/kernel/radfw.h
Loaded 42096 bytes from file
  CC [M]  /usr/src/astsrc/zaptel/kernel/pciradio.o
/usr/src/astsrc/zaptel/kernel/pciradio.c: In function ‘pciradio_start_dma’:
/usr/src/astsrc/zaptel/kernel/pciradio.c:1700: error: implicit declaration of function ‘set_current_state’
/usr/src/astsrc/zaptel/kernel/pciradio.c:1700: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/usr/src/astsrc/zaptel/kernel/pciradio.c:1700: error: (Each undeclared identifier is reported only once
/usr/src/astsrc/zaptel/kernel/pciradio.c:1700: error: for each function it appears in.)
/usr/src/astsrc/zaptel/kernel/pciradio.c:1701: error: implicit declaration of function ‘schedule_timeout’
make[3]: *** [/usr/src/astsrc/zaptel/kernel/pciradio.o] Error 1
make[2]: *** [_module_/usr/src/astsrc/zaptel/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.32-279.22.1.el6.x86_64'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/astsrc/zaptel'
make: *** [all] Error 2
Failure: Unable to compile Zaptel 2
Fatal error: Unable to install Asterisk!


a bit long but I dont see where its bugging and why, at first it was asking for gtk, so I did a yum install gtk-devel this got care of the complaning about gtk..

Of course I did a yum -y update before stating this.

now anyone can help??  

p.s. runlevel of the machine is 3



now going to take a look at astinstall.sh if there is something there that I did not see..

Pierre 
VE2PF


 		 	   		  

_______________________________________________
App_rpt-users mailing list
App_rpt-users at ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20130307/2f0d8ce1/attachment.html>


More information about the App_rpt-users mailing list