Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems running 16-bit code[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Thu Jul 24, 2014 9:10 am    Post subject: problems running 16-bit code[solved] Reply with quote

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
View user's profile Send private message
the.root
Apprentice
Apprentice


Joined: 29 Apr 2007
Posts: 210
Location: -84.706059324915, -62.4843750666430

PostPosted: Thu Jul 24, 2014 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Thu Jul 24, 2014 10:14 am    Post subject: Reply with quote

This problem will be fixed for real in 3.16, once it's out - probably a couple weeks.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2273
Location: Bardowick, Germany

PostPosted: Thu Jul 24, 2014 10:45 am    Post subject: Reply with quote

16bit? Isn't this something DosBox is for?
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Thu Jul 24, 2014 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2273
Location: Bardowick, Germany

PostPosted: Fri Jul 25, 2014 7:28 am    Post subject: Reply with quote

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:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Fri Jul 25, 2014 3:14 pm    Post subject: Reply with quote

wine devs, when prompted on this, said that many win32 programs before 64bit era had still 16bit installers.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Wed Jul 30, 2014 10:43 am    Post subject: Reply with quote

yup, that era, and it's not about being worth it, it's about old games/nostalgia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum