Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 351915

Summary: app-emulation/virtualbox-bin-4.0.0-r1: VBoxPython2_7.so doesn't load
Product: Gentoo Linux Reporter: Francisco J. Vazquez <dv>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED OBSOLETE    
Severity: normal CC: proxy-maint, swapon
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Francisco J. Vazquez 2011-01-17 14:47:43 UTC
The VBoxPython2_7.so module included in virtualbox-bin-4.0.0-r1 doesn't load, so the python bindings don't work. It seems related to usc4 and usc2 unicode support:

fran@phenom ~ $ PYTHONPATH=/opt/VirtualBox/ python
Python 2.7.1 (r271:86832, Jan 17 2011, 15:13:38) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> __import__("VBoxPython2_7")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /opt/VirtualBox/VBoxPython2_7.so: undefined symbol: PyUnicodeUCS2_AsUTF16String
>>> 

I tried compiling python-2.7 with usc2 AND usc4 support by changing the ebuild from this:

echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2"

to this:

echo "--enable-unicode=ucs4" && echo "--enable-unicode=ucs2"

but then I get an undefined symbol in /usr/lib64/python2.7/site-packages/gtk-2.0/glib/_glib.so. Recompiling pygobject does not help in this case.

virtualbox-4.0.0-r1 (OSE) does not have this problem.

Reproducible: Always