Compiling errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I am struggling to compile this driver it keeps giving me this error:

Checking for kernel headers
  ... in /usr/src/linux: nope
  ... in /usr/src/kernel-headers-2.6.9-1.681_FC3: nope
  ... in /usr/src/linux-2.6.9: nope
  ... in /usr/src/linux-2.6.9-1.681_FC3: nope
  ... in /lib/modules/2.6.9-1.681_FC3/build: Kernel headers found 
in /lib/modules/2.6.9-1.681_FC3/build
  using /lib/modules/2.6.9-1.681_FC3/build
Checking kernel header version
Test program for figuring out kernel header version failed

I have set the two env variables but it still complains.

[root@check39 source]# echo $SOURCE_VERSION
2.6.9-1.681_FC3
[root@check39 source]# echo $KVERSION
2.6.9-1.681_FC3
[root@check39 source]#

I have had a look at the test here it is below.
What is wrong with this test, or what must I do on my system for it to pass.


echo "Checking kernel header version"
KVERSION="conftest.kversion"
CFLAGS="-I$KERNEL_SOURCE_TREE/include"
if test "$cross_compiling" = yes; then
  echo "Cross compiling not supported"
else
  cat > conftest.$ac_ext <<EOF
#line 1036 "configure"
#include "confdefs.h"
#include "$KERNEL_SOURCE_TREE/include/linux/autoconf.h"
#include "$KERNEL_SOURCE_TREE/include/linux/config.h"
#include "$KERNEL_SOURCE_TREE/include/linux/version.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
int main(int argc,char** argv){
  FILE *of;
  if ( (of=fopen("$KVERSION","w")) == NULL ){
fprintf(stdout,"Error while writing kernel header version file: %s\n",strerr
or(errno));
    return(1);
  }
  fprintf(of,"%s",UTS_RELEASE);
  close(of);
  return(0);
}

EOF
if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && 
t
est -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  SOURCE_VERSION=`cat $KVERSION`

else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  echo "Test program for figuring out kernel header version failed"; exit 1

Thanks
-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux