Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70719 - 32bit emulation does not work for a specific program.
Summary: 32bit emulation does not work for a specific program.
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-10 15:07 UTC by Byeong-taek Lee
Modified: 2005-04-25 11:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Byeong-taek Lee 2004-11-10 15:07:46 UTC
I was using a program, mricro (http://www.psychology.nottingham.ac.uk/staff/cr1/linux.html), for my work.
The program was made in 32 bit application.
And the program maybe be made by kylix.
Anyway, mricro works on linux 32-bit mode, and ms-windows.
However, I found that it did not work on amd 64bit mode of gentoo linux.
So I contacted to the author of the program, but I did not get a luck.
The author said to me that the program works well on his SUSE 64 bit linux.
Probably, the problem was caused from the emulation library.
When I run the program, I get the following messages.

Runtime error 234 at 0805D1DF

The package includes following files

btlee@btlee ~/pkg/tmp $ ls -al *
-rwxr-xr-x  1 btlee users 53688 Nov 14  2001 startmricro

mricro:
total 14184
drwxr-xr-x  2 btlee users    4096 May 16 11:10 .
drwxrwxr-x  3 btlee users    4096 Nov 10 14:47 ..
-rw-r--r--  1 btlee users     348 Apr 28  2002 aal.hdr
-rw-r--r--  1 btlee users  162419 Sep  7  2003 aal.img.gz
-rw-r--r--  1 btlee users     768 Apr 28  2002 aal.lut
-rw-r--r--  1 btlee users    2713 Apr 28  2002 aal.txt
-rwxr-xr-x  1 btlee users   62480 Mar 18  2002 bet
-rw-r--r--  1 btlee users     348 May 23  2003 betmask.hdr
-rw-r--r--  1 btlee users   11957 May 23  2003 betmask.img.gz
-rw-r--r--  1 btlee users     768 Aug 26  2000 BLACKBDY.LUT
-rw-r--r--  1 btlee users     768 Aug 26  2000 blackbody.lut
-rw-r--r--  1 btlee users     768 Nov  1  2000 bone.lut
-rw-r--r--  1 btlee users     348 May 24  2001 brodmann.hdr
-rw-r--r--  1 btlee users  165524 Apr 28  2002 brodmann.img.gz
-rw-r--r--  1 btlee users     768 Apr 28  2002 brodmann.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 cardiac.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 CARDIAC.LUT
-rw-r--r--  1 btlee users     348 Mar 18  2002 ch2bet.hdr
-rw-r--r--  1 btlee users 1317629 Sep 24  2003 ch2bet.img.gz
-rw-r--r--  1 btlee users     348 Mar 14  2003 ch2.hdr
-rw-r--r--  1 btlee users 3513573 May 27  2002 ch2.img.gz
-rw-r--r--  1 btlee users     768 Sep 29  2003 cortex.lut
-rw-------  1 btlee users      28 Oct 28  2003 .directory
-rw-r--r--  1 btlee users     768 Aug 26  2000 flow.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 FLOW.LUT
-rw-r--r--  1 btlee users     768 May 10  2004 French.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 GE_color.lut
-rw-r--r--  1 btlee users     768 Aug 28  2000 Gold.lut
-rw-r--r--  1 btlee users     768 Nov  8  2001 gooch.lut
-rw-r--r--  1 btlee users     768 Mar 11  2001 hotiron.lut
-rw-r--r--  1 btlee users     768 Mar 11  2001 HOTIRON.lut
-rwxr-xr-x  1 btlee users 7526184 Jul 31  2002 libborqt-6.9-qt2.3.so
-rwxr-xr-x  1 btlee users 1567252 May 16 11:06 mribin
-rw-r--r--  1 btlee users    1474 Oct 28  2003 mricropng.png
-rw-r--r--  1 btlee users     768 Aug 26  2000 NIH_fire.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 NIH_ice.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 NIH.lut
-rw-r--r--  1 btlee users     768 Nov  1  2000 pink.lut
-rw-r--r--  1 btlee users     768 Sep  1  2000 Rainramp.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 spectrum.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 SPECTRUM.LUT
-rw-r--r--  1 btlee users     768 Sep 22  2003 surface.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 X_hot.lut
-rw-r--r--  1 btlee users     768 Aug 26  2000 X_rain.lut

Maybe libborqt-6.9-qt2.3.so file does not work on my system.
In my system, several emulation packages were already installed.

*  app-emulation/emul-linux-x86-glibc
      Latest version available: 1.1
      Latest version installed: 1.1
      Size of downloaded files: 3,238 kB
      Homepage:    http://www.gentoo.org/
      Description: GNU C Library for emulation of 32bit x86 on amd64
      License:     GPL-2

*  app-emulation/emul-linux-x86-gtklibs
      Latest version available: 1.2
      Latest version installed: 1.2
      Size of downloaded files: 2,183 kB
      Homepage:    
      Description: Gtk+ 1/2 for emulation of 32bit x86 on amd64
      License:     GPL-2

*  app-emulation/emul-linux-x86-qtlibs
      Latest version available: 1.1
      Latest version installed: 1.1
      Size of downloaded files: 9,342 kB
      Homepage:    
      Description: QT 2/3 libraries for emulation of 32bit x86 on amd64
      License:     GPL-2

*  app-emulation/emul-linux-x86-sdl
      Latest version available: 1.0
      Latest version installed: 1.0
      Size of downloaded files: 147 kB
      Homepage:    
      Description: 32bit SDL emulation for amd64
      License:     GPL-2

*  app-emulation/emul-linux-x86-soundlibs
      Latest version available: 1.0
      Latest version installed: 1.0
      Size of downloaded files: 453 kB
      Homepage:    http://www.gentoo.org/
      Description: Sound libraries for emulation of 32bit x86 on amd64
      License:     GPL-2

*  app-emulation/emul-linux-x86-xlibs
      Latest version available: 1.2-r1
      Latest version installed: 1.2-r1
      Size of downloaded files: 4,645 kB
      Homepage:    http://www.gentoo.org/
      Description: X11R6 libraries for emulation of 32bit x86 on amd64
      License:     GPL-2


Furthermore, I cannot build the library file(libborqt-6.9-qt2.3.so).
The author said that he also got the binary.
I wonder if I don't know what the problem is and if I describe the problem properly.
If you want to know more information, let me know it. It will be my pleasure.
thanks in advance

Reproducible: Always
Steps to Reproduce:
1. unzip package (tar xvzf mricrox.tar.gz)
2. just run the program (./startmricro)
3. 
Actual Results:  
I get the same message (Runtime error 234 at 0805D1DF )


Expected Results:  
the program will be loaded and I will enjoy it.

You can get the binary at the following URL.
http://www.psychology.nottingham.ac.uk/staff/cr1/mricrox.tar.gz
Comment 1 Byeong-taek Lee 2004-12-19 23:14:24 UTC
I found a workaound.
I removed emul-linux-x86-baselibs and emul-linux-glibc package.
And then I downgraded emul-linux-x86-baselibs from 1.2.2-rc1 to 1.0 and reinstalled emul-linux-glibc package.
And I made so simple script, which run the program (mricro).
script as follows.

btlee@btlee ~/pkg $ cat run.sh
#!/bin/sh
export LD_LIBRARY_PATH=/lib32:/emul/linux/x86/usr/X11R6/lib:/emul/linux/x86/usr/qt/3/lib:/home/btlee/pkg/mricro && /home/btlee/pkg/startmricro


When i run the progrm after reinstalling, I encountered new error messages!
The error messages is 'libjpeg.so.62: cannot open shared object file: No such file or directory
'. !!!
So I copied the file 'libjpeg.so.62.0.0' from another 32 bit machine into my directory, which has several binary package.
And restart and then look at the problem solved. :)

