Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] - Error with libcups.so.2 - wrong ELF class
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Thu Jan 05, 2012 2:49 pm    Post subject: [CLOSED] - Error with libcups.so.2 - wrong ELF class Reply with quote

Hi, I'm trying to run a L2J server on Gentoo64 but it seems I am running in trouble.

At one point during the launch of the application I get the following error message:
Error message wrote:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/icedtea-bin-7.2.0/jre/lib/amd64/headless/libmawt.so: libcups.so.2: wrong ELF class: ELFCLASS32
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:414)
at com.l2jserver.gameserver.GameServer.main(GameServer.java:482)


A quick check at the libraries used by that file shows the following:
ldd /opt/icedtea-bin-7.2.0/jre/lib/amd64/headless/libmawt.so wrote:

linux-vdso.so.1 => (0x00007fffa85fb000)
libcups.so.2 => /usr/lib64/libcups.so.2 (0x00007fe2ae3be000)
libjvm.so => not found
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6 (0x00007fe2ae0bd000)
libawt.so => /opt/icedtea-bin-7.2.0/jre/lib/amd64/headless/../libawt.so (0x00007fe2addea000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe2adb67000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fe2ad930000)
libjava.so => /opt/icedtea-bin-7.2.0/jre/lib/amd64/headless/../libjava.so (0x00007fe2ad705000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe2ad376000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00007fe2ad138000)
libgnutls.so.26 => /usr/lib64/libgnutls.so.26 (0x00007fe2ace8b000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe2acc6d000)
libz.so.1 => /lib64/libz.so.1 (0x00007fe2aca57000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe2ae832000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe2ac841000)
libjvm.so => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe2ac63c000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fe2ac39d000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fe2ac18c000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fe2abf62000)
libjvm.so => not found
libverify.so => /opt/icedtea-bin-7.2.0/jre/lib/amd64/headless/../libverify.so (0x00007fe2abd50000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00007fe2aba82000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00007fe2ab858000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fe2ab653000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00007fe2ab44a000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fe2ab246000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fe2ab02e000)
libtasn1.so.3 => /usr/lib64/libtasn1.so.3 (0x00007fe2aae1d000)
libgcrypt.so.11 => /usr/lib64/libgcrypt.so.11 (0x00007fe2aab9e000)
libjvm.so => not found
libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007fe2aa999000)


Here is my emerge info:
emerge --info wrote:

Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 2.6.39-gentoo-r1-deurk x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r1-deurk-x86_64-Intel-R-_Core-TM-_i5_CPU_760_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Wed, 04 Jan 2012 17:30:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash: 4.2_p20
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.2-r3, 3.2.2
dev-util/ccache: 3.1.6
dev-util/cmake: 2.8.6-r4
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1
sys-apps/openrc: 0.9.7
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.10.3, 1.11.2
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles ftp://mirror.ovh.net/gentoo-distfiles"
LANG="fr_FR.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac aalib acl aim alaw all_sfx amd64 amr angelscript animgif apache2 aspell audio authfile auto-completion bash-completion bazaar berkdb bind blksha1 bzip2 cgi charset checkpath cjk cli colordiff contentcache corefonts cpudetection cracklib crypt cups curl curlwrappers cvs cvsgraph cxx d dahdi darcs dedicated dict dlz dmraid dv encode enscript exif expat extensions extras faac faad faillog fame fastcgi ffmpeg fileinfo filter flac fontconfig fortran fortune fpm ftp g722 g729 gadu gd gdbm geoip gif git gnutls gpg gpm groupwise gsm gssapi gtalk h323 hash host http iconv icq id3tag idn ignore-case imagemagick imap innodb intl ipc iproute2 iptables iptc ipv6 irc jabber java javascript jpeg jpeg2k json kate kerberos lame libass libcaca libevent libmpeg2 libssh2 libtiger libwww lm_sensors logrotate lzma lzo mail matroska meanwhile memlimit mercurial metric mime mjpeg mmx mmxext mng mod_mod_wsgi modules mp3 mp4 mpeg mpg123 msn mudflap multilib multitarget musepack mysql mysqli mysqlnd nas ncurses net newt nls nntp nptl nptlonly offensive ogg ogm openid openmp openssl oscar otr pam passenger pcap pcre pdf pdo perl php php5-3 pkcs11 png pppd profile python python2 qpak qq radius rar raw rdoc readline regex resolvconf rpm rss rtc rtsp ruby server session sftp shorturl silc simplexml sip siren14 siren7 sln16 smime smp smtp snmp sockets speex spell sse sse2 sse3 sse4 sse4a sse5 ssh ssl ssse3 subversion suexec suhosin sysfs syslog tcl tcpd tga theora threadsafe tidy tiff timezone tls tokenizer translator truetype twitter udev ulaw unicode urandom uuencode v4l vhosts vim vim-syntax vorbis wav webdav wma wmf wpg x264 xml xmlreader xmlrpc xmlwriter xmp xsl xv xvid yahoo zaptel zephyr zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Does anyone have a pointer for me?

Thanks!


Last edited by deurk on Thu Jan 05, 2012 2:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Thu Jan 05, 2012 2:53 pm    Post subject: Reply with quote

Well nevermind, I fiex it somehow... It was saying not found for libcups.so.2 previously and I noticed it did not anymore in this paste...
Tried and now it works all fine.

Sorry for the noise :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum