<div dir="ltr"><span id="result_box" class="" lang="en"><span class="">Hi</span> <span class="">here</span> <span class="">again,</span> <span class="">I&#39;ve tried</span> <span class="">both ways<br><br>[root@shark dahdi-linux-2.6.3-rc1]# KSRC=/usr/src/linux-headers-2.6.32-358.6.2.el6.x86_64 make<br>

make -C drivers/dahdi/firmware firmware-loaders<br>make[1]: Entering directory `/usr/src/dahdi-linux-2.6.3-rc1/drivers/dahdi/firmware&#39;<br>make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.3-rc1/drivers/dahdi/firmware&#39;<br>

You do not appear to have the sources for the 2.6.32-358.6.2.el6.x86_64 kernel installed.<br>make: *** [modules] Error 1<br><br><br>[root@shark dahdi-linux-2.6.3-rc1]# make KSRC=/usr/src/linux-headers-2.6.32-358.6.2.el6.x86_64<br>

make -C drivers/dahdi/firmware firmware-loaders<br>make[1]: Entering directory `/usr/src/dahdi-linux-2.6.3-rc1/drivers/dahdi/firmware&#39;<br>make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.3-rc1/drivers/dahdi/firmware&#39;<br>

You do not appear to have the sources for the 2.6.32-358.6.2.el6.x86_64 kernel installed.<br>make: *** [modules] Error 1<br><br><br></span></span></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/4 Tzafrir Cohen <span dir="ltr">&lt;<a href="mailto:tzafrir.cohen@xorcom.com" target="_blank">tzafrir.cohen@xorcom.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jun 04, 2013 at 01:33:56PM -0600, troxlinux wrote:<br>
</div><div class="im">&gt; thnk Russ , I have seen the Makefile, but I see many KSRC, where exactly would<br>
&gt; put<br>
&gt;<br>
&gt; KVERS:=$(shell uname -r)<br>
&gt; endif<br>
&gt; ifndef KSRC<br>
&gt;   ifneq (,$(wildcard /lib/modules/$(KVERS)/build))<br>
&gt;     KSRC:=/lib/modules/$(KVERS)/build<br>
&gt;   else<br>
&gt;     KSRC_SEARCH_PATH:=/usr/src/linux<br>
&gt;     KSRC:=$(shell for dir in $(KSRC_SEARCH_PATH); do if [ -d $$dir ]; then<br>
&gt; echo $$dir; break; fi; done)<br>
&gt;   endif<br>
&gt; endif<br>
<br>
</div>make KSRC=/full/path/to/kernel/headers/directory<br>
<br>
Makefiles allow you to override variables in the command line: if you<br>
run &#39;make KSRC=whatever&#39;, the variable KSRC is defined, and hence make<br>
will not get into the part between &#39;ifndef KSRC&#39; and the corresponding<br>
&#39;endif&#39;.<br>
<br>
BTW: this is mentioned in the README of dahdi-linux:<br>
<a href="http://docs.tzafrir.org.il/dahdi-linux/#_kernel_source_headers" target="_blank">http://docs.tzafrir.org.il/dahdi-linux/#_kernel_source_headers</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
               Tzafrir Cohen<br>
icq#16849755              <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406           mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a>  <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>rickygm<br><br><a href="http://gnuforever.homelinux.com">http://gnuforever.homelinux.com</a>
</div>