Skip to contentSkip to conversation

Dosemu 1.1.5 Binaries?

DISCUSSION Peter Celella 6 participants 14 messages Jul 13, 2003 – Jul 15, 2003

lore
Share & tools
lore
#0 lore raw

Is there any reason not to produce binaries for the "unstable" releases of dosemu - specifically dosemu-1.1.5? I'm presently using the 1.0.2 binary under Redhat 9 and it seems to work fine. I'd love to upgrade, but whenever I try to run the latest versions after compiling, they always bomb out whenever I try to run a dos program. The same happens when I try any rpm's for the later versions. (I keep getting some error about IPC not being compiled in kernel)

I was hoping if I tried a binary (if it existed) for 1.1.5, there would be some hope of it working. Is this possible? And might there be binaries of the latest versions of Dosemu coming out in the foreseeable future?

Thanks

#1 lore raw

I use 1.1.5 with rh9 and it works and compiles ok. How does it fail?

Quoted 21 lines · Peter Celella

Is there any reason not to produce binaries for the "unstable" releases of dosemu - specifically dosemu-1.1.5? I'm presently using the 1.0.2 binary under Redhat 9 and it seems to work fine. I'd love to upgrade, but whenever I try to run the latest versions after compiling, they always bomb out whenever I try to run a dos program. The same happens when I try any rpm's for the later versions. (I keep getting some error about IPC not being compiled in kernel)

I was hoping if I tried a binary (if it existed) for 1.1.5, there would be some hope of it working. Is this possible? And might there be binaries of the latest versions of Dosemu coming out in the foreseeable future?

Thanks

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 4 lines

I use 1.1.5 with rh9 and it works and compiles ok. How does it fail?

If I compile with linkstatic off and x on in compiletime-settings, I can get dosemu both to compile and install. Unfortunately, when I try to run any dos program, dosemu immediately closes and I get the following error message in the terminal:

ERROR: MAPPING: cannot get IPC shared mem (Invalid argument)

This may have the following reasons:
- you do not have IPC configured into the kernel
- the limits are to low for the amount of memory you requested in /etc/dosemu.conf. In this case either decrease the XMS/EMS/DPMI amount in /etc/dosemu.conf or increase the kernel limits such as 'echo 67108864 >/proc/sys/kernel/shmmax'

If I compile with linkstatic on and x off, dosemu also compiles and installs, but of course I have no x support. I can run dos programs in this case in the terminal, but besides not being the recommended way to run dosemu, I don't have any mouse support.

Any ideas?

#3 lore raw

I have xdosemu working, I never changed linkstatic. I did try using this option before, and i'm not sure if xdosemu worked with it since I never tested it, but using this setting didn't seem to make any noticable difference in performance or anything else.

Quoted 29 lines · Peter Celella
Quoted 4 lines

I use 1.1.5 with rh9 and it works and compiles ok. How does it fail?

If I compile with linkstatic off and x on in compiletime-settings, I can get dosemu both to compile and install. Unfortunately, when I try to run any dos program, dosemu immediately closes and I get the following error message in the terminal:

ERROR: MAPPING: cannot get IPC shared mem (Invalid argument)

This may have the following reasons:
- you do not have IPC configured into the kernel
- the limits are to low for the amount of memory you requested in /etc/dosemu.conf. In this case either decrease the XMS/EMS/DPMI amount in /etc/dosemu.conf or increase the kernel limits such as 'echo 67108864 >/proc/sys/kernel/shmmax'

If I compile with linkstatic on and x off, dosemu also compiles and installs, but of course I have no x support. I can run dos programs in this case in the terminal, but besides not being the recommended way to run dosemu, I don't have any mouse support.

Any ideas?

#4 lore raw

I did try to compile with the standard compiletime-settings (this has linkstatic off and x on). I assume that this is also what you did, correct? If so, you just untarred the dosemu distribution, ran 'make', and then as su, ran 'make install' - right? This is also what I have done, also using Redhat 9. But doing the above, this is when I get that IPC error describe below - also, when the dosemu window closes, 'Segmentation fault' is then printed to the terminal screen.

I take it that you didn't have these same problems and are also running Redhat 9. If so, is there anything different you have installed that gives you the good luck that you are having? Or are there any other ideas you might have?

Quoted 38 lines · Justin Zygmont

I have xdosemu working, I never changed linkstatic. I did try using this option before, and i'm not sure if xdosemu worked with it since I never tested it, but using this setting didn't seem to make any noticable difference in performance or anything else.

Quoted 29 lines · Peter Celella
Quoted 4 lines

I use 1.1.5 with rh9 and it works and compiles ok. How does it fail?

If I compile with linkstatic off and x on in compiletime-settings, I can get dosemu both to compile and install. Unfortunately, when I try to run any dos program, dosemu immediately closes and I get the following error message in the terminal:

ERROR: MAPPING: cannot get IPC shared mem (Invalid argument)

