just another installation problem

Hi,

I had (have) a pb which is probably related to the installation pb Yves
Meaerfeld reported on 12.09.02.

I tried to install comedi-0.7.65 on Linux SuSE 8.0 (Kernel 2.4.18-4GB) 

My pb also appears during "make install" step at "depmod -ae",
but before, I got the following warnings during "make":
...
c -o drivers.o drivers.c
In file included from drivers.c:39:
kvmem.h: In function `uvirt_to_kva':
kvmem.h:66: warning: implicit declaration of function `kmap_pagetable'
...
c -o kvmem.o kvmem.c
In file included from kvmem.c:5:
kvmem.h: In function `uvirt_to_kva':
kvmem.h:66: warning: implicit declaration of function `kmap_pagetable'
...
DEXPORT_SYMTAB -c mite.c
In file included from mite.c:66:
../kvmem.h: In function `uvirt_to_kva':
kvmem.h:66: warning: implicit declaration of function `kmap_pagetable'
...

after "make install", I got the following:
...
/sbin/depmod -ae
depmod: *** Unresolved symbols in
/lib/modules/2.4.18-4GB/comedi/comedi/comedi.o
depmod:         kmap_pagetable
depmod: *** Unresolved symbols in
/lib/modules/2.4.18-4GB/comedi/comedi/drivers/mite.o
depmod:         kmap_pagetable

A look over file kvmem.h doesn't show the above function `kmap_pagetable',
instead the code in line 66 give: ptep = pte_offset(pmd, adr);

After comment out some lines in file kvmem.h like below,
...
static inline unsigned long uvirt_to_kva(pgd_t *pgd, unsigned long adr)
{
	unsigned long ret = 0UL;
	pmd_t *pmd;
	pte_t *ptep, pte;

	if(!pgd_none(*pgd)) {
		pmd = pmd_offset(pgd, adr);
/*
		if (!pmd_none(*pmd)) {
			ptep = pte_offset(pmd, adr);
			pte = *ptep;
			if(pte_present(pte)){
				ret = (unsigned long)
page_address(pte_page(pte));
				ret |= (adr&(PAGE_SIZE-1));
			}
		}
*/
	}
	return ret;
}
...

it was possible to compile and install comedi.

Loading the module ni_pcimio also was possible, only the following message
came up
(but this pb was also reported here before by Edwin du on 24.10.02):
Warning: loading /lib/modules/2.4.18-4GB/comedi/comedi/drivers/mite.o will
taint the kernel: no license

Now, with the vi's one can find in Comedi60waveformVis.tgz, one can start a
measurement with Labview and it seems
to be stable, but I'm a little bit unsatisfied/afraid about this
'uncomment/ignore the problematic code' solution.

Bye, Thorsten

Received on 2002-09-27Z12:22:58