[wellylug] Makefile problem

Phillip Rose rosewong at paradise.net.nz
Wed Dec 14 17:07:33 NZDT 2005


I have tried running the make command on some module files for a new
wireless card, a D-link DWL-G630 rev. D1. There are some problems with that
which I may ask about later, but for now, here's what I'm up against.

My distro: Simply MEPIS 3.3, kernel 2.6.10. The files in question are in 
http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-current.tar.gz

============
$ make
Checking requirements... ok.
Checking kernel configuration... FAILED
Only kernel versions 2.4.x and above are supported.
You have .
make: *** [configcheck] Error 1
^^^^^^^^^^^^^^^^^^^
When I saw that error the first time, I read through the Makefile, and
found these lines:
========
#
# Makefile for the HAL-based Atheros driver.
#
DEPTH=  .
# release tag versioning
-include $(KERNELPATH)/ath_version.mk
export EXTRAVERSION

include Makefile.inc
^^^^^^^^^^^^^^^^^^^^^^^

Looking in Makefile.inc I find:
==================
# The default KERNELPATH points to the directory where the currently
# running kernel was compiled.  Note that the configuration and the
# version of the kernel tree might have changed since then.
KERNELPATH ?= $(shell readlink -f /lib/modules/`uname -r`/build)

ifeq ($(KERNELPATH),)
KERNELPATH = /usr/src/linux
$(warning Default KERNELPATH not found, using $(KERNELPATH))
endif

endif

# sanity check: does KERNELPATH exist?
ifeq ($(wildcard $(KERNELPATH)),)
$(error KERNELPATH: $(KERNELPATH) does not exist)
endif
^^^^^^^^^^^^^^^^^^^^^
Running "cd /lib/modules/`uname -r`/build/" lands me in
/lib/modules/2.6.10/build

The directory /usr/src/linux did not exist, so I created a symlink to the
linux-2.6.10 directory.
ln -s linux-2.6.10 linux

I ran make with the -d option, and the output is too long to include here.
Near the beginning is this output, so it's finding the right source directory.
====================
Got a SIGCHLD; 1 unreaped children.
Reading makefile `hal/public/i386-elf.inc' (search path) (no ~ expansion)...
Reading makefile `BuildCaps.inc' (search path) (no ~ expansion)...
Got a SIGCHLD; 1 unreaped children.
Reading makefile `/usr/src/linux-2.6.10/.config' (search path) (no ~
expansion)...
Updating makefiles....
 Considering target file `/usr/src/linux-2.6.10/.config'.
^^^^^^^^^^^^^^^^^

I also saw previously when doing "make clean" that it couldn't find
version.h. I looked in some old source code and deduced that I could create
one in:
/usr/src/linux/include/linux
That allowed "make clean" to run without errors.

But, in the end make can't figure out the kernel version. I tried moving
the "include Makefile.inc" above the first reference to KERNELPATH, but
that didn't make any difference.  Any ideas? TIA,

--Phillip




More information about the wellylug mailing list