[OpenAFS] Compile Problems

Ken Aaker kenaaker@silverbacksystems.com
Thu, 04 Nov 2004 10:43:43 -0600


This is a multi-part message in MIME format.
--------------000405000300080509050104
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

>
>
>Hi,
>
>On Wed, 3 Nov 2004, Horst Birthelmer wrote:
>
>  
>
>>>> > make[5]: Entering directory `/usr/src/linux-2.6.8-24'
>>>> > Makefile:465: .config: No such file or directory
>>>> >
>>>      
>>>
>>>
>>> You need the appropriate configured kernel sources.
>>> As you can see above you don't have a ".config" file which tells you
>>> haven't configured your kernel.
>>> We cannot build a kernel module against an unknown kernel  ;-) 
>>>
>>> Horst
>>>
>>    
>>
>
>With SuSE, you have the actual kernel-configuration stored in
> /proc/config.gz
>I suppose you have the kernel-source rpm of the running kernel installed (since the directory exists), if not do so first.
>
>Then, I suggest you do :
>
>cd /usr/src/linux-2.6.8-24 (or the appropriate directory from the new kernel-source rpm)
>zcat /proc/config.gz > .config
>make menuconfig
> --exit it immediately
>make dep
>
>and then try to compile the client again.
>I don't know if there are some redundant steps in the procedure up there,
>but at least it works for me.
>
>Christof Hanke
>
>
>_______________________________________________
>OpenAFS-info mailing list
>OpenAFS-info@openafs.org
>https://lists.openafs.org/mailman/listinfo/openafs-info
>  
>


Also on SuSE, you can do a make cloneconfig and it will do the whole 
process for you.

You also need to have a vmlinux kernel to link the kernel modules 
against. So you need to at least make vmlinux.

Ken Aaker


--------------000405000300080509050104
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote type="cite">
  <div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 16px;" lang="x-western">
  <pre wrap="">Hi,

On Wed, 3 Nov 2004, Horst Birthelmer wrote:

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap=""><span class="moz-txt-citetags">&gt; &gt; </span>make[5]: Entering directory `/usr/src/linux-2.6.8-24'
<span class="moz-txt-citetags">&gt; &gt; </span>Makefile:465: .config: No such file or directory
<span class="moz-txt-citetags">&gt; &gt;</span>
      </pre>
    </blockquote>
    <pre wrap=""><span class="moz-txt-citetags">&gt;</span>
<span class="moz-txt-citetags">&gt; </span>You need the appropriate configured kernel sources.
<span class="moz-txt-citetags">&gt; </span>As you can see above you don't have a ".config" file which tells you
<span class="moz-txt-citetags">&gt; </span>haven't configured your kernel.
<span class="moz-txt-citetags">&gt; </span>We cannot build a kernel module against an unknown kernel <span
 class="moz-smiley-s3"><span> ;-) </span></span>
<span class="moz-txt-citetags">&gt;</span>
<span class="moz-txt-citetags">&gt; </span>Horst
<span class="moz-txt-citetags">&gt;</span>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
With SuSE, you have the actual kernel-configuration stored in
 /proc/config.gz
I suppose you have the kernel-source rpm of the running kernel installed (since the directory exists), if not do so first.

Then, I suggest you do :

cd /usr/src/linux-2.6.8-24 (or the appropriate directory from the new kernel-source rpm)
zcat /proc/config.gz &gt; .config
make menuconfig
 --exit it immediately
make dep

and then try to compile the client again.
I don't know if there are some redundant steps in the procedure up there,
but at least it works for me.

Christof Hanke


_______________________________________________
OpenAFS-info mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:OpenAFS-info@openafs.org">OpenAFS-info@openafs.org</a>
<a class="moz-txt-link-freetext"
 href="https://lists.openafs.org/mailman/listinfo/openafs-info">https://lists.openafs.org/mailman/listinfo/openafs-info</a>
  </pre>
  </div>
</blockquote>
<br>
<br>
Also on SuSE, you can do a make cloneconfig and it will do the whole
process for you.<br>
<br>
You also need to have a vmlinux kernel to link the kernel modules
against. So you need to at least make vmlinux.<br>
<br>
Ken Aaker<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>

--------------000405000300080509050104--