appmenu-qt doesn't work with 32-bit apps on 64-bit system

Bug #1001621 reported by Jactry Zeng
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Unity
Invalid
Undecided
Unassigned
appmenu-qt
Fix Released
Wishlist
Unassigned
appmenu-qt (Ubuntu)
Fix Released
Wishlist
Unassigned
unity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I run a software which it write with and build in 32bit system in a 64bit system.
It can't work a global meun and the HUD.

I test this in Ubuntu 12.04 64bit,and the version of unity is 5.12.0.
And we can reproduce it run the little program (attachment) in 64bit sysytem which I write it with Qt and build in 32 bit system.
(You may should install ia32-libs to support 32bit software in 64bit system)

And this is the output information:

Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: wrong ELF class: ELFCLASS64)"
/usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so: wrong ELF class: ELFCLASS64

(unitytest32bit:12486): Gtk-WARNING **: Failed to load type module: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so

/usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so: wrong ELF class: ELFCLASS64

(unitytest32bit:12486): Gtk-WARNING **: Failed to load type module: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so

/usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so: wrong ELF class: ELFCLASS64

(unitytest32bit:12486): Gtk-WARNING **: Failed to load type module: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so

/usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so: wrong ELF class: ELFCLASS64

(unitytest32bit:12486): Gtk-WARNING **: Failed to load type module: /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so

Revision history for this message
Jactry Zeng (jactry) wrote :
Revision history for this message
Jactry Zeng (jactry) wrote :
description: updated
Revision history for this message
Jactry Zeng (jactry) wrote :
Revision history for this message
Jactry Zeng (jactry) wrote :
Revision history for this message
Jactry Zeng (jactry) wrote :
Jactry Zeng (jactry)
description: updated
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Which version of Qt did you build it with? Seems like it doesn't honour multiarch.

Revision history for this message
Jactry Zeng (jactry) wrote :

Qt 4.8.0(32bit),I installed it from Ubuntu 12.04's source.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

That makes sense. It needs to be rebuilt on a 64 bit system before it could work.

Changed in unity:
status: New → Incomplete
Changed in appmenu-qt:
status: New → Incomplete
Changed in appmenu-qt (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for appmenu-qt (Ubuntu) because there has been no activity for 60 days.]

Changed in appmenu-qt (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Unity because there has been no activity for 60 days.]

Changed in unity:
status: Incomplete → Expired
Jactry Zeng (jactry)
Changed in unity:
status: Expired → New
Changed in appmenu-qt:
status: Incomplete → New
Changed in appmenu-qt (Ubuntu):
status: Expired → New
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Please check if it is fixed when you recompile the application for 64-bit. Seems like your system doesn't handle multiarch well, and as such, you need different binaries for 32-bit and 64-bit (which is the recommended procedure)

If multiarch libs were handled well, then this bug won't have popped up in your case. Sadly, multiarch hasn't been sorted out perfectly for every package yet, and appmenu isn't multiarch-optimized yet.

tags: added: multiarch
Revision history for this message
Jactry Zeng (jactry) wrote :

Yes, I have updated my system to the newest and this bug still exist.
I used the Qt library in Ubuntu's software source.

And what information should I provide more?

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

As always, recompiling the application for both architectures is the recommended procedure for app developers. But I'll triage this, since appmenu-qt should handle multiarch properly, just like other libraries.

Changed in appmenu-qt:
importance: Undecided → Wishlist
Changed in appmenu-qt (Ubuntu):
importance: Undecided → Critical
importance: Critical → Wishlist
status: New → Triaged
Changed in appmenu-qt:
status: New → Triaged
Changed in unity:
status: New → Confirmed
summary: - 32bit Qt software run in ubuntu 64bit can't get global menu and HUD
+ appmenu-qt doesn't work with 32-bit apps on 64-bit system
Revision history for this message
Jactry Zeng (jactry) wrote :

Yes, recompiling the application for both architectures is the recommended procedure for app developers.
But, there are so many close source software didn't compile for 64bit. And as users, they can't do anything when they run those software in Unity 64bit.
So I think it is necessary to let appmenu-qt support multiarch.

Revision history for this message
Shiba (shiba89) wrote :

appmenu-gtk now has multiarch support (https://bugs.launchpad.net/ubuntu/+source/appmenu-gtk/+bug/932860).
Will this be updated too?

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Miklos Juhasz (mjuhasz) wrote :

I built a package for Ubuntu 14.04 with multiarch support in ppa:mjuhasz/backports
The debdiff is attached.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Multiarch support for appmenu-qt" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Changed in unity (Ubuntu):
status: Confirmed → Invalid
Changed in unity:
status: Confirmed → Invalid
Changed in appmenu-qt:
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appmenu-qt - 0.2.7+14.04.20140305-0ubuntu2

---------------
appmenu-qt (0.2.7+14.04.20140305-0ubuntu2) utopic; urgency=medium

  * Add multiarch support (LP: #1001621)
 -- Miklos Juhasz <email address hidden> Sat, 23 Aug 2014 17:27:24 +0200

Changed in appmenu-qt (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.