Geoff Nordli
2005-Feb-10 10:55 UTC
[Asterisk-Users] Debian way of compiling zaptel kernel modules
I ran "apt-get -b source zaptel-source" to download and compile the zaptel source. It successfully compiles and builds the following packages: libtonezone-dev_1.0.2-2_i386.deb libtonezone1_1.0.2-2_i386.deb zaptel-source_1.0.2-2_all.deb zaptel_1.0.2-2_i386.deb None of them contain the kernel modules. Is there a way I can get it to compile the kernel modules? Thanks, Geoff
Marco Castillo
2005-Feb-10 11:48 UTC
[Asterisk-Users] Debian way of compiling zaptel kernel modules
Be sure you're using Debian with kernel 2.4.20 or more (if you use the stable release version of Debian, using dselect will just upgrade your kernel until 2.4.18, and the zaptel libraries won't be properly compiled). Using dselect o apt, get the kernel-sources packages and the kernel-heades packages. And modify the Makefile for the zaptel libraries to point to the proper directories for the kernel headers (don't use usr/include/linux). Hope this helps Marco -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Geoff Nordli Sent: Thursday, February 10, 2005 11:56 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Debian way of compiling zaptel kernel modules I ran "apt-get -b source zaptel-source" to download and compile the zaptel source. It successfully compiles and builds the following packages: libtonezone-dev_1.0.2-2_i386.deb libtonezone1_1.0.2-2_i386.deb zaptel-source_1.0.2-2_all.deb zaptel_1.0.2-2_i386.deb None of them contain the kernel modules. Is there a way I can get it to compile the kernel modules? Thanks, Geoff _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Tzafrir Cohen
2005-Feb-11 18:35 UTC
[Asterisk-Users] Debian way of compiling zaptel kernel modules
On Thu, Feb 10, 2005 at 09:55:47AM -0800, Geoff Nordli wrote:> I ran "apt-get -b source zaptel-source" to download and compile the zaptel > source. > > It successfully compiles and builds the following packages: > > libtonezone-dev_1.0.2-2_i386.deb > libtonezone1_1.0.2-2_i386.deb > zaptel-source_1.0.2-2_all.deb > zaptel_1.0.2-2_i386.deb > > None of them contain the kernel modules.zaptel-source contains the modules packed nicely for building with the debian kernel build system.> > Is there a way I can get it to compile the kernel modules?apt-get install kernel-package Do you build a custom kernel or use a standard Debian package? The latter case is slightly more complicated, as you have to build the modles package to mach the exact config of the target kernel. But quite doable. We build for a number of configs and for 2.4 and 2.6 on the same system without even resorting to chroot tricks so far. BTW: did I mention that we have binary packages for standard Debian Sarge kernels in our apt source? -- Tzafrir Cohen | New signature for new address and | VIM is http://tzafrir.org.il | new homepage | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | Space reserved for other protocols | friend
Hermann Wecke
2005-Feb-13 19:28 UTC
[Asterisk-Users] Debian way of compiling zaptel kernel modules
Tzafrir Cohen wrote:> BTW: did I mention that we have binary packages for standard Debian > Sarge kernels in our apt source?zaptel is the only package that never worked for me from apt-get. I need to download, compile and install the kernel (specially because the original debian install is pre 2.4.20), then download all the CVS (or whatever) files for asterisk and zaptel, compile-but-not-install the asterisk and then compile the zaptel. Not terrible, but not quite easy for a beginner. Or did I miss something?
Geoff Nordli
2005-Feb-13 22:26 UTC
[Asterisk-Users] Debian way of compiling zaptel kernel modules
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Tzafrir Cohen > Sent: Friday, February 11, 2005 5:35 PM > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] Debian way of compiling zaptel kernel > modules > > On Thu, Feb 10, 2005 at 09:55:47AM -0800, Geoff Nordli wrote: > > I ran "apt-get -b source zaptel-source" to download and compile the > zaptel > > source. > > > > It successfully compiles and builds the following packages: > > > > libtonezone-dev_1.0.2-2_i386.deb > > libtonezone1_1.0.2-2_i386.deb > > zaptel-source_1.0.2-2_all.deb > > zaptel_1.0.2-2_i386.deb > > > > None of them contain the kernel modules. > > zaptel-source contains the modules packed nicely for building with the > debian kernel build system. > > > > > Is there a way I can get it to compile the kernel modules? > > apt-get install kernel-package > > Do you build a custom kernel or use a standard Debian package? > > The latter case is slightly more complicated, as you have to build the > modles package to mach the exact config of the target kernel. But quite > doable. > > We build for a number of configs and for 2.4 and 2.6 on the same system > without even resorting to chroot tricks so far. > > BTW: did I mention that we have binary packages for standard Debian > Sarge kernels in our apt source? > > -- > Tzafrir CohenI have used a custom kernel in the past. I was hoping that I could just download the kernel-source, and compile the zaptel-source to produce the modules. The zaptel-source compile works, but only the programs get compiled. I am actually running your binaries right now. I just wanted to take more control of the process. Thanks, Geoff