Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#71 km compile for ATI AIW Radeon 7500

open
nobody
None
5
2008-02-10
2008-02-10
ramack
No

I have an ATI AIW Radeon 7500 and I am trying to compile km. I have tried two versions, one from the GATOS.sf download and the other from CVS. When compiling km from gatos.sf I get an error that config.h can not be found. When I compile km from CVS, after applying two symbolic links the same error will occur. The text below are from the CVS km.

After downloading km from CVS, I enter make test

# make test
make -C /lib/modules/2.6.22.17-14-bigsmp/build M=/home/ramack/Desktop/gatos/km/CVS modules
make[1]: Entering directory `/usr/src/linux-2.6.22.17-14-obj/i386/bigsmp'
make -C ../../../linux-2.6.22.17-14 O=../linux-2.6.22.17-14-obj/i386/bigsmp modules
CC [M] /home/ramack/Desktop/gatos/km/CVS/km_memory.o
In file included from /home/ramack/Desktop/gatos/km/CVS/km_memory.c:23:
/usr/src/linux-2.6.22.17-14/include/linux/pci.h: In function ‘pci_register_driver’:
/usr/src/linux-2.6.22.17-14/include/linux/pci.h:604: error: ‘KBUILD_MODNAME’ undeclared (first use in this function)
/usr/src/linux-2.6.22.17-14/include/linux/pci.h:604: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.6.22.17-14/include/linux/pci.h:604: error: for each function it appears in.)
make[4]: *** [/home/ramack/Desktop/gatos/km/CVS/km_memory.o] Error 1
make[3]: *** [_module_/home/ramack/Desktop/gatos/km/CVS] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.17-14-obj/i386/bigsmp'
make: *** [all] Error 2

Assigning symbolic links( I found this on a Red Hat forum)

ln -s /usr/src/linux-2.6.22.17-14.$(uname -m) /usr/src/linux
ln -s /usr/src/linux-2.6.22.17-14.$(uname -m) /lib/modules/$(uname -r)/build

Entering make test again.

# make test
make -C /lib/modules/2.6.22.17-14-bigsmp/build M=/home/ramack/Desktop/gatos/km/km modules
make[1]: Entering directory `/usr/src/linux-2.6.22.17-14-obj/i386/bigsmp'
make -C ../../../linux-2.6.22.17-14 O=../linux-2.6.22.17-14-obj/i386/bigsmp modules
CC [M] /home/ramack/Desktop/gatos/km/km/km_api.o
/home/ramack/Desktop/gatos/km/km/km_api.c:22:26: error: linux/config.h: No such file or directory
make[4]: *** [/home/ramack/Desktop/gatos/km/km/km_api.o] Error 1
make[3]: *** [_module_/home/ramack/Desktop/gatos/km/km] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.17-14-obj/i386/bigsmp'
make: *** [all] Error 2

Any help would be appreciated.

Discussion