SUMMARY: Compiling Drivers

From: Charles M. Richmond <cmr_at_iisc.com>
Date: Sat, 29 Aug 1998 10:51:10 -0400

Original question:

> I am trying to compile a driver for DUNIX 4.0D and if I do not
> specify "-DKERNEL" then the MALLOC macro definitions don't work
> and if I do define KERNEL then the cc tries to include the security
> include files and fails to find sec_base.h and others sec*.h files that
> do not exist on this system.

There were no answers from the group, but I determined on my own that the
following works:

cc -c -O2 -DLANGUAGE_C -std0 -g3 -G 4 -I -I. -I.. -I../include
-DIDENT=*CONFIGFILE* -DDEC4100 -DSWAPTYPE=1 -DUERF -DOSF -DCOMPAT_43 -DMACH
-DUFS -DATM -DFFM_FS -DRT_SEM -DKERNEL -D_KERNEL -D_BSD
-signed -Wg,-w2 -compress -MD -no_excpt -Wg,-unroll,1
-Wb,-static -Wco,-nofloat -Olimit 3000 -D__alpha -Umips -UMIPS -c

The "*CONFIGFILE*" should be the name of your config file and the "DEC4100"
should be replaced with your machine type.

---
*****************************************************************************
*  Charles Richmond 	Integrated International Systems Corporation        *
*	  cmr_at_iisc.com	cmr_at_koibito.iisc.com  cmr_at_shore.net		    *
*  Specializing in UNIX, X, Image Processing, and Communications.           *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431            *
*  (617) 367 3151	FAX (617) 723 6861                                  *
*****************************************************************************
Received on Sun Aug 30 1998 - 03:21:32 NZST

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