From owner-freebsd-current Mon Jan 4 08:33:48 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA03115 for freebsd-current-outgoing; Mon, 4 Jan 1999 08:33:48 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from maulwurf.franken.de (maulwurf.franken.de [193.141.110.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA03110 for ; Mon, 4 Jan 1999 08:33:45 -0800 (PST) (envelope-from gaspode.franken.de!tanis@maulwurf.franken.de) Received: by maulwurf.franken.de via rmail with stdio id for current@FreeBSD.ORG; Mon, 4 Jan 1999 17:33:01 +0100 (MET) (Smail-3.2 1996-Jul-4 #1 built DST-May-30) Received: (from tanis@localhost) by gaspode.franken.de (8.9.1/8.8.8) id RAA52891; Mon, 4 Jan 1999 17:30:41 +0100 (CET) (envelope-from tanis) Message-ID: <19990104173039.A16036@gaspode.franken.de> Date: Mon, 4 Jan 1999 17:30:39 +0100 From: German Tischler To: osa@etrust.ru Cc: current@FreeBSD.ORG, luigi@labinfo.iet.unipi.it Subject: Re: Can't compile ELF kernel... References: <19990104155427.A11667@gaspode.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from osa@etrust.ru on Mon, Jan 04, 1999 at 06:33:55PM +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 04, 1999 at 06:33:55PM +0300, osa@etrust.ru wrote: > > On Mon, 4 Jan 1999, German Tischler wrote: > > > On Mon, Jan 04, 1999 at 04:51:22PM +0300, majordom@FreeBSD.ORG wrote: > > > > > > Hello! > > > Today, after cvsup source tree for my 3.0-CURRENT i try to compile > > > kernel in ELF > > > ..... > > > loading kernel > > > ad1848.o: In function `ad1816_attach': > > > ad1848.o(.text+0x1a3): undefined reference to `ad1816_write' > > > ad1848.o(.text+0x1b0): undefined reference to `ad1816_write' > > > ad1848.o(.text+0x1bd): undefined reference to `ad1816_write' > > > ad1848.o(.text+0x1cd): undefined reference to `ad1816_write' > > > ad1848.o(.text+0x1da): undefined reference to `ad1816_write' > > > ad1848.o(.text+0x1e7): more undefined references to `ad1816_write' follow > > > ad1848.o: In function `ad1816_attach': > > > ad1848.o(.text+0x1fd): undefined reference to `ad1816_reinit' > > > ad1848.o(.text+0x203): undefined reference to `ad1816_mixer_reset' > > > *** Error code 1 > > > > > > Stop. > > > > Just tried with a freshly checked out source tree and it worked. > > Try to clean up. > > > what i must clean up? > > # cd /sys/i386/conf > # setenv KERNFORMAT elf > # config -r > # cd ../../compile/ > # make depend > # make > then i c that messages... I just found the bug. Please try the following diff for ad1848.c : (the ad1816 code is only compiles if you config pnp ). --- ad1848.c.orig Mon Jan 4 11:40:13 1999 +++ ad1848.c Mon Jan 4 17:23:15 1999 @@ -79,6 +79,7 @@ static void ad_write_cnt(snddev_info *d, int reg, u_short data); static int ad_read(snddev_info *d, int reg); +#if NPNP > 0 /* ad1816 prototypes */ /* IO primitives */ @@ -97,6 +98,7 @@ static void ad1816_mixer_reset(snddev_info * d); /* ad1816 prototypes end */ +#endif /* * device descriptors for the boards supported by this module. @@ -202,6 +204,8 @@ return mss_detect(dev) ? 8 : 0 ; /* mss uses 8 regs */ } +#if NPNP > 0 + static int ad1816_attach(struct isa_device *dev) { @@ -227,6 +231,8 @@ return 0 ; } +#endif + /* * the address passed as io_base for mss_attach is also the old * MSS base address (e.g. 0x530). The codec is four locations ahead. @@ -243,8 +249,10 @@ d->name, dev->id_unit, d->io_base, d->irq, d->dbuf_out.chan, d->dbuf_in.chan, dev->id_flags); +#if NPNP > 0 if (d->bd_id == MD_AD1816) return ad1816_attach(dev); +#endif dev->id_alive = 8 ; /* number of io ports */ /* should be already set but just in case... */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message