libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Discussions related to using VirtualBox on Linux hosts.
Post Reply
dranach
Posts: 1
Joined: 31. May 2010, 17:53
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Debian Lenny
Location: Vlaanderen

libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by dranach »

I upgraded recently to Virtualbox PUEL v3.2 with apt.
My system is Ubuntu 10.04 32bits (upgraded from 9.10).
I don't know what's the cause, but when I start Virtualbox from the terminal, I get following message:

Code: Select all

VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/libQtOpenGL.so.4: undefined symbol: _ZN14QPaintEngineEx15drawRoundedRectERK6QRectFddN2Qt8SizeModeE
I did the following, without success:
- uninstall and downgrade to 3.1.8
- uninstall of 3.1.8 and re-installed 3.2.
- re-install of libqt4-opengl (made me also re-install all the packages which depended on qt...)

I'm not knowledgeable enough to continue; I did already too much damage, which resulting in a re-install all the dependend packages. (I haven't checked yet on loss of data..)

Any help on how to solve this issue is greatly appreciated.
Thanks,
Toni
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by frank »

What is the output of

Code: Select all

dpkg -l libqt4-opengl
? And what is the output of

Code: Select all

dpkg -l virtualbox-3.2
?
haze
Posts: 3
Joined: 2. Jun 2010, 20:44
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: ubuntu windows

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by haze »

hmm, seems i have the same symptoms (os + vb version), so here is what i get:

Code: Select all

haze@myhost:~$ dpkg -l libqt4-opengl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libqt4-opengl  4:4.6.2-0ubunt Qt 4 OpenGL module
and

Code: Select all

haze@myhost:~$ dpkg -l virtualbox-3.2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  virtualbox-3.2 3.2.0-61806~Ub Sun VirtualBox
Don't really know what this mean tough...
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by frank »

Ok. And could you please post the ouput of

Code: Select all

dpkg -s libqtgui4
as well?
haze
Posts: 3
Joined: 2. Jun 2010, 20:44
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: ubuntu windows

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by haze »

Code: Select all

haze@myhost:~$ dpkg -s libqtgui4
Package: libqtgui4
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 11952
Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>
Architecture: i386
Source: qt4-x11
Version: 4:4.6.2-0ubuntu5
Replaces: libqt4-core (<< 4.0.1-3), libqt4-designer (<< 4.4.0~beta1-1), libqt4-gui (<< 4.4.0), qt4-designer (<< 4.1.4)
Depends: libaudio2, libc6 (>= 2.11), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.3.5), libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.12.0), libice6 (>= 1:1.0.0), libjpeg62, libmng1 (>= 1.0.3-1), libpng12-0 (>= 1.2.13-4), libqtcore4 (= 4:4.6.2-0ubuntu5), libsm6, libstdc++6 (>= 4.1.1), libtiff4, libx11-6 (>= 0), libxext6 (>= 0), libxrender1, zlib1g (>= 1:1.1.4), fontconfig
Suggests: qt4-qtconfig
Conflicts: libqt4-designer (<< 4.4.0~beta1-1)
Description: Qt 4 GUI module
 Qt is a cross-platform C++ application framework. Qt's primary feature
 is its rich set of widgets that provide standard GUI functionality.
 .
 The QtGui module extends QtCore with GUI functionality.
Homepage: http://www.qtsoftware.com
Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
tnx for your follow-up!
Last edited by haze on 5. Jun 2010, 00:33, edited 1 time in total.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by frank »

I cannot explain that. Did you already test the 3.2.2 package?

The missing symbol _ZN14QPaintEngineEx15drawRoundedRectERK6QRectFddN2Qt8SizeModeE which is required by /usr/lib/libQtOpenGL.so.4 is provided by /usr/lib/libQtGui.so.4 and your comments show that you have the same version of these libraries installed as we have in our build jail.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by Sasquatch »

This "supR3HardenedMainGetTrustedMain" has happened quite a few times in the past and is really hard to fix. Can you try to reinstall all Qt libraries? Maybe one got broken or something and a reinstall of the packages will fix it.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
haze
Posts: 3
Joined: 2. Jun 2010, 20:44
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: ubuntu windows

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't start

Post by haze »

After reading this post:
http://ubuntuforums.org/showthread.php?t=1469364

doing

Code: Select all

sudo rm /usr/local/lib/beidqt/libQtGui.so.4
sudo rm /usr/local/lib/beidqt/libQtCore.so.4 
did the trick...

Fyi:
I indeed installed beid (Belgian eID card application) a few days before discovering the problem with the QT-apps, like mentioned in the linked post. As the orginal poster seems to be from Belgium too (Vlaanderen), i suppose he might be in the same situation ...

Tnx for all your support!
AmitVyas
Posts: 3
Joined: 15. Jul 2012, 08:22

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't st

Post by AmitVyas »

I faced the same issue following was the solution ... hope work for you also ....
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /lib/libQtOpenGL.so.4: undefined symbol: _ZNK14QWidgetPrivate17hasHeightForWidthEv

first i did

ldd /usr/lib/virtualbox/VirtualBox.so

libQtCore.so.4 => /usr/local/bin/ztemtApp/bin/libQtCore.so.4 (0xb69ec000)
libQtGui.so.4 => /usr/local/bin/ztemtApp/bin/libQtGui.so.4 (0xb5f15000)

it was pointing the wrong libs in ( /usr/local/bin/ztemtApp/bin) so i have copied the latest lib from
/lib directory to /usr/local/bin/ztemtApp/bin and linked with latest one

