From owner-freebsd-questions Sun Dec 31 02:41:36 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA19807 for questions-outgoing; Sun, 31 Dec 1995 02:41:36 -0800 (PST) Received: from albion.loach.org (loach.org [199.233.190.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA19801 for ; Sun, 31 Dec 1995 02:41:30 -0800 (PST) Received: (from alexei@localhost) by albion.loach.org (8.6.12/8.6.9) id CAA06056 for freebsd-questions@freebsd.org; Sun, 31 Dec 1995 02:42:23 GMT From: Alexei Nikolaevich Romanov Message-Id: <199512310242.CAA06056@albion.loach.org> Subject: Matcd compilation To: freebsd-questions@freebsd.org Date: Sun, 31 Dec 1995 02:42:22 +0000 () X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@freebsd.org Precedence: bulk I'm having a nasty time of configuring a new kernel for my freshly upgraded 2.1.0-Release system. While compiling a kernel based on the following messy, rather lame (who has time to fix the little things?) kernel configuration file: # # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks # MODIFIED FOR LOCAL USE -- A. Romanov/TLO # GENERIC,v 1.45.2.3 1995/06/05 21:50:41 jkh Exp # machine "i386" cpu "I486_CPU" ident "JESSIETOE" maxusers 32 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options NFS #Network Filesystem options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 options "SCSI_DELAY=10" #Be pessimistic about Joe SCSI device options SCSI_REPORT_GEOMETRY #report scsi geometry always options BOUNCE_BUFFERS #include support for DMA bounce buffers options UCONSOLE #Allow users to grab the console options KTRACE #Kernel tracing okay options DDB #Kernel debugger enabled. options COMPAT_LINUX #Linux emulation code options "CHILD_MAX=128" # Process limits options "OPEN_MAX=128" options SYSVSHM # System V Style Shared Memory options SYSVSEM # System V Style Semaphores options SYSVMSG # System V Style Message Q's options GATEWAY # Gateway Configuration Option options MROUTING # Multicast routing available. options IPFIREWALL # firewall options IPFIREWALL_VERBOSE # noisy firewall options IPACCT # ip accounting options QUOTA # Disk quotas available # HARDFONTS allows the driver to load an ISO-8859-1 font to replace # the default font in your display adapter's memory. # options HARDFONTS config kernel root on sd0 controller isa0 # # Audio drivers: `snd', `sb', `pas', `gus', `pca' # # snd: Voxware sound support code # sb: SoundBlaster PCM - SoundBlaster, SB Pro, SB16, ProAudioSpectrum # sbxvi: SoundBlaster 16 # sbmidi: SoundBlaster 16 MIDI interface # pas: ProAudioSpectrum PCM and MIDI # gus: Gravis Ultrasound - Ultrasound, Ultrasound 16, Ultrasound MAX # gusxvi: Gravis Ultrasound 16-bit PCM # gusmax: Gravis Ultrasound MAX (currently broken) # mss: Microsoft Sound System # opl: Yamaha OPL-2 and OPL-3 FM - SB, SB Pro, SB 16, ProAudioSpectrum # uart: stand-alone 6850 UART for MIDI # mpu: Roland MPU-401 stand-alone card # # Beware! The addresses specified below are also hard-coded in # i386/isa/sound/sound_config.h. If you change the values here, you # must also change the values in the include file. # # pca: PCM audio through your PC speaker # # If you don't have a lpt0 device at IRQ 7, you can remove the # ``conflicts'' specification in the appropriate device entries below. # # Controls all sound devices controller snd0 device pas0 at isa? port 0x388 irq 7 drq 6 vector pasintr device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr # conflicts device opl0 at isa? port 0x388 conflicts controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 disk fd1 at fdc0 drive 1 tape ft0 at fdc0 drive 2 controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 disk wd1 at wdc0 drive 1 controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd2 at wdc1 drive 0 disk wd3 at wdc1 drive 1 controller aha0 at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr controller scbus0 device sd0 device st0 device cd0 #Only need one of these, the code dynamically grows controller matcd0 at isa? port 0x260 bio # syscons is the default console driver, resembling an SCO console device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr options "MAXCONS=16" # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? port "IO_KBD" tty irq 1 vector pcrint #options "PCVT_FREEBSD=210" # pcvt running on FreeBSD 2.1 options XSERVER # include code for XFree86 device npx0 at isa? port "IO_NPX" irq 13 vector npxintr device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr #device lpt0 at isa? port? tty irq 7 vector lptintr # Order is important here due to intrusive probes, do *not* alphabetize # this list of network interfaces until the probes have been fixed. # Right now it appears that the ie0 must be probed before ep0. See # revision 1.20 of this file. #device lnc0 at isa? port 0x300 net irq 10 drq 0 vector lncintr device ed0 at isa? port 0x300 net irq 15 iomem 0xd8000 vector edintr pseudo-device loop pseudo-device ether pseudo-device log #pseudo-device sl 1 # ijppp uses tun instead of ppp device #pseudo-device ppp 1 pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's pseudo-device snp 3 I get the following most bogus result: albion# make cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I../../../include -DJESSIETOE -DI486_CPU -DXSERVER -DMAXCONS=16 -DHARDFONTS -DQUOTA -DIPACCT -DIPFIREWALL_VERBOSE -DIPFIREWALL -DMROUTING -DGATEWAY -DSYSVMSG -DSYSVSEM -DSYSVSHM -DOPEN_MAX=128 -DCHILD_MAX=128 -DCOMPAT_LINUX -DDDB -DKTRACE -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_REPORT_GEOMETRY -DSCSI_DELAY=10 -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 ../../i386/isa/matcd/matcd.c In file included from ../../i386/isa/matcd/matcd.c:354: ../../i386/isa/matcd/matcddrv.h:171: redefinition of `matcderrors' ../../i386/isa/matcd/matcd.h:171: `matcderrors' previously defined here ../../i386/isa/matcd/matcd.c:437: `NMATCD' undeclared here (not in a function) ../../i386/isa/matcd/matcd.c:437: size of array `matcd_data' has non-integer type ../../i386/isa/matcd/matcd.c:461: `NMATCD' undeclared here (not in a function) ../../i386/isa/matcd/matcd.c:485: `NMATCD' undeclared here (not in a function) ../../i386/isa/matcd/matcd.c:485: size of array `kdc_matcd' has non-integer type ../../i386/isa/matcd/matcd.c: In function `matcdopen': ../../i386/isa/matcd/matcd.c:639: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c:639: (Each undeclared identifier is reported only once ../../i386/isa/matcd/matcd.c:639: for each function it appears in.) ../../i386/isa/matcd/matcd.c: In function `matcdclose': ../../i386/isa/matcd/matcd.c:830: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c: In function `matcdstrategy': ../../i386/isa/matcd/matcd.c:896: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c: In function `matcd_probe': ../../i386/isa/matcd/matcd.c:1255: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c: In function `matcd_blockread': ../../i386/isa/matcd/matcd.c:1915: warning: `dp' might be used uninitialized in this function *** Error code 1 Stop. albion# Has anyone else experienced similar troubles compiling with that driver, and, if so, what do I need to fix where, or (god forbid), do I need to go and try to search it out myself? Thank you-- Alexei