Comment 2 Byeong-taek Lee 2004-12-28 01:14:19 UTC
I am in an awkward dilemma.
If I installed baselibs-1.0, openoffice-bin doesn't allow xim-input, which is nabi in my case.
If I installed baselibs-1.2.2-r1 and emul-linux-x86-glibc at the same time instead of emul-linux-x86-baselibs-1.0, I can write other language in openoffice-bin. However, in this case, I cannot launch mricro program.
Furthermore, I upgraded kernel from 2.6.9-r4 to 2.6.10-r1 of gentoo-dev-sources.
After I upgraded kernel, mricro didn't work under emul-linux-x86-baselibs-1.0.
I wanna know what the plan about the upgrade of emul-linux package.
Thanks.
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-04-25 11:29:04 UTC
looks like your binary is linked against old versions of some libs which were in the emul-*-1.0 packages but now are obsolete. we can't do much here, because most packages require newer libs. also, the program you're speaking of isn't in portage.. best would be to ask the author to release a version linked against more recent libs
Comment 4 Herbie Hopkins (RETIRED) gentoo-dev 2005-04-25 11:45:18 UTC
Actually I think this is likely to be a duplicate of bug 86861. To fix, do either of:
1. upgrade to 2005.0 and emerge >=sys-libs/glibc-2.3.4.20050125-r1
or
2. export GCONV_PATH=/usr/lib32/gconv prior to running the app.
Comment 5 Byeong-taek Lee 2005-04-25 11:51:12 UTC
Actually, I forgot my posting.
I alreadt have applied GCONV_PATH for the solution, and it works well.
Thanks for your attention and helps.