#previous
lrwxrwxrwx. 1 root root 18 Jul 7 2010 libQtCore.so -> libQtCore.so.4.4.0
lrwxrwxrwx 1 root root 18 Jul 8 12:56 libQtCore.so.4 -> libQtCore.so.4.4.0
lrwxrwxrwx. 1 root root 18 Jul 7 2010 libQtCore.so.4.4 -> libQtCore.so.4.4.0
# copied the libQtCore.so.4.8.2 and linked as follwo
ln -s libQtCore.so.4.8.2 libQtCore.so
ln -s libQtCore.so.4.8.2 libQtCore.so.4
ln -s libQtCore.so.4.8.2 libQtCore.so.4.4
#now
lrwxrwxrwx 1 root root 18 Jul 15 11:24 libQtCore.so -> libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 18 Jul 15 11:27 libQtCore.so.4 -> libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 18 Jul 15 11:27 libQtCore.so.4.4 -> libQtCore.so.4.8.2


#previous
lrwxrwxrwx. 1 root root 17 Jul 7 2010 libQtGui.so -> libQtGui.so.4.4.0
lrwxrwxrwx 1 root root 17 Jul 8 12:56 libQtGui.so.4 -> libQtGui.so.4.4.0
ln -s libQtGui.so.4.8.2 libQtGui.so
ln -s libQtGui.so.4.8.2 libQtGui.so.4
now
lrwxrwxrwx 1 root root 17 Jul 15 11:29 libQtGui.so -> libQtGui.so.4.8.2
lrwxrwxrwx 1 root root 17 Jul 15 11:29 libQtGui.so.4 -> libQtGui.so.4.8.2
zeilenleser
Posts: 1
Joined: 12. Mar 2014, 10:57

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't st

Post by zeilenleser »

I faced the same without a solution on Ubuntu Precise (12.04) amd64.

Code: Select all

VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4: undefined symbol: _ZNK14QWidgetPrivate17hasHeightForWidthEv
It makes no difference if I install the default Ubuntu package (apt-get install virtualbox) or if I install from the Oracle repository (download virtualbox org / virtualbox / debian precise contrib) (apt-get install virtualbox-4.3 or virtualbox-4.2 or virtualbox-4.1).

In my case the libQtOpenGL.so.4 is located in /usr/lib/x86_64-linux-gnu (it's a link to libQtOpenGL.so.4.8.1 in the same folder). I can't find any other libQtOpenGL.so.* versions on my system nor do i find a package with libQtOpenGL.so.4.8.2. Reinstalling libqt4-opengl didn't help.

UPDTE:
There is another libQtGui lib (as mentioned in a previous post) that seems to cause the trouble. Instead of copying the libs around, I did the following steps to solve this issue:

Code: Select all

sudo su
cd /etc/ld.so.conf.d/
touch virtualbox.conf
echo /usr/lib/x86_64-linux-gnu/ >> virtualbox.conf
ldconfig -n /usr/lib/x86_64-linux-gnu
exit
TBose
Posts: 1
Joined: 1. Jan 2016, 09:11

Re: libqtopengl.so.4 undefined symbol: virtualbox doesn't st

Post by TBose »

AmitVyas wrote:I faced the same issue following was the solution ... hope work for you also ....
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /lib/libQtOpenGL.so.4: undefined symbol: _ZNK14QWidgetPrivate17hasHeightForWidthEv

first i did

ldd /usr/lib/virtualbox/VirtualBox.so

libQtCore.so.4 => /usr/local/bin/ztemtApp/bin/libQtCore.so.4 (0xb69ec000)
libQtGui.so.4 => /usr/local/bin/ztemtApp/bin/libQtGui.so.4 (0xb5f15000)

it was pointing the wrong libs in ( /usr/local/bin/ztemtApp/bin) so i have copied the latest lib from
/lib directory to /usr/local/bin/ztemtApp/bin and linked with latest one

#previous
lrwxrwxrwx. 1 root root 18 Jul 7 2010 libQtCore.so -> libQtCore.so.4.4.0
lrwxrwxrwx 1 root root 18 Jul 8 12:56 libQtCore.so.4 -> libQtCore.so.4.4.0
lrwxrwxrwx. 1 root root 18 Jul 7 2010 libQtCore.so.4.4 -> libQtCore.so.4.4.0
# copied the libQtCore.so.4.8.2 and linked as follwo
ln -s libQtCore.so.4.8.2 libQtCore.so
ln -s libQtCore.so.4.8.2 libQtCore.so.4
ln -s libQtCore.so.4.8.2 libQtCore.so.4.4
#now
lrwxrwxrwx 1 root root 18 Jul 15 11:24 libQtCore.so -> libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 18 Jul 15 11:27 libQtCore.so.4 -> libQtCore.so.4.8.2
lrwxrwxrwx 1 root root 18 Jul 15 11:27 libQtCore.so.4.4 -> libQtCore.so.4.8.2


#previous
lrwxrwxrwx. 1 root root 17 Jul 7 2010 libQtGui.so -> libQtGui.so.4.4.0
lrwxrwxrwx 1 root root 17 Jul 8 12:56 libQtGui.so.4 -> libQtGui.so.4.4.0
ln -s libQtGui.so.4.8.2 libQtGui.so
ln -s libQtGui.so.4.8.2 libQtGui.so.4
now
lrwxrwxrwx 1 root root 17 Jul 15 11:29 libQtGui.so -> libQtGui.so.4.8.2
lrwxrwxrwx 1 root root 17 Jul 15 11:29 libQtGui.so.4 -> libQtGui.so.4.8.2
I would like to thank Amit Vyas for putting up this solution which works for Fedora 22 with little change. Instead of copying the file at the site I made a link from its original location in lib64 hence avoiding duplicate files. The solution by zeilenleser does not work on my system.
I would also like to inform the forum that this problem arose from installing ZTE modem for Reliance netconnect and also effected Kile (have not tested anything else yet).
Post Reply