marshall@jsc.nasa.gov (jay marshall 283-5903) (05/08/91)
-- I downloaded tvtwm (patch level 5) from export.lcs.mit.edu, used imake to build the make file, but get the following messages when I try to "make": cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c gram.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c lex.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c deftwmrc.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c add_window.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c gc.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c list.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c twm.c rm -f parse.o cc -c -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC '-DSYSTEM_INIT_FILE="'' /system.twmrc"' parse.c cc -O -I. -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC -target sun4 -c menus.c "/usr/include/malloc.h", line 40: redeclaration of free *** Error code 1 make: Fatal error: Command failed for target `menus.o' I'm not sure where else "free" would be declared, other than as an extern in twm.h. Can anyone help me figure this out? thanks, Jay ------------------------------------------------------------------------ ------- Jay Marshall | I feel a very unusual sensation - if it marshall@sweetpea.jsc.nasa.gov | is not indigestion, I think it must be | gratitude. | Benjamin Disraeli ------------------------------------------------------------------------ ------- (standard disclaimer)
jody@shell.COM (Jody Winston) (05/08/91)
The man page on SUN OS 4.1.1 says that BSD version of free returns an int and that is what is in /usr/include/malloc.h on line 40. But, tvtwm in twm.h declares free to be void on line 310. You should ifdef this line out. RCS file: RCS/twm.h,v retrieving revision 1.3 diff -r1.3 twm.h 309a310 > #ifndef INTFREE 310a312 > #endif RCS file: RCS/Imakefile,v retrieving revision 1.1 diff -r1.1 Imakefile 24a25 > SpecialObjectRule(menus.o, ,-DINTFREE) Jody Winston jody@shell.com ..!{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!jody Shell Development Company, Bellaire Research Center P.O. Box 481, Room 2103, Houston, TX 77001 (Voice: 713 245-7676)