Seperate out p11-kit-trust.so into a multiarch package to prevent errors in Wine

Bug #1027299 reported by Andrew Bolster
60
This bug affects 13 people
Affects Status Importance Assigned to Milestone
p11-kit (Debian)
Fix Released
Unknown
p11-kit (Ubuntu)
Fix Released
Undecided
Unassigned
wine1.6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: wrong ELF class: ELFCLASS64

Looks like p11-kit isn't accepting 64 bit loading. Only appears to affect wine/cxoffice, but they are confident that it's a bug here and not with them.

http://www.codeweavers.com/support/tickets/browse/?ticket_id=890121
http://forum.winehq.org/viewtopic.php?p=75702&sid=299b5d6b2979818ea46bef500ee7c057

Tags: multiarch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in p11-kit (Ubuntu):
status: New → Confirmed
Revision history for this message
Colin Keenan (colinkeenan) wrote :

I am getting the same error but not from trying to run cxoffice. I'm trying to run the efax.com custom fax viewer for viewing their free incoming faxes. I was able to install their software by setting wine to Windows 7, but it wouldn't run. It would display a dialogue saying a necessary resource was not available. Running in a terminal told me it was looking for gnome-keyring-pkcs11.so, so I installed p11-kit.

Wine still couldn't find gnome-keyring-pkcs11.so, so I used 'sudo find -name gnome-keyring-pkcs11.so' and then created a link to that file in the place where the efax software was looking. That's when I got the 'wrong ELF class: ELFCLASS64' error mentioned in this bug. I tried making gnome-keyring-pkcs11.so executable (because I had found some instructions to do that somewhere), but that didn't make any difference.

Revision history for this message
Colin Keenan (colinkeenan) wrote :

I was able to get rid of this error, but have another which I won't bother listing here since it's not related.

To get rid of this error, I upgraded to wine 1.5, uninstalled the troublesome software, and re-installed it.

To upgrade to wine 1.5, I did the following:

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update

sudo aptitude full-upgrade

and aptitude told me I would have to uninstall all the previous wine stuff, so I told it to go ahead and do that.

Revision history for this message
Ken Koch (2l82day) wrote :

I am running Wine 1.7.1, on Linux Mint 15 x64. I still get the error. I was trying to get past the error "/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux->gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or >directory"

So I made this link "sudo ln -s /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so gnome-keyring-pkcs11.so" in the usr/lib/i386-linux-gnu/pkcs11 directory. The I ran my program which is not office or that other thing. The I get the error about ELFclass, which I can only assume it from trying to access a 64bit .so file from a i386 directory.

So I guess I back to the drawing board.

Revision history for this message
Scott Ritchie (scottritchie) wrote :

For the gnome-keyring issue, see https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/859600 -- which is fixed now in Saucy (and backports are underway).

However, in Wine's case you will still see this error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory

The reason is that the p11-kit-trust.so library hasn't been separated from the p11-kit package. p11-kit is not a multi-arch package, so there's still no way to install this library (and avoid the error) on 64-bit Ubuntu.

summary: - p11-kit breaking wine on 64 bit: Wrong ELFCLASS
+ Seperate out p11-kit-trust.so into a multiarch package to prevent errors
+ in Wine
tags: added: multiarch
Changed in p11-kit (Debian):
status: Unknown → New
Changed in p11-kit (Debian):
status: New → Fix Released
Revision history for this message
Scott Ritchie (scottritchie) wrote :

This is fixed in Debian, can we please merge to Trusty?

Revision history for this message
Iain Lane (laney) wrote :

I merged it, thanks.

Changed in p11-kit (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wine1.6 - 1:1.6.2-0ubuntu3

---------------
wine1.6 (1:1.6.2-0ubuntu3) trusty; urgency=medium

  * Recommend new p11-kit-modules package on i386/amd64 (LP: #1027299)
 -- Scott Ritchie <email address hidden> Fri, 21 Mar 2014 00:35:25 -0700

Changed in wine1.6 (Ubuntu):
status: New → Fix Released
Revision history for this message
Quigi (brechbuehler) wrote :

Janitor reports this as fixed in wine1.6 (1:1.6.2-0ubuntu3), but the problem still affects
ii wine 1:1.6.2-0ubuntu4 amd64 Microsoft Windows Compatibility Layer (meta-package)
on Ubuntu 14.4 (Trusty Tahr).

Transcript of failing invocation:

$ WINEARCH=win32 winecfg
wine: created the configuration directory '/home/quigi/.wine'
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: wrong ELF class: ELFCLASS64
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0x11fe890, overlapped 0x11fe89c): stub
wine: configuration in '/home/quigi/.wine' has been updated.
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: wrong ELF class: ELFCLASS64

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.