Hi All,
I've been trying to build Astlinux from svn trunk. My host is gentoo
2006.1 amd64 and my target is i586 for a Soekris 4801 box. See at the
bottom of my mail for the error I get when I build Astlinux with
BR2_PACKAGE_ZAPTEL and BR2_PACKAGE_ASTERISK_ZAPTEL.
I tracked the error to Zaptel's Makefile which seems to ignore any
CFLAGS received by 'configure' and use the output of 'uname -m' to
figure for which arch it is building (Makefile from line 97 to 100).
Where I doubt by debugging, is that this would indicate that zaptel
can't be cross-compiled as it will always build for the host's
architecture and not the target's... ans I can't believe this would
not have been found before. A quick fix would be a patch to remove
CFLAGS_X86-64 and CFLAGS_PPC from Zaptel's Makefile... This way, it
would always build for the toolchain's native architecture (the
target's).
See the attached patch that could be added to 'package/zaptel/'
--
Fred
-------------- START OF 'make' OUTPUT ---------------
make[1]: Entering directory
`/home/lefebvre/build/astlinux-trunk/build_i586/zaptel-1.2.16'
/home/lefebvre/build/astlinux-trunk/build_i586/staging_dir/bin/i586-linux-uclibc-gcc
-DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -I. -O4 -g -Wall -m64
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztcfg.o ztcfg.c
/home/lefebvre/build/astlinux-trunk/build_i586/staging_dir/bin/i586-linux-uclibc-gcc
-c -fPIC -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -I. -O4 -g -Wall
-m64 -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
ztcfg.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [ztcfg.o] Error 1
make[1]: *** Waiting for unfinished jobs....
zonedata.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [zonedata.lo] Error 1
make[1]: Leaving directory
`/home/lefebvre/build/astlinux-trunk/build_i586/zaptel-1.2.16'
make: *** [/home/lefebvre/build/astlinux-trunk/build_i586/zaptel-1.2.16/ztcfg]
Error 2
|