Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 506976

Summary: [anyc overlay] games-strategy/caesaria - caesaria.linux: error while loading shared libraries: libSDL-1.2.so.0: wrong ELF class: ELFCLASS64
Product: Gentoo Linux Reporter: tman <cornicx>
Component: Current packagesAssignee: Mario Kicherer <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description tman 2014-04-06 18:29:55 UTC
~ $ optirun caesaria
caesaria.linux: error while loading shared libraries: libSDL-1.2.so.0: wrong ELF class: ELFCLASS64

Reproducible: Always




Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19, 3.14.0-gentoo x86_64)
=================================================================
System uname: Linux-3.14.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24695336 total,  21355548 free
KiB Swap:   25598972 total,  25598972 free
Timestamp of tree: Sun, 06 Apr 2014 08:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p46-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo bitcoin anyc-overlay lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
Comment 1 tman 2014-04-06 18:38:54 UTC
~ # locate libSDL-1.2.so.0
/usr/lib64/libSDL-1.2.so.0
/usr/lib64/libSDL-1.2.so.0.11.4
Comment 2 Mario Kicherer 2014-04-06 18:52:53 UTC
Please pull the latest commit of the overlay which should fix this issue. For whatever reason they have a precompiled 32bit version of the executable in their repo and the ebuild accidentally chose this one instead of the one compiled by portage. Thanks!
Comment 3 tman 2014-04-06 19:22:07 UTC
on the webside there is no explaintation wich file is need for playing.


/usr/share/games/caesaria/resources/ also does not exist and have to manually make. it would be nice if u can change and put some information in to the ebuild.
Comment 4 tman 2014-04-06 19:27:23 UTC
btw  there must be also an other bug caesaria wont install to:

/usr/share/games/caesaria. but it should be. right?
Comment 5 tman 2014-04-06 19:30:00 UTC
 ~ $ caesaria
Options: working directory is .
Options: setting workdir to /usr/share/games/caesaria
Critical: Not found graphics data. Use precompiled CaesarIA archive or set
-c3gfx flag to set absolute path to Caesar III(r) installation folder,
forexample, "-c3gfx c:/games/caesar3/"
Comment 6 Mario Kicherer 2014-04-09 11:19:45 UTC
I just pushed a new commit that creates the resource folder. I did not include detailed information about the resources as I doubt some of the approaches are legal.