[asterisk-users] Zaptel-1.4.1 error cross compile
Satish Patel
satish at linuxbug.org
Thu Oct 2 12:30:33 CDT 2008
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
More information about the asterisk-users
mailing list