Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2002 11:36:16 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Matthew Jacob <mjacob@feral.com>
Cc:        Peter Wemm <peter@netplex.com.au>, hackers@freebsd.org
Subject:   RE: multilpe ddb_regs definitions
Message-ID:  <XFMail.020116113616.jhb@FreeBSD.org>
In-Reply-To: <Pine.BSF.4.21.0201161100480.7823-100000@beppo>

next in thread | previous in thread | raw e-mail | index | archive | help

On 16-Jan-02 Matthew Jacob wrote:
> 
> I've had problems compiling alpha kernels for the last week or so- this
> occurs (with or w/o DDB optioned in).
> 
> subr_pcpu.o: In function `pcpu_init':
> /tstsys/alpha/compile/GPLUS/../../../kern/subr_pcpu.c(.data+0x8): multiple
> definition of `ddb_regs'
> kern_mutex.o:/tstsys/alpha/compile/GPLUS/../../../kern/kern_mutex.c:127:
> first
> defined here
> subr_witness.o: In function `witness_init':
> /tstsys/alpha/compile/GPLUS/../../../kern/subr_witness.c:349: multiple
> definition of `ddb_regs'
> kern_mutex.o:/tstsys/alpha/compile/GPLUS/../../../kern/kern_mutex.c:127:
> first
> defined here
> tty_cons.o: In function `cnadd':
> /tstsys/alpha/compile/GPLUS/../../../kern/tty_cons.c:199: multiple definition
> of `ddb_regs'
> kern_mutex.o:/tstsys/alpha/compile/GPLUS/../../../kern/kern_mutex.c:127:
> first
> defined here
> machdep.o: In function `alpha_init':
> /tstsys/alpha/compile/GPLUS/../../../alpha/alpha/machdep.c:527: multiple
> definition of `ddb_regs'
> kern_mutex.o:/tstsys/alpha/compile/GPLUS/../../../kern/kern_mutex.c:127:
> first
> defined here
> 
> 
> I haven't really tracked down what is different or broken, but I notice that
> ddb_regs is defined as common storage in <machine/db_machdep.h> (whether DDB
> is optioned to exist or not).
> 
> Instead, shouldn't that be an 'extern' reference and ddb_regs put some place
> like machdep.c along with the other DDB option'd vars?

Yes.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020116113616.jhb>