You are not logged in.

#1 2012-03-20 18:30:35

lp208
Member
Registered: 2012-03-20
Posts: 5

[SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

Hello

       I've played with Linux before(mostly Ubuntu/Debian) but thought i'd give Arch a try, so far have loved it and every issue i've had i've been able to solve from scouring the forums/wiki. But i cannot find anyone who has had this problem before: When running SuperMongo plotting program i got the error

gs: error while loading shared libraries: libtasn1.so.3: wrong ELF class: ELFCLASS32

       A (very) little digging it seems gs == Ghostscript which is the Postscript interpreter that got pulled through as a dependency of the `kdegraphics-okular' package.  If I just try to invoke $  gs i get the same error as well.

I'm not sure what the object is, in /usr/lib/ theres a few other versions of it.

$ ls /usr/lib/ | grep -i tasn1
libtasn1.a
libtasn1.so
libtasn1.so.3
libtasn1.so.3.1.15

dunno if any of this is of any help, or if its a known/new/newbie issue. Also, as i guess would be expected, i can't open .ps files so gs is knackered.

Thanks
Luke

Last edited by lp208 (2012-03-21 01:55:16)

Offline

#2 2012-03-20 19:35:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

Are you using a 64-bit system? Seems the library is 32-bit.

I have no idea what SuperMongo is (a java program?), you can google around for other threads with this error e.g. https://bbs.archlinux.org/viewtopic.php … 80#p987980

Offline

#3 2012-03-20 19:42:55

lp208
Member
Registered: 2012-03-20
Posts: 5

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

Sorry SuperMongo is a plotting program written in C, but that was irrelevant! I was just providing some background smile

I am using a x86_64 version of Arch. I did see that and various other ELFCLASSXX type errors but none for this library. Using readelf and looking at the library and other versions they are the ELF32 versions.

I assume the obvious solution would be to get ghostscript in 32bit or the library in 64bit... neither of which seem to exist in [multilib](or at least $ pacman -Ss tasn/ghostscript only finds one)

Luke

Offline

#4 2012-03-20 19:50:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

Both libtasn1 and ghostscript are in extra.


If it was a java app or you were using it through wine, there might have been some problem with the prefixes.

Last edited by karol (2012-03-20 19:51:21)

Offline

#5 2012-03-20 19:55:32

lp208
Member
Registered: 2012-03-20
Posts: 5

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

Yep but in extra it seems libtasn1 is 32bit and ghostscript is 64bit. And there are no other versions in [multilib]. Sorry if i'm missing something obvious.

Yep the SuperMongo reference was pointless in hindsight, gs on it's own is broken.

Luke

Last edited by lp208 (2012-03-20 19:56:21)

Offline

#6 2012-03-20 19:59:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

I've just downloaded the package from http://www.archlinux.org/packages/extra … /libtasn1/ (click 'Download From Mirror' link)

[karol@black lib]$ file libtasn1.so.3
libtasn1.so.3: symbolic link to `libtasn1.so.3.1.15'
[karol@black lib]$ file libtasn1.so.3.1.15
libtasn1.so.3.1.15: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x24294a5628d60f42a559e0a4ae87858616489dde, stripped

Offline

#7 2012-03-20 20:08:33

lp208
Member
Registered: 2012-03-20
Posts: 5

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

# file libtasn1.so.3.1.15
libtasn1.so.3.1.15: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x4417a1bf13dd422c6595cf52861fafa7a9a4ea73, stripped

Right i'll try reinstalling it, i assumed because of

# pacman -Ss tasn1
extra/libtasn1 2.12-1 [installed]
    The ASN.1 library used in GNUTLS

and

 # pacman -Qi libtasn1                            
Name           : libtasn1                             
Version        : 2.12-1                               
URL            : http://www.gnu.org/software/libtasn1/
Licences       : GPL3  LGPL
Groups         : None
Provides       : None
Depends On     : glibc  texinfo
Optional Deps  : None
Required By    : gnutls
Conflicts With : None
Replaces       : None
Installed Size : 385.00 KiB
Packager       : Andreas Radke <andyrtr@archlinux.org>
Architecture   : i686
Build Date     : Mon 19 Mar 2012 19:49:52 GMT
Install Date   : Tue 20 Mar 2012 14:49:16 GMT
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description    : The ASN.1 library used in GNUTLS

that it knew what it was talking about...

Offline

#8 2012-03-20 20:19:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

Not sure how did you manage to install a 32-bit library in the first place.
What's the output of

grep Architecture /etc/pacman.conf

?


I have only 32-bit systems here, so I can't check if 64-bit ghostscript has some issues or not.

Offline

#9 2012-03-20 20:27:02

lp208
Member
Registered: 2012-03-20
Posts: 5

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

 # grep Architecture /etc/pacman.conf
Architecture = auto

but

 # uname -m
x86_64

As i was having some trouble with GRUB(Linux aprtition starts after a 1.7tb windows partition and GRUB Legacy was having none of it) this install was done with x86_64 Arch core iso... dunno if thats where i got it or it got pulled down with something else ?

i just did

  # pacman -Rdd libtasn1                               
                                                                             
Targets (1): libtasn1-2.12-1                                                 
                                                                             
Total Removed Size:     0.38 MiB                                             
                                                                             
Do you want to remove these packages? [Y/n] y                                
(1/1) removing libtasn1                            [###################] 100%

and then reinstalled and it didn't explode, we now have this magic

 # pacman -Qi libtasn1                      
Name           : libtasn1                        
Version        : 2.12-1                          
URL            : http://www.gnu.org/software/libt
Licences       : GPL3  LGPL
Groups         : None
Provides       : None
Depends On     : glibc  texinfo
Optional Deps  : None
Required By    : gnutls
Conflicts With : None
Replaces       : None
Installed Size : 413.00 KiB
Packager       : Andreas Radke <andyrtr@archlinux.org>
Architecture   : x86_64
Build Date     : Mon 19 Mar 2012 19:49:21 GMT
Install Date   : Tue 20 Mar 2012 20:20:06 GMT
Install Reason : Explicitly installed
Install Script : Yes
Description    : The ASN.1 library used in GNUTLS

and gs doesn't blow up anymore... Apparently a depenancy was Archboot(which sounds terrifying) so i'm gonna reboot in a minute with my fingers crossed.

Thanks for your help, wouldn't have got there otherwise.

See you on the flipside!

Luke

Offline

#10 2012-03-21 01:53:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Ghostscript loading libtasn1 fails: wrong ELFCLASS32

If everything is working now, please remember to mark the thread as solved.

Offline

Board footer

Powered by FluxBB