Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2001 15:42:01 +1300
From:      "Dan Langille" <dan@langille.org>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        freebsd-hackers@FreeBSD.ORG, freebsd-doc@FreeBSD.ORG
Subject:   Re: An example script for creating a bootable floppy 
Message-ID:  <200102040222.f142MsR08229@ns1.unixathome.org>
In-Reply-To: <20010204020217.77E523E02@bazooka.unixfreak.org>
References:  Message from "Dan Langille" <dan@langille.org>    of "Sun, 04 Feb 2001 14:20:48 %2B1300." <200102040101.f1411gR08079@ns1.unixathome.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
On 3 Feb 2001, at 18:02, Dima Dorfman wrote:

> > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmiss
> > ing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ans
> > i  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -include
> >  opt_global.h -elf  -mpreferred-stack-boundary=2  ../../kern/kern_sig.c
> > ../../kern/kern_sig.c:359: warning: function declaration isn't a prototype
> > ../../kern/kern_sig.c: In function `osigaction':
> > ../../kern/kern_sig.c:367: dereferencing pointer to incomplete type
> 
> Wild guess: try sticking ``options COMPAT_43'' in the config file.
> This smells of missing 4.3BSD compatibility structures or something.

That got me quite a bit further.  Any ideas about this one please?  It's 
the keyboard isn't it?  From LINT, I added these:

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc0 at isa? port IO_KBD           
device          atkbd0  at atkbdc? irq 1 flags 0x1    
device          psm0    at atkbdc? irq 12


cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-
extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -
include opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
linking kernel
kbd.o: In function `kbd_register':
kbd.o(.text+0x2f6): undefined reference to `kbddriver_set'
kbd.o(.text+0x2fd): undefined reference to `kbddriver_set'

etc...

After that change, I encounted this:

cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-
extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -
include opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
linking kernel
scvidctl.o: In function `sc_set_text_mode':
scvidctl.o(.text+0x19): undefined reference to `vidsw'
scvidctl.o: In function `sc_set_graphics_mode':
scvidctl.o(.text+0x26a): undefined reference to `vidsw'
scvidctl.o: In function `sc_vid_ioctl':
scvidctl.o(.text+0x77f): undefined reference to `vidsw'
scvidctl.o(.text+0x7a3): undefined reference to `vidsw'
scvidctl.o(.text+0x7bc): undefined reference to `vid_get_adapter'
scvidctl.o(.text+0x822): undefined reference to `vid_get_adapter'


..etc.

thanks

--
Dan Langille
pgpkey - finger dan@unixathome.org | http://unixathome.org/finger.php


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




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