Ok Vadim,<br><br>I'll take a look on it.<br><br>Thanks,<br><br>Raphael Amorim<br><br><div class="gmail_quote">On Mon, Sep 21, 2009 at 1:27 PM, Vadim Lebedev <span dir="ltr"><<a href="mailto:vadim@mbdsys.com">vadim@mbdsys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Rapahel,<br>
<br>
The corrent ltib contains my port of zaptel....<br>
Maybe you can take an insipiration from it<br>
<br>
<br>
Thanks<br>
Vadim<br>
<br>
Raphael Amorim wrote:
<blockquote type="cite"><div><div></div><div class="h5">Hello all,<br>
<br>
I'm trying to cross-compile dahdi-linux on PPC (mpc8315erdb),<br>
I'd included it to LTIB and I'm getting the following error:<br>
<br>
sources=dahdi-linux-2.2.0.2.
<div>tar.gz<br>
<br>
pkg_dir_name=dahdi-linux-2.2.0.2<br>
patches=<br>
prefix=/opt/freescale/rootfs/i386<br>
vendor=Digium<br>
Build path taken because: build key set, no prebuilt rpm,<br>
<br>
rpmbuild --dbpath<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rootfs//var/lib/rpm<br>
--target ppc --define '_unpackaged_files_terminate_build 0' --define<br>
'_target_cpu ppc' --define '__strip strip' --define '_topdir<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm' --define<br>
'_prefix /usr' --define '_tmppath<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp' --define<br>
'_mandir /usr/share/man' --define '_sysconfdir /etc' --define<br>
'_localstatedir /var' -bc --short-circuit<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/dist/lfs-5.1/dahdi-linux/dahdi-linux.spec<br>
Building target platforms: ppc<br>
Building for target ppc<br>
Executing(%build): /bin/sh -e<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943<br>
+ umask 022<br>
+ cd
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD<br>
+ cd dahdi-linux-2.2.0.2<br>
+ make<br>
make -C drivers/dahdi/firmware firmware-loaders<br>
make[1]: Entering directory<br>
`/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'<br>
make[1]: Leaving directory<br>
`/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'<br>
make -C /lib/modules/2.6.28-15-generic/build<br>
SUBDIRS=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi<br>
DAHDI_INCLUDE=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/include<br>
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m<br>
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'<br>
CC [M]<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o<br>
cc1: error: unrecognized command line option "-mregparm=3"<br>
cc1: error: unrecognized command line option "-march=i586"<br>
make[2]: ***<br>
[/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o]<br>
Error 1<br>
make[1]: ***<br>
[_module_/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi]<br>
Error 2<br>
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'<br>
make: *** [modules] Error 2<br>
error: Bad exit status from<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943<br>
(%build)<br>
<br>
<br>
RPM build errors:<br>
Bad exit status from<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943<br>
(%build)<br>
Build time for dahdi-linux: 0 seconds<br>
<br>
Failed building dahdi-linux<br>
<br>
<br>
f_scbuild() returned an error, exiting<br>
traceback:<br>
main:501<br>
<br>
Exiting on error or interrupt<br>
<br>
<br>
Any tricks or hints?</div>
</div></div><pre><hr size="4" width="90%"><div class="im">
_______________________________________________
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>--
AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a>
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></div></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br>