View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1522
|
Posted: Thu Jul 24, 2014 9:10 am Post subject: problems running 16-bit code[solved] |
|
|
Whenever I try running one of my old games under wine I get the following error:
modify_ldt: Invalid argument
err:module:attach_process_dlls "krnl386.exe16" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winevdm.exe" failed, status c0000005
after some googling I found some people mentioning that some update in the linux kernel prevents running 16 bit programs under 64 bit cpus, they've also added that running:
#echo 1 > /proc/sys/abi/ldt16
will allow you to run 16-bit games
my question is:
bash: /proc/sys/abi/ldt16: No such file or directory
sys-kernel/gentoo-sources-3.12.21-r1:3.12.21-r1
what do I have to do to get 16-bit games to run again
Last edited by Adel Ahmed on Thu Jul 24, 2014 11:48 am; edited 1 time in total |
|
Back to top |
|
|
the.root Apprentice
Joined: 29 Apr 2007 Posts: 210 Location: -84.706059324915, -62.4843750666430
|
Posted: Thu Jul 24, 2014 9:54 am Post subject: |
|
|
Can you install a newer kernel? I'm on 3.15.6 and have the "/proc/sys/abi/ldt16" file. According to https://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.12.22 it says they added in support for it as a runtime option in 3.12.22 - which is a newer kernel then you have. I also skimmed some forums where it said it certain 3.13.0 versions had the security feature, but they had removed the runtime option.
http://bugs.winehq.org/show_bug.cgi?id=36664
Also suggest 3.12.21 will not work. There may be patches you can try, I didn't really dig that deep. _________________ Ps = (1.5 x 6 x .75) / {(4/3) (pi) [(31.039 x 10^15) (46.5 x 10^9)]^3}
Seems like a waste.. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Jul 24, 2014 10:14 am Post subject: |
|
|
This problem will be fixed for real in 3.16, once it's out - probably a couple weeks. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2282 Location: Adendorf, Germany
|
Posted: Thu Jul 24, 2014 10:45 am Post subject: |
|
|
16bit? Isn't this something DosBox is for? _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1522
|
Posted: Thu Jul 24, 2014 11:48 am Post subject: |
|
|
excellent, the new sources are working just fine for now
there are some 16 bit windows applications that cannot be run by dosbox
thanks everyone |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2282 Location: Adendorf, Germany
|
Posted: Fri Jul 25, 2014 7:28 am Post subject: |
|
|
blakdeath wrote: | there are some 16 bit windows applications that cannot be run by dosbox | That would be of the windows-3.1[1] era, right?
I wonder, if those programs are still worth to be used, why there isn't any upgrade. Maybe it is possible to contact the author[s] asking to release the sources into public domain? (Yes, I know, those chances are slimmer than slim...) _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Jul 25, 2014 3:14 pm Post subject: |
|
|
wine devs, when prompted on this, said that many win32 programs before 64bit era had still 16bit installers. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1522
|
Posted: Wed Jul 30, 2014 10:43 am Post subject: |
|
|
yup, that era, and it's not about being worth it, it's about old games/nostalgia |
|
Back to top |
|
|
|