This may have the following reasons:
- you do not have IPC configured into the kernel
- the limits are to low for the amount of memory you requested in /etc/dosemu.conf. In this case either decrease the XMS/EMS/DPMI amount in /etc/dosemu.conf or increase the kernel limits such as 'echo 67108864 >/proc/sys/kernel/shmmax'

If I compile with linkstatic on and x off, dosemu also compiles and installs, but of course I have no x support. I can run dos programs in this case in the terminal, but besides not being the recommended way to run dosemu, I don't have any mouse support.

Any ideas?

#5 lore raw
In reply to Justin Zygmont

you are correct. I never had any of those problems and I have built 1.1.5 on serveral different installs. I don;t know what the problem can be. I've already got the binary tarred, so I guess I could try sending that if you really need.

Quoted 43 lines · Justin Zygmont

I have xdosemu working, I never changed linkstatic. I did try using this option before, and i'm not sure if xdosemu worked with it since I never tested it, but using this setting didn't seem to make any noticable difference in performance or anything else.

Quoted 19 lines · Peter Celella
Quoted 4 lines

I use 1.1.5 with rh9 and it works and compiles ok. How does it fail?

If I compile with linkstatic off and x on in compiletime-settings, I can get dosemu both to compile and install. Unfortunately, when I try to run any dos program, dosemu immediately closes and I get the following error message in the terminal:

ERROR: MAPPING: cannot get IPC shared mem (Invalid argument)

This may have the following reasons:
- you do not have IPC configured into the kernel
- the limits are to low for the amount of memory you requested in /etc/dosemu.conf. In this case either decrease the XMS/EMS/DPMI amount in /etc/dosemu.conf or increase the kernel limits such as 'echo 67108864 >/proc/sys/kernel/shmmax'

Quoted 10 lines

If I compile with linkstatic on and x off, dosemu also compiles and installs, but of course I have no x support. I can run dos programs in this case in the terminal, but besides not being the recommended way to run dosemu, I don't have any mouse support.

Any ideas?

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

I'd love to know what the problem is also. Could it be hardware related? I'm using a Dell Inspiron 8200 laptop. It's handled everything else fine with Linux so far?

Another thing - I have a directory in my home directory named 'mydos' where I've put freedos. I also have the binary for dosemu 1.0.2 here, so even though 1.1.5 isn't working, I can still cd to this directory and start xdosemu by typing ./xdosemu. I have been pointing 1.1.5 in /etc/dosemu/dosemu.conf to this directory for the hard disk image. It sees everything in this freedos fine, but it has the problem running the programs that I described. Could this be somehow related to the problem running 1.1.5?

I'd love to get this straightened out so that I can apply any future updates to dosemu, but I'd love to get a copy of that Redhat 9 dosemu-1.1.5 binary, if you don't mind sharing it. How do I use it? Just unpack it to the same directory I'm using now for 1.0.2, I would guess, right? Anyway, I'd appreciate if you could send it along to:

[email protected]

Thanks

Quoted 7 lines · Justin Zygmont

you are correct. I never had any of those problems and I have built 1.1.5 on serveral different installs. I don;t know what the problem can be. I've already got the binary tarred, so I guess I could try sending that if you really need.

#8 lore raw
In reply to Peter Celella

Hi there,

Quoted 11 lines · Peter Celella

when I try to run any dos program, dosemu immediately closes and I get the following error message in the terminal:

ERROR: MAPPING: cannot get IPC shared mem (Invalid argument)

This may have the following reasons:
- you do not have IPC configured into the kernel
- the limits are to low for the amount of memory you requested in /etc/dosemu.conf. In this case either decrease the XMS/EMS/DPMI amount in /etc/dosemu.conf or increase the kernel limits such as 'echo 67108864 >/proc/sys/kernel/shmmax'

[snip]

Quoted 1 line

Any ideas?

Well there are a couple in the error message...

Have you checked that you have IPC configured in the kernel? Have you checked that it is in fact /etc/dosemu.conf which is being used (error messages are not always trustworthy in my experience:), and that the amount of memory requested in there is reasonable? Have you checked the amount of memory available?

73,
Ged.

#7 lore raw
In reply to Peter Celella

Hello again,

Quoted 8 lines · Peter Celella

Another thing - I have a directory in my home directory named 'mydos' where I've put freedos. I also have the binary for dosemu 1.0.2 here, so even though 1.1.5 isn't working, I can still cd to this directory and start xdosemu by typing ./xdosemu. I have been pointing 1.1.5 in /etc/dosemu/dosemu.conf to this directory for the hard disk image. It sees everything in this freedos fine, but it has the problem running the programs that I described. Could this be somehow related to the problem running 1.1.5?

It might be that the two dosemu installations have interfered with each other. The trouble is that some things have changed and some haven't so it's difficult to know where the problem might be. If I were doing it, I'd delete the lot (including all the dosemu-related and freedos-related files that start with a dot like .dosemurc and ~/.dosemu and the same in places like /etc (and strange places like /usr/share if you have them)), and start over from scratch.

