From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075324106534.tru64-unix-managers.marc@archive.invalid> From: Todd Bedell {77299} Date: Tue, 10 Oct 1995 17:49:19 +0000 To: tru64-unix-managers Subject: [Q] Compiling Device Drivers X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075324106534 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@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 | --------------------------------------------------------------------------- ---------------------------------------------------------------------------