Steven P. Donegan
2004-Nov-28 09:29 UTC
[Asterisk-Users] Asterisk/linux 2.6.9 kernel build failure
Has anyone successfully built Asterisk with linux 2.6.9 kernel? It fails in my zaptel build trying to find a Makefile in the /lib/modules/2.6.9/build directory - thanks.
Brian West
2004-Nov-28 10:31 UTC
[Asterisk-Users] Asterisk/linux 2.6.9 kernel build failure
Symlink /lib/modules/2.6.9/build to /usr/src/linux> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Steven P. Donegan > Sent: Sunday, November 28, 2004 10:30 AM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Asterisk/linux 2.6.9 kernel build failure > > Has anyone successfully built Asterisk with linux 2.6.9 kernel? It fails > in my zaptel build trying to find a Makefile in the > /lib/modules/2.6.9/build directory - thanks. > > _______________________________________________ > 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
Dave Cotton
2004-Nov-28 10:40 UTC
[Asterisk-Users] Asterisk/linux 2.6.9 kernel build failure
On Sun, 2004-11-28 at 08:29 -0800, Steven P. Donegan wrote:> Has anyone successfully built Asterisk with linux 2.6.9 kernel?Yes.> It fails > in my zaptel build trying to find a Makefile in the > /lib/modules/2.6.9/build directory - thanks.Someone posted a patch for the zaptel Makefile and it works fine. I've included a copy, I sorry I don't know who created it. Makefile.patch>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- zaptel/Makefile.orig 2004-10-14 10:24:35.497280408 -0400 +++ zaptel/Makefile 2004-10-14 11:02:09.561772322 -0400 @@ -65,6 +65,7 @@ PRIMARY=torisa #PRIMARY=wcfxo PWD=$(shell pwd) +KVER := $(shell uname -r) all: $(BUILDVER) @@ -72,8 +73,8 @@ linux26: linux26: prereq $(BINS) - @if ! [ -d /usr/src/linux-2.6 ]; then echo "Link /usr/src/linux-2.6 to your kernel sources first!"; exit 1 ; fi - make -C /usr/src/linux-2.6 SUBDIRS=$(PWD) modules + @if ! [ -d /lib/modules/$(KVER)/build ]; then echo "Make sure that you have your kernel build environment at /lib/modules/$(KVER)/build"; exit 1 ; fi + make -C /lib/modules/$(KVER)/build SUBDIRS=$(PWD) modules obj-m := $(MODULESO) ztdummy.o>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>-- Dave Cotton <dcotton@linuxautrement.com>