[App_rpt-users] phase2.sh won't do the job

pete M petem001 at hotmail.com
Fri Mar 8 02:14:08 UTC 2013


Thanks Alan, 

No I am not that good with Linux, the kernel is 2.6 

Hopefully Jim will maybe point me in to the direction that I need to go.

It took me half an hour to pass trough ks.cfg and phase1.sh script to be able to run phase2.sh up to where it is right now..

I maybe far from being a good linux user but I've been learning a lot tonight.. 



Envoyé de mon iPad

Le 7 Mar 2013 à 21:03, "Alan Adamson" <adamson_alan at hotmail.com> a écrit :

> Pete based upon this question, I probably know the answer to the next… There are a bunch of changes to make Asterisk compile on a 2.6.35 or 3.x kernel (not sure which Centos uses).  Note the least of which there are some pretty significant USB changes that need to be made.  I run Allstar on Debian Squeeze, and at the first time I brought it up, I had to go through all of this, but my sources don't match the Distro so I'm reluctant to share them.  Also, I think Jim pushed some of the changes into the SVN, but from your error, he didn't push all of them in.
>  
> I'm not sure what to tell you, but unless you are comfortable with linux and building applications and how the header files relate and have been changed over the various kernel versions, you are in a pretty steep uphill journey.
>  
> Trudge on as you wish, but you've just reached the tip of the iceberg around this stuff on the newer kernels.
>  
> If you are pretty comfortable with Linux, I'd be happy to share my sources, but you'd have to diff them against the SVN and make your changes from them.
>  
> Sorry,
> Alan
>  
> From: app_rpt-users-bounces at ohnosec.org [mailto:app_rpt-users-bounces at ohnosec.org] On Behalf Of pete M
> Sent: Thursday, March 07, 2013 8:30 PM
> To: APP RPT
> 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
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20130307/13ae6e72/attachment.html>


More information about the App_rpt-users mailing list