[Asterisk-Users] Compiling Zaptel on EM64T machine

Tzafrir Cohen tzafrir at cohens.org.il
Sat Oct 1 08:54:45 MST 2005


On Sun, Oct 02, 2005 at 01:39:58AM +1000, Broadband Solutions wrote:
> Hi Guys
> 
> Im trying to complile Asterisk on my new dual Xeon 3.0ghz EM64T machine.
> 
> Im running Debian 3.1, and have installed the 2.6.8-11-em64t-p4-smp 
> kernel (and headers). The system is working fine and is detecting 
> both CPU's (4 actually, with hyperthreading).
> 
> But when I try to compile Zaptel, Im getting this error:
> 
> /lib/modules/2.6.8-11-em64t-p4-smp­ /build

This extra "-" in the end shouldn't be there. Are you using the right
kernel-headers?

Is it your own kernel with a modified version string?

> make -C /lib/modules/2.6.8-11-em64t-p4-smp­ /build SUBDIRS=/usr/src/zaptel modules
> make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-11-­ em64t-p4-smp'
> CC [M] /usr/src/zaptel/zaptel.o
> cc1: error: code model `kernel' not supported in the 32 bit mode
> make[2]: *** [/usr/src/zaptel/zaptel.o] Error 1
> make[1]: *** [_module_/usr/src/zaptel] Error 2
> make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-11-­ em64t-p4-smp'
> make: *** [linux26] Error 2
> 
> Can anyone help me out? What does "code model `kernel' not supported in the 32 bit mode" mean, and how could I get around it? 

How about:

  apt-get install zaptel-source
  m-a a-i zaptel

If you really need up-to-date zaptel debs, they're in experimental (or
will soon be), and also in http://rapid.dotsrc.org/experimental/

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list