On Tue, Nov 01, 2005 at 02:46:06PM +0000, Tony Mountifield wrote: > In article <[EMAIL PROTECTED]>, > Robert Webb <[EMAIL PROTECTED]> wrote: > > > > Hi all.. > > > > I just setup a test box with Debian running kernel 2.6. > > Went to CVS and did a checkout of the new beta 2 release > > using the command: cvs checkout -r v1-2-0-beta2 zaptel > > libpri asterisk asterisk-addons asterisk-sounds. > > > > I then compiled libpri fine and moved on to zaptel. Did a > > make clean then make install and get the following error: > > > > /bin/sh: line 1: [: argument expected
What is this from? > > make -C SUBDIRS=/usr/src/zaptel modules Note the empty value of KSRC > > make: *** SUBDIRS=/usr/src/zaptel: No such file or And thus the expected error from make. > > directory. Stop. > > make: *** [linux26] Error 2 > > hecate:/usr/src/zaptel# > > > > I am not up to speed on make or its errors, but it looks > > like to me that it is complaining about /usr/src/zaptel > > not being there or that modules is missing. AS you can see > > from the last line there is a /usr/src/zaptel directory. > > Or is it something with my 2.6 kernel and a modules > > directory or something. > > No, the problem is that you don't have the kernel development files > installed. I don't know what you need to apt in Debian kernel-headers-`uname -r` . (a zaptel package of beta2 suitable for m-a should be ready very soon) > : in Fedora > you would need to install kernel-devel or kernel-sources depending > on which release of Fedora. > > The clue is the TWO spaces between -C and SUBDIRS. The original > makefile command is: > > $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules > > But $(KSRC) is evaluating as empty. > > The "argument expected" line is an error in an earlier makefile > line: > > @if [ -z "$(KSRC)" -o ! -d $(KSRC) ]; then echo "You do not appear..... That's a bug. It should have failed the build. > > The second $(KSRC) should also be enclosed in quotes, so as not to > cause a syntax error when $(KSRC) is empty or undefined. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- 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