Incidentally I never had much luck with FreeDos, I gave up with it and used MSDOS which has never given me any real trouble.

73,
Ged.

#9 lore raw
In reply to Ged Haywood

The IPC in the kernel thing is what has me confused. I've searched everywhere and can't find anything telling me what this is or how to check it. Do you know how to check if IPC is configured in the kernel? And if not, how to go about doing so?

/etc/dosemu.conf should be what's being used, since when I make changes there, there acted upon.

The memory shouldn't be a problem - I use the same amount when running the binary.

When I get some time, I may just clean everything out as you suggest and start all over again.

Thanks

Quoted 10 lines

Have you checked that you have IPC configured in the kernel? Have you checked that it is in fact /etc/dosemu.conf which is being used (error messages are not always trustworthy in my experience:), and that the amount of memory requested in there is reasonable? Have you checked the amount of memory available?

73,
Ged.

#10 lore raw

Hi there,

Quoted 3 lines · Peter Celella

The IPC in the kernel thing is what has me confused. I've searched everywhere and can't find anything telling me what this is or how to check it. Do you know how to check if IPC is configured in the kernel?

It should be in the .config file which was used to compile your kernel.

The basics for compiling a kernel (and many other bits of software) are:

1. You run a script or somehow produce a file called ".config" which
2. Is used by "make" when you compile the kernel.

The script is often called "Configure" or something like that.

The .config contains truckloads of information about your machine (it might be a PC, and Alpha, a Vax...) You can move a .config from one machine to another if they are exactly the same, but that's tricky. You can use a .config for one machine on a different machine if you edit it or somehow make it suitable. But best to make one each time, there's less room for error and it's easy, there's a script. I always use "make menuconfig" for Linux. For goodness' sake don't use the old "make config", it's terrible.

From something a friend said about a wireless network we were working on, I seem to remember that for V9, RedHatt bowled us a googly in that the .config you get isn't what they used to compile the kernel you're using when you boot. You may need to find out more about that, I don't have a RedHat system here at home and my office is 1,000 miles away. :)

HTH

73,
Ged.

#11 lore raw
In reply to Peter Celella
Quoted 4 lines · Peter Celella

The IPC in the kernel thing is what has me confused. I've searched everywhere and can't find anything telling me what this is or how to check it. Do you know how to check if IPC is configured in the kernel? And if not, how to go about doing so?

I found this directory /proc/sysvipc on my machine. Not actually knowing anything, I would guess that this is somehow related to the presence of that IPC thing. Do you have a directory with that name?

Quoted 8 lines

ERROR: MAPPING: cannot get IPC shared mem (Invalid argument)

This may have the following reasons:
- you do not have IPC configured into the kernel
- the limits are to low for the amount of memory you requested in /etc/dosemu.conf. In this case either decrease the XMS/EMS/DPMI amount in /etc/dosemu.conf or increase the kernel limits such as 'echo 67108864 >/proc/sys/kernel/shmmax'

Did you take a look at /proc/sys/kernel/shmmax? For example, I get:

$ cat /proc/sys/kernel/shmmax
33554432

meaning 32 Mb shared memory. So, I need to have the total sum of $_xms, $_ems and $_dpmi to be less or equal to 32768 (kb) to fit in the shared memory, or I can do 'echo 67108864 >/proc/sys/kernel/shmmax' to get more shm (64 Mb, in that case) for dosemu.

#12 lore raw
In reply to Peter Celella
Quoted 4 lines · Peter Celella

The IPC in the kernel thing is what has me confused. I've searched everywhere and can't find anything telling me what this is or how to check it. Do you know how to check if IPC is configured in the kernel? And if not, how to go about doing so?

if the DOSEMU 1.0.2 binaries work then IPC is there; you're only difference is in the libc used (glibc 2.3 vs. libc5 and maybe dosemu.conf settings. If you run xdosemu then DOSEMU uses more IPC than without X (VGA memory).

export LD_ASSUME_KERNEL=2.2.5
sometimes seems to do wonders on RH 9.

Also check if you're low on disk space in /tmp or $TMPDIR -- if there is not enough "shmmax" memory for "mapshm" then DOSEMU creates a large file for "mapfile".

as to failed static linking you'd have to look at config.log, at the lines following XCloseDisplay.

Bart

#13 lore raw
In reply to Peter Celella
Quoted 8 lines · Peter Celella

The IPC in the kernel thing is what has me confused. I've searched everywhere and can't find anything telling me what this is or how to check it. Do you know how to check if IPC is configured in the kernel? And if not, how to go about doing so?

/etc/dosemu.conf should be what's being used, since when I make changes there, there acted upon.

Quoted 8 lines

The memory shouldn't be a problem - I use the same amount when running the binary.

When I get some time, I may just clean everything out as you suggest and start all over again.

Thanks

use ipcs
this will show ipc info (man ipcs)
cheers