[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Builting asterisk for PowerPC MPC82xx
From: |
Nirmala |
Subject: |
Re: [Ltib] Builting asterisk for PowerPC MPC82xx |
Date: |
Mon, 18 May 2009 13:30:23 -0400 |
Hi Stuart,
Yes, the kernel is from kernel.org, here with attaching the files.
one may have to edit their .ltibrc file and give the location
http://www.kernel.org/pub/linux/kernel/v2.6 to get the tar ball.
There is no update on asterisk directory , When i did cvs update,
could you send me the copy of asterisk.spec file. (how to get the
updated one?)
Thank you,
Nirmala
On Mon, 2009-05-18 at 16:43 +0100, Stuart Hughes wrote:
> Hi Nirmala,
>
> I've checked in an update to the asterisk.spec file that should fix your
> problem.
>
> Can you tell me if this is a vanilla (kernel.org) 2.6.25? can you post
> the kernel-xxx.spec.in you're using and your kernel.config file (as a
> patch). This would be helpful to others (I can add it to CVS).
>
> Regards, Stuart
>
> Nirmala wrote:
> > Hi Stuart,
> > The kernel Version is 2.6.25 , I was able to build the asterisk but when
> > i select "Configure asterisk at build time" option. then only there is
> > build error as mentioned earlier
> >
> > and also i don't need zaptel ( which is needed for the advanced call
> > features and which is not mandatory in order to build asterisk ,we can
> > suppress it in the config options)
> >
> > below is the command output you have asked for
> > --------------------------------------------------------------------
> >
> > ccache
> > ccache, a compiler cache. Version 2.4
> > Copyright Andrew Tridgell, 2002
> >
> > Usage:
> > ccache [options]
> > ccache compiler [compile options]
> > compiler [compile options] (via symbolic link)
> >
> > Options:
> > -s show statistics summary
> > -z zero statistics
> > -c run a cache cleanup
> > -C clear the cache completely
> > -F <maxfiles> set maximum files in cache
> > -M <maxsize> set maximum size of cache (use G, M or K)
> > -h this help page
> > -V print version number
> > ------------------------------------------------------------------------
> > ccache /usr/bin/gcc -B/usr/bin
> > gcc: no input files
> > ------------------------------------------------------------------------
> > echo 'int main() { printf ("Hello, world\n"); }' | ccache /usr/bin/gcc
> > -B/usr/bin/ -w -xc - -o helloworld
> > LTIB> ./helloworld
> > Hello, world
> > -------------------------------------------------------------------------
> >
> >
> > Thank you,
> > Nirmala
> >
> >
> >
> >
> > Hi Nirmala,
> >
> > I tried using the mpc82xx BSP type from Savannah but that has an old 2.4
> > kernel and I could not build zaptel and so could not get as far as
> > asterisk. What kernel are you using for that BSP?
> >
> > Anyhow, I tried a different target (mpc8349itx 2.6.16 kernel) and that
> > builds asterisk okay, here the same section for my build:
> >
> > """
> > configure: Package configured for:
> > configure: OS type : linux-gnu
> > configure: Host CPU : powerpc
> > configure: Cross Compilation = YES
> > + PKG_ASTERISK_PRECONFIG=asterisk.menuselect.makeopts
> > + '[' -f
> > /data/seh/Src/ltib_bsps/savannah_ltib/config/platform/mpc8349itx/asterisk.menuselect.makeopts
> >
> >
> > ']'
> > + '[' -f
> > /data/seh/Src/ltib_bsps/savannah_ltib/config/defaults/asterisk.menuselect.makeopts
> >
> >
> > ']'
> > + '[' -n '' -o -n '' ']'
> > + make 'HOST_CC=ccache /usr/bin/gcc -B/usr/bin/'
> > make[1]: Entering directory
> > `/data/seh/Src/ltib_bsps/savannah_ltib/rpm/BUILD/asterisk-1.4.21.1/menuselect'
> > Package gtk+-2.0 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `gtk+-2.0.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'gtk+-2.0' found
> > checking for gcc... ccache /usr/bin/gcc -B/usr/bin/
> > checking for C compiler default output file name... a.out
> > """
> >
> > Can you run these test and send the output:
> >
> > $ ./ltib -m shell
> > $ ccache
> > ..... some output ....
> > $ ccache /usr/bin/gcc -B/usr/bin/
> > ..... some more output ....
> > ### this needs to be all on one line, not wrapped
> > $ echo 'int main() { printf ("Hello, world\n"); }' | ccache
> > /usr/bin/gcc -B/usr/bin/ -w -xc - -o helloworld
> > .... maybe some output ....
> > $ ./helloworld
> > ..... some more output ....
> > $ exit
> >
> > Also, please start a new thread (compose/new) for new subject rather
> > than replying to existing threads.
> >
> > Regards, Stuart
> >
> > Nirmala wrote:
> >> Hi,
> >>
> >> I'm trying to build asterisk 1.4.21.1 on kernel 2.6.25 file system for
> >> PowerPC MPC82xx processor from Savanna site.
> >>
> >> from ltib configuration menu, chosen "asterisk" package under package
> >> list and "Configure asterisk at build time" option.
> >>
> >> While building asterisk at the time of menuselect it shows following
> >> error.
> >>
> >>
> > ------------------------------------------------------------------------
> >> configure: Package configured for:
> >> configure: OS type : linux-gnu
> >> configure: Host CPU : powerpc
> >> configure: Cross Compilation = YES
> >> + PKG_ASTERISK_PRECONFIG=asterisk.menuselect.makeopts
> >> + '[' -f ~/ltib/config/platform/mpc82xx/asterisk.menuselect.makeopts
> > ']'
> >> + '[' -f ~/ltib/config/defaults/asterisk.menuselect.makeopts ']'
> >> + '[' -n y -o -n '' ']'
> >> + make menuconfig 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin/'
> >> make[1]: Entering directory
> >> `~/ltib/rpm/BUILD/asterisk-1.4.21.1/menuselect'
> >> configure: error: cannot run C compiled programs.
> >> If you meant to cross compile, use `--host'.
> >> See `config.log' for more details.
> >> make[2]: Entering directory
> >> `~/ltib/rpm/BUILD/asterisk-1.4.21.1/menuselect'
> >> configure: error: cannot run C compiled programs.
> >> If you meant to cross compile, use `--host'.
> >> See `config.log' for more details.
> >> checking for gcc... cc
> >> checking for C compiler default output file name... b.out
> >> checking whether the C compiler works... configure: error: cannot run
> > C
> >> compiled programs.
> >> If you meant to cross compile, use `--host'.
> >> See `config.log' for more details.
> >>
> > ---------------------------------------------------------------------------
> >> Any help would be appreciated.
> >>
> >> Thank you,
> >> Nirmala
> >>
> >>
> >>
> >
> >
> >
> >
> >
kernel-2.4.26-82xx.spec.in.tar.gz
Description: application/compressed-tar