Version history: Version 2.4a Version 2.2a Version 2.1c (16-bit color support) Version 2.1b (WAIS support+fixed temp file bug) Version 2.1a (plain vanilla) ==================== This is a compilation of Mosaic 2.4 for NeXT m68 hardware. Thanks to Gary Ritchie for a couple of fixes, Brian Hobbs for figuring out the temp file hack, and the coXist folks for the fix to run in 16-bin. This binary will run under Co-Xist; I am told that other configurations also work. --- Hal.Varian@umich.edu Hal Varian voice: 313-764-2364 Dept of Economics fax: 313-764-2364 Univ of Michigan Ann Arbor, MI 48109-1220 ====================== What has to be changed: You have to change 3 files: the top level Makefile, src/mo-www.c and libwww2/HTFile.c. For 16-bit color support you also need to change libhtmlw/HTMLimages.c. Here are the diffs for the Mosaic 2.4 files =========================================top level Makefile diffs Note: I have compiled in freeWAIS support. Comment these lines out if you don't want WAIS support. This is the diff with Makefile.sun. diff Makefile ../Mosaic-2.4/Makefile.sun 17c17 < #CC = gcc --- > CC = gcc 38c38 < sysconfigflags = -DNEXT -DMOTIF1_2 --- > sysconfigflags = 41c41 < #syslibs = -lPW -lsun -lmalloc --- > syslibs = -lPW -lsun -lmalloc 47c47 < syslibs = --- > syslibs = 68c68 < xinc = -I/usr/include/X11 -I/NextDeveloper/Headers/bsd/sys --- > # xinc = -I/usr/include/X11 81c81 < xlibs = -L/usr/lib/X11 -lXm -lXmu -lXt -lX11 --- > # xlibs = -L/usr/lib/X11 -lXm -lXmu -lXt -lX11 113,119c113,119 < #dtmmachtype = sun < #dtmdirs = libdtm libnet < #dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a < #dtmflags = -DHAVE_DTM -I.. -I../libnet < #hdfdir = /hdf/install/sun < #hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a < #hdfflags = -DHAVE_HDF -I$(hdfdir)/include --- > dtmmachtype = sun > dtmdirs = libdtm libnet > dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a > dtmflags = -DHAVE_DTM -I.. -I../libnet > hdfdir = /hdf/install/sun > hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a > hdfflags = -DHAVE_HDF -I$(hdfdir)/include 137c137 < waisroot =/Users/hal/Programming/freeWAIS-0.202 --- > waisroot = /X11/marca/freeWAIS-0.1-sun =================================================src/mo-www.c diffs diff src/mo-www.c ../Mosaic-2.4/src/mo-www.c 63,65d62 < /* HRV */ < int tmp_file_iteration = 0; < 766,768c763 < /* char *cwd = getcwd (NULL, 128); */ < char blah[1024]; /* HRV change */ < char *cwd = getwd (blah); --- > char *cwd = getcwd (NULL, 128); 789,790c784 < free (cwd); < --- > 811,812c805,806 < /* char *tmp = (char *)malloc (sizeof (char) * L_tmpnam); < tmpnam (tmp); */ --- > char *tmp = (char *)malloc (sizeof (char) * L_tmpnam); > tmpnam (tmp); 814,818d807 < char *tmp = (char *)malloc (sizeof (char) * MAXPATHLEN); < sprintf(tmp, "/tmp/Mosaic_tmp_file.%d", tmp_file_iteration); < tmp_file_iteration++; < < 863c852 < #if defined(ultrix) || defined(VMS) || defined(M4310) || defined(vax) --- > #if defined(ultrix) || defined(VMS) || defined(NeXT) || defined(M4310) || defined(vax) ===================================================libwww2/HTFile.c diffs diff libwww2/HTFile.c ../Mosaic-2.2/libwww2/HTFile.c40,44c40,44 < #define S_IRUSR 400 < #define S_IWUSR 200 < #define S_IXUSR 100 < #define S_IXGRP 010 < #define S_IXOTH 001 --- > #define S_IRUSR 400 > #define S_IWUSR 200 > #define S_IXUSR 100 > #define S_IXGRP 010 > #define S_IXOTH 001 ===================================================libhtmlw/HTMLimages.c diff HTMLimages.c HTMLimages.c~ 366,371d365 < < #if defined(NeXT) && defined(m68k) < temp = (((img_info->reds[(int)*datap] >> 0)& 0xf000) | < ((img_info->greens[(int)*datap] >> 4)& 0x0f00) | < ((img_info->blues[(int)*datap] >> 8)& 0x00f0)); < #else /* anything else */