LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   m64py error on Slackware64 with multilib installed. (https://www.linuxquestions.org/questions/slackware-14/m64py-error-on-slackware64-with-multilib-installed-4175470030/)

Daedra 07-18-2013 02:35 AM

m64py error on Slackware64 with multilib installed.
 
I am in the process of upgrading my mupen64plus over at SBo.org to 2.0. Everything is done and it works fine, however I decided to try the m64py GUI package that was already submitted. Everything works fine on 32-bit but on 64 with multilib installed I get this error

Traceback (most recent call last):
File "/usr/bin/m64py", line 40, in <module>
from m64py.frontend.mainwindow import MainWindow
File "/usr/lib64/python2.7/site-packages/m64py/frontend/mainwindow.py", line 27, in <module>
from m64py.frontend.worker import Worker
File "/usr/lib64/python2.7/site-packages/m64py/frontend/worker.py", line 26, in <module>
from m64py.core.core import Core
File "/usr/lib64/python2.7/site-packages/m64py/core/core.py", line 28, in <module>
from m64py.core.vidext import vidext
File "/usr/lib64/python2.7/site-packages/m64py/core/vidext.py", line 20, in <module>
from SDL import *
File "/usr/lib64/python2.7/site-packages/SDL/__init__.py", line 30, in <module>
import SDL.dll
File "/usr/lib64/python2.7/site-packages/SDL/dll.py", line 226, in <module>
_dll = SDL_DLL('SDL', 'SDL_Linked_Version')
File "/usr/lib64/python2.7/site-packages/SDL/dll.py", line 60, in __init__
self._dll = getattr(cdll, library)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 435, in __getattr__
dll = self._dlltype(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/libSDL-1.2.so.0.11.3: wrong ELF class: ELFCLASS32

Obviously the 32bit library is being picked up instead of the 64 in /usr/lib64. Is this something that needs to fixed at compile time or can it be fixed after the package is installed. I am not the maintainer of the m64py package, but I am just looking for an answer so I can give him a heads up.

phenixia2003 07-18-2013 03:34 AM

Hello,

Quote:

Originally Posted by Daedra (Post 4992384)
I am in the process of upgrading my mupen64plus over at SBo.org to 2.0. Everything is done and it works fine, however I decided to try the m64py GUI package that was already submitted. Everything works fine on 32-bit but on 64 with multilib installed I get this error

[..snip...]
OSError: /usr/lib/libSDL-1.2.so.0.11.3: wrong ELF class: ELFCLASS32

Obviously the 32bit library is being picked up instead of the 64 in /usr/lib64. Is this something that needs to fixed at compile time or can it be fixed after the package is installed. I am not the maintainer of the m64py package, but I am just looking for an answer so I can give him a heads up.

Have you tried to change LDFLAGS as explained here in slackbuilds's FAQ ?

--
SeB

Daedra 07-18-2013 03:47 AM

It's a python build, not C or C++. So in this instance that would not apply.


All times are GMT -5. The time now is 03:39 AM.