MHonArc test archive

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

Problems compiling the PCA-200e module





	Hi --

	I have been trying to the the PCA-200e driver compiled for 
	Linux-ATM.  My first series of attempts was with the 2.1.117
	kernel, Linux-ATM 0.47, and PCA-200e 0.4.  I was running into
	a problem with either a kernel that was too large to install
	when I created a mostly-non-modular kernel, or a large number
	of modules with unresolved symbols when I made a mostly-modular
	kernel.  These modules were not solely related to Linux-ATM
	modules, but the Linux-ATM modules did also have unresolved
	symbols.

	Thinking that the problem was with the module code in the kernel
	itself (since it is a developmental kernel), I upgraded to the most
	recent kernel that I could find, 2.1.125.  I then made the Linux-ATM
	0.47 kernel patch (found no rejects), and then applied the PCA-200e
	0.4 patch as described in the INSTALL file.

	During the "make modules" portion of the kernel/module building
	and installation, the linker fails with the following error:

make[2]: Entering directory `/usr/src/linux-2.1.125/drivers/atm'
ld -m elf_i386 -r -o pca_200e.o pca200e.o pca200e_firm.o 
/usr/src/linux/include/ linux/modversions.h dummy
/usr/src/linux/include/linux/modversions.h: file not recognized: File format 
not recognized
make[2]: *** [pca_200e.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.1.125/drivers/atm'
make[1]: *** [_modsubdir_atm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.1.125/drivers'
make: *** [_mod_drivers] Error 2

	I was able to successfully link pca_200e.o by issuing the following
	command:

ld -m elf_i386 -r -o pca_200e.o pca200e.o pca200e_firm.o

	in the <linux_Kernel_src>/drivers/atm directory.  When I then
	copied the module to the /lib/modules/2.1.125/atm directory and ran
	depmod -a on it, I got the following error:

/lib/modules/2.1.125/atm/pca_200e.o: unresolved symbol(s)

	depmod -e returns the following:

/lib/modules/2.1.125/atm/pca_200e.o: unresolved symbol(s)
        atm_charge
/lib/modules/2.1.125/atm/pca_200e.o:
 
	I found the declaration of atm_charge() in linux/atmdev.h, and this
	file is #included in pca200e.h and pca200e.c, hence my confusion.

	What do I need to do to enable depmod to resolve the atm_charge
	symbol within the pca200e module?

	thanks in advance for your help,

	gordon

-- 

Gordon M. Taylor		    gordon@cmf.nrl.navy.mil
Washington, D.C.	   Naval Research Lab Connecton Machine Facility

"There was nothing like an appeal to honor.  It was a virtue that all craved,
even those who lacked it.  Fundamentally, honor was itself a debt, a code of
behavior, a promise, something inside yourself that you owed to the others 
who saw it in you."				-- Thomas L. Clancy, Jr.




Home | Main Index | Thread Index