2 Compiling and installing dosemu

Contents of this section

2.1 What does emu.c:349: parse error before `outfuntype' mean?

James B. MacLean (jmaclean@fox.nstn.ns.ca) reported (12/1/93) that

A fix that works is: Change the 'outfuntype c' parm in line 349 to 'int (*c())(int)', and try again.

[Note: outfuntype is defined in termcap.h. You may have a bad or incomplete termcap.h (termcap.h is not part of dosemu).]

2.2 What does scan.o: Undefined symbol _yywrap mean?

Alan David Modra (alan@spri.levels.unisa.edu.au) reported (2/16/94) that

Flex-2.4.6 generates code that requires linking in libfl.a You need to add -lfl to the linker command line:

  gcc -o par scan.o parse.o -lfl
[Note: edit parse/Makefile to incorporate this change]

2.3 What does sh: -c: line 2: syntax error mean?

(3/18/94)

If the error message is

   install -m 04755 dos /usr/bin
   sh: -c: line 2: syntax error: unexpected end of file
   make: *** [install] Error 2
then you are probably using Slackware. Some people have had success by simply commenting out line 183
   @if [ -f /lib/libemu ]; then rm -f /lib/libemu
of the makefile. (I don't know why this works!) If this does not work for you, you can always just install the "dos" binary by hand
   cp dos /usr/bin/
   chmod 04755 /usr/bin/dos

2.4 Can I use dosemu on a multi-user system?

Corey Sweeney (corey@amiganet.xnet.com) reported (12/8/93) that

If you running dosemu on a system in which more then one person may want to run dosemu, then you may want to change the directory of your hard drive image. Currently in the /etc/dosemu/config file there exists the line saying that the hard drive image is "hdimage". If you change this to /etc/dosemu/hdimage then people do not have to worry about what directory they are in when they run dosemu, and hdimage does not have to be moved each time you upgrade to the next patch level.

If you do do this for multi-user dosemu, then you will want to make the hdimage in /etc/dosemu read-only for everyone but the dosemu administrator.

Note that you can use the new emufs.sys thing to mount a "public" directory and/or a "private" directory (a sub-directory in each person's home directory).

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter