Re: when installing comedi 0.7.66 --> "make" after "make config" fails

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 10 May 2003 03:05 pm, mirko.fischer_at_s2000.tu-chemnitz.de wrote:
> /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include -DMODULE" MAKING_MODULES=1
> modules
> make[1]: Entering directory `/root/comedi-0.7.66/comedi'
> ld -m elf_i386 -r -o comedi.o comedi_fops.o proc.o range.o drivers.o
> comedi_ksyms.o
> proc.o(.rodata+0x0): multiple definition of `comedi_debug'
> comedi_fops.o(.rodata+0x0): first defined here
> range.o(.rodata+0x0): multiple definition of `comedi_debug'
> comedi_fops.o(.rodata+0x0): first defined here
> drivers.o(.rodata+0x0): multiple definition of `comedi_debug'
> comedi_fops.o(.rodata+0x0): first defined here
> comedi_ksyms.o(.rodata+0x0): multiple definition of `comedi_debug'
> comedi_fops.o(.rodata+0x0): first defined here
> make[1]: *** [comedi.o] Error 1
> make[1]: Leaving directory `/root/comedi-0.7.66/comedi'
> make: *** [_mod_comedi] Error 2
> ----- Ende der weitergeleiteten Nachricht -----

This usually only happens when debugging is turned off, but you seem to have 
it on?  Anyways, the fix is to change the second declaration of comedi_debug 
in comedidev.h to static, like

#ifdef CONFIG_COMEDI_DEBUG  
extern int comedi_debug; 
#else  
static const int comedi_debug = 0;  
#endif

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+wo755vihyNWuA4URAnnoAJ0ciAIExLGH/9zW9EMy1S649OLvtgCeOFm4
+Vtqr3daHUaOnyPuOASknPY=
=KvCw
-----END PGP SIGNATURE-----

Received on 2003-05-14Z17:46:09