I have CLFS ARM cross toolchain with uClibc and I have installed asterisk on it now I want to compile zaptel-1.4 I got this error clfs:/mnt/clfs/sources/zaptel-1.4.1$ make make[1]: Entering directory `/mnt/clfs/sources/zaptel-1.4.1/menuselect' checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... arm-unknown-linux-gnu-gcc checking for C compiler default output file name... a.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. make[1]: *** [autoconfig.h] Error 1 make[1]: Leaving directory `/mnt/clfs/sources/zaptel-1.4.1/menuselect' make: *** [menuselect/menuselect] Error 2 clfs:/mnt/clfs/sources/zaptel-1.4.1$ Regards, Satish Patel
On Thu, Oct 02, 2008 at 10:19:00AM -0400, satish patel wrote:> > > I have CLFS ARM cross toolchain with uClibc and I have installed asterisk on > it now I want to compile zaptel-1.4 > > I got this error > > clfs:/mnt/clfs/sources/zaptel-1.4.1$ make > make[1]: Entering directory `/mnt/clfs/sources/zaptel-1.4.1/menuselect' > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking for gcc... arm-unknown-linux-gnu-gcc > checking for C compiler default output file name... a.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. > make[1]: *** [autoconfig.h] Error 1 > make[1]: Leaving directory `/mnt/clfs/sources/zaptel-1.4.1/menuselect' > make: *** [menuselect/menuselect] Error 2 > clfs:/mnt/clfs/sources/zaptel-1.4.1$Could you please try a newer version of zaptel 1.4? There have been many changes in the build system of zaptel 1.4 since 1.4.1 . It would also help if you give your configure command and/or environment. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Regards, Satish Patel Quoting Tzafrir Cohen <tzafrir.cohen at xorcom.com>:> On Thu, Oct 02, 2008 at 11:33:01AM -0400, Satish Patel wrote: >> >> Regards, >> >> Satish Patel >> >> >> Quoting Tzafrir Cohen <tzafrir.cohen at xorcom.com>: >> >> > On Thu, Oct 02, 2008 at 10:51:37AM -0400, Satish Patel wrote: >> >> >> >> Quoting Tzafrir Cohen <tzafrir.cohen at xorcom.com>: >> > >> > As I wrote: >> > >> >> >Could you please try a newer version of zaptel 1.4? There have been many >> >> >changes in the build system of zaptel 1.4 since 1.4.1 . >> > >> > But in your reply: >> > >> >> clfs:/mnt/clfs/sources/zaptel-1.4.1$ ./configure >> >> --host=${CLFS_TARGET} --prefix=/usr >> > >> >> I wanted to show you what option i used now i have download zaptel-1.4.12.1 >> >> clfs:/mnt/clfs/sources/zaptel-1.4.12.1$ ./configure >> --host=${CLFS_TARGET} --prefix=/usr >> configure: WARNING: If you wanted to set the --build type, don't use --host. >> If a cross compiler is detected then cross compile mode will be used. > > I don't know much about cross-compiling, but this warning scares me. > > I have a feeling you're doing something wrong. > > Anyway, if you want to avoid the whole menuselect mess, take a look at > http://bugs.digium.com/13132 > > Remove the subdirectory menuselect and put the makefile and script from > that bug report there instead. Run: > > make -C menuselect dummies > > Then it should behave just like the original. At least theoretically. > You may need to instruct it to take data from other XML files. See the > calls to the function parse_menuselect_xml_file() in the end. > > Let me know if it worked ;-)> I'll see if someone else will pick it up on-list as both cross-compiling > and menuselect are not my preffered code.for experiment i have download 1.2.27 current version of zaptel ./configure --host=${CLFS_TARGET} --prefix=/usr make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- DESTDIR=${CLFS} install it has installed module clfs:/mnt/clfs/sources/zaptel-1.2.27$ ls -l ../../lib/modules/2.6.22.6/misc/ total 476 -rw-r--r-- 1 clfs clfs 67566 Sep 1 18:46 pciradio.ko -rw-r--r-- 1 clfs clfs 92753 Sep 1 18:46 tor2.ko -rw-r--r-- 1 clfs clfs 19267 Sep 1 18:46 torisa.ko -rw-r--r-- 1 clfs clfs 15542 Sep 1 18:46 wcfxo.ko -rw-r--r-- 1 clfs clfs 18524 Sep 1 18:46 wct1xxp.ko drwxr-xr-x 2 clfs clfs 4096 Sep 1 18:42 wct4xxp drwxr-xr-x 2 clfs clfs 4096 Sep 1 18:42 wctc4xxp -rw-r--r-- 1 clfs clfs 46475 Sep 1 18:46 wctdm.ko drwxr-xr-x 2 clfs clfs 4096 Sep 1 18:42 wctdm24xxp -rw-r--r-- 1 clfs clfs 40601 Sep 1 18:46 wcte11xp.ko drwxr-xr-x 2 clfs clfs 4096 Sep 1 18:42 wcte12xp -rw-r--r-- 1 clfs clfs 18531 Sep 1 18:46 wcusb.ko -rw-r--r-- 1 clfs clfs 71372 Sep 1 18:46 zaptel.ko -rw-r--r-- 1 clfs clfs 8250 Sep 1 18:46 ztd-eth.ko -rw-r--r-- 1 clfs clfs 4883 Sep 1 18:46 ztd-loc.ko -rw-r--r-- 1 clfs clfs 3204 Sep 1 18:46 ztdummy.ko -rw-r--r-- 1 clfs clfs 13059 Sep 1 18:46 ztdynamic.ko -rw-r--r-- 1 clfs clfs 10780 Sep 1 18:46 zttranscode.ko but when i have build-root and run is root-image on ARM hardware and try to install module i got error root#insmod zaptel insmod: cannot insert '/lib/modules/2.6.22.6/misc/zaptel.ko' : Invalid module formate (-1): Exec format error
On Sun, Oct 05, 2008 at 11:28:47AM -0400, satish patel wrote:> > > > > >> Hello. > >> Have you ever tried updating your GCC version? > >> Thanks. > > I am using cross compile so i can't update GCC other wise it will effect on > my other packages anyway... tell me one thing i have host system kernel > version is 2.6.18 and i am compiling ARM embedded rootbuild with other > kernel version 2.6.22 so i need to compile my zaptel package with 2.6.22 > kernel caz i will use it on target ARM hardware ( IXP425 ). I am doing that > but after porting rootfs on target host and when i run "insmod zaptel" > command on target board i got error > > root#insmod zaptel > insmod: cannot insert '/lib/modules/2.6.22.6/misc/zaptel.ko' : Invalid > module formate (-1): Exec format errorAnd what is the format of that file? file /lib/modules/2.6.22.6/misc/zaptel.ko (run that either on your board or on the build system, before copying) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
satish patel wrote: <snip />> I have set env on shell > > KVERS=2.6.22.5 > KSRC=/path/to/kernel-2.6.22.5/source >Maybe I misunderstood you then. I thought you said that your ARM system was using a 2.6.18 kernel? If that is the case, then surely you need to build your zaptel module against that and *not* the kernel on your cross-compiling host machine. But probably I misunderstood what you meant. Al