[asterisk-users] DAHDI or Zaptel doesn't compile against 1.4.24

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Mar 17 14:42:51 CDT 2009


On Tue, Mar 17, 2009 at 07:16:26PM +0100, Administrator TOOTAI wrote:
> Hi,
> 
> We installed the latest 1.4.24 on a test machine and can't get zaptel 
> nor dahdi compile. It's a Linux Debian Etch. Errors we have:
> 
> keewi:/usr/src/dahdi-linux-2.1.0.4# make
> make -C /lib/modules/2.6.18-custom.2/build ARCH=i386 
> SUBDIRS=/usr/src/dahdi-linux-2.1.0.4/drivers/dahdi 
> DAHDI_INCLUDE=/usr/src/dahdi-linux-2.1.0.4/include DAHDI_MODULES_EXTRA=" 
> " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
> make[1]: entrant dans le répertoire « /usr/src/linux-source-2.6.18 »
> 
>    WARNING: Symbol version dump /usr/src/linux-source-2.6.18/Module.symvers
>             is missing; modules will have no dependencies and modversions.
> 
>    CC [M]  /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi-base.o
> In file included from 
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi-base.c:38:
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:23:27: error: 
> linux/version.h: Aucun fichier ou répertoire de ce type

This is plain wrong.

Your source tree is bad. 

What kernel version do you want to build dahdi against? What kernel
version do you use?

  uname -a

> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:24:5: warning: 
> "LINUX_VERSION_CODE" is not defined
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:24:26: 
> warning: "KERNEL_VERSION" is not defined
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:24:40: error: 
> missing binary operator before token "("
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:82:5: warning: 
> "LINUX_VERSION_CODE" is not defined
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:82:27: 
> warning: "KERNEL_VERSION" is not defined
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_config.h:82:41: error: 
> missing binary operator before token "("
> In file included from include/linux/kernel.h:11,
>                   from 
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi-base.c:40:
> include/linux/linkage.h:4:25: error: asm/linkage.h: Aucun fichier ou 
> répertoire de ce type
> In file included from include/linux/posix_types.h:47,
>                   from include/linux/types.h:14,
>                   from include/linux/kernel.h:13,
>                   from 
> /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi-base.c:40:
> /usr/lib/gcc/i486-linux-gnu/4.1.2/include/asm/posix_types.h:13:22: 
> error: features.h: Aucun fichier ou répertoire de ce type
> 
> aso.
> 
> Zaptel, the same:
> 
> ...
> make[1]: entrant dans le répertoire « /usr/src/asterisk-1.4.24/zaptel »
> make -C /lib/modules/2.6.18-custom.2/build 
> SUBDIRS=/usr/src/asterisk-1.4.24/zaptel/kernel HOTPLUG_FIRMWARE=yes 
> KBUILD_OBJ_M="wcfxo.o zaptel.o ztdummy.o zttranscode.o " modules
> make[2]: entrant dans le répertoire « /usr/src/linux-source-2.6.18 »
> 
>    WARNING: Symbol version dump /usr/src/linux-source-2.6.18/Module.symvers
>             is missing; modules will have no dependencies and modversions.
> 
>    CC [M]  /usr/src/asterisk-1.4.24/zaptel/kernel/wcfxo.o
> In file included from include/linux/kernel.h:11,
>                   from /usr/src/asterisk-1.4.24/zaptel/kernel/wcfxo.c:27:
> include/linux/linkage.h:4:25: error: asm/linkage.h: Aucun fichier ou 
> répertoire de ce type
> In file included from include/linux/posix_types.h:47,
>                   from include/linux/types.h:14,
>                   from include/linux/kernel.h:13,
>                   from /usr/src/asterisk-1.4.24/zaptel/kernel/wcfxo.c:27:
> /usr/lib/gcc/i486-linux-gnu/4.1.2/include/asm/posix_types.h:13:22: 
> error: features.h: Aucun fichier ou répertoire de ce type
> /usr/lib/gcc/i486-linux-gnu/4.1.2/include/asm/posix_types.h:14:35: 
> error: no include path in which to search for asm/posix_types.h
> In file included from include/linux/kernel.h:13,
>                   from /usr/src/asterisk-1.4.24/zaptel/kernel/wcfxo.c:27:
> include/linux/types.h:15:23: error: asm/types.h: Aucun fichier ou 
> répertoire de ce type
> 
> aso.
> 
> 
> What are we doing wrong?
> 
> -- 
> Daniel
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
               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



More information about the asterisk-users mailing list