[Q] Compiling Device Drivers

From: Todd Bedell {77299} <tbb_at_swl.msd.ray.com>
Date: Tue, 10 Oct 1995 13:49:19 -0400 (EDT)

I am using the following command to try to compile a device driver...

'cc -D_KERNEL -I/usr/sys/SWLABE -I/usr/sys/include -c DIO_Open.c'

This gives me the following errors...

/usr/lib/cmplrs/cc/cfe: Error: /usr/sys/include/kern/processor.h, line
138: member types cannot be function types or incomplete type.
        long streams_lbolt();
        ---- -------------^
/usr/lib/cmplrs/cc/cfe: Error: /usr/sys/include/machine/pmap.h, line 99:
redeclaration of 'pt_entry_t'; previous declaration at line 62 in file
'/usr/sys/include/machine/machparam.h'
 typedef union pt_entry pt_entry_t;
 ---------------------- ^
/usr/lib/cmplrs/cc/cfe: Error: DIO_Open.c, line 80: 'u' undefined,
reoccurrences will not be reported
      u.uu_spare[0] = 19 ;
 -----^
/usr/lib/cmplrs/cc/cfe: Error: DIO_Open.c, line 94: 'u' undefined,
reoccurrences will not be reported
      u.uu_spare[0] = 6 ;
 -----^


It seems as though system files that I have nothing to do with are producing
these redeclarations.

Could someone please clue me in on this.

Please excuse this question if the answer is obvious, as I rarely get
involved in this type of work.

TIA,

------o------------ ----------------------------------------- -------------
| \ . | Todd Bedell | Email: tbb_at_swl.msd.ray.com |
| 0/) . | Raytheon Company | Phone: 508-858-1206 (dir.ct) |
| |/ . | 50 Applehill Dr. | Disclaimer: My opinions are.my |
| | . | Tewksbury, MA | own, any similarity to anotho. |
| _/ \_. | 01876-0901 | is purely coincidental o |
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Received on Tue Oct 10 1995 - 19:12:07 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT