I don't agree with this patch yet... It's the distro's fault for doing this wrong and I don't feel we have to work around it. The few people I talked to have Symlinks the "build" to /usr/src/linux or the like. Then again I may be wrong anyone know what is the right(tm) thing to do here is?
bkw > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Dave Cotton > Sent: Sunday, November 28, 2004 11:41 AM > To: Asterisk List > Subject: Re: [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 <[EMAIL PROTECTED]> > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users