Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Google Earth 6 does not find binary although present
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 245

PostPosted: Tue Nov 30, 2010 4:32 pm    Post subject: Google Earth 6 does not find binary although present Reply with quote

I read that Google Earth 6 is out (not in portage or bugs.gentoo.org yet) and had to try if just copying the previous version's ebuild is enough. It installed fine but for some reason I cannot execute the binary (gives "no such file or directory") although I can read the binary just fine...

Code:
/opt/googleearth $ ./googleearth-bin
bash: ./googleearth-bin: No such file or directory
/opt/googleearth $ /opt/googleearth/googleearth-bin
bash: /opt/googleearth/googleearth-bin: No such file or directory
/opt/googleearth $ ls /opt/googleearth/googleearth-bin
/opt/googleearth/googleearth-bin
/opt/googleearth $ ls -al /opt/googleearth/googleearth-bin
-rwxr-xr-x 1 root root 5452 Nov 30 16:53 /opt/googleearth/googleearth-bin
/opt/googleearth $ file googleearth-bin
googleearth-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
/opt/googleearth $ file ./googleearth-bin
./googleearth-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
/opt/googleearth $ file /opt/googleearth/googleearth-bin
/opt/googleearth/googleearth-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped


The wrapper has the same problem:

Code:
/opt/googleearth $ /opt/googleearth/googleearth
/opt/googleearth/googleearth: line 51: /opt/googleearth/googleearth-bin: No such file or directory
/opt/googleearth/googleearth: line 51: /opt/googleearth/googleearth-bin: Success


I'm really confused... What gives a "No such file or directory" error if the file is present? Maybe it doesn't execute for some reason but then why doesn't it display a linker error instead? I never had a problem like that before - the file is there. Why does bash tell me that there is no file? The strace also shows that it happens as early as possible:

Code:
/opt/googleearth $ strace ./googleearth-bin
execve("./googleearth-bin", ["./googleearth-bin"], [/* 75 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f800b898000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7f800b898000, 4096)            = 0
exit_group(1)                           = ?


I'm running 2.6.34-gentoo-r10 on a Core 2 Duo (64 Bit), rootfs is running on Ext4. Previous versions of Google Earth ran fine. Can anyone reproduce this or has an idea what happens?
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
amair
n00b
n00b


Joined: 12 Aug 2003
Posts: 54

PostPosted: Wed Dec 01, 2010 8:25 am    Post subject: Reply with quote

Hi,

by searching a little bit at Google I found a solution. As root User run
ln -s /lib/ld-linux.so.2 /lib/ld-lsb.so.3

This fixes the "no such file or directory" error, but still crashes here like GoogleEarth 5.2 did :(

Best regards,
Andreas
Back to top
View user's profile Send private message
h4jo
n00b
n00b


Joined: 05 Nov 2007
Posts: 7
Location: Hösel

PostPosted: Wed Dec 01, 2010 10:56 am    Post subject: Reply with quote

On my 64bit System I had to
ln -s /lib32/ld-linux.so.2 /lib/ld-lsb.so.3
... now it works.
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Thu Dec 02, 2010 1:08 am    Post subject: Reply with quote

h4jo wrote:
On my 64bit System I had to
ln -s /lib32/ld-linux.so.2 /lib/ld-lsb.so.3
... now it works.


Same problem as that of amair, also on amd64.
Would you post your emerge -pv googleearth and/or emerge --info pls.
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 245

PostPosted: Thu Dec 02, 2010 12:07 pm    Post subject: Reply with quote

Works for me as well by symlinking ld-linux.so.2 to ld-lsb.so.3. I tried to do it in /opt/googleearth, unfortunately that does not seem to be sufficient; it needs to be done in /lib? LD_LIBRARY_PATH is already be set by the wrapper to include /opt/googleearth/ - if putting a symlink in /opt/googleearth/ would work and there's nothing wrong about linking to ld-linux then making a small adjustment to the ebuild would do just fine?

I took the former ebuild and renamed it to a bogus 6.0 version number (just to download the unversioned binary without overwriting the old one in distfiles). Last rsync and update was on Sunday.

Code:
# diff -s /usr/portage/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild /usr/local/portage/sci-geosciences/googleearth/googleearth-6.0.0.0000.ebuild
Files /usr/portage/sci-geosciences/googleearth/googleearth-5.2.1.1588.ebuild and /usr/local/portage/sci-geosciences/googleearth/googleearth-6.0.0.0000.ebuild are identical


# emerge -uDpv world

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB


# equery belongs `which /lib64/ld-linux.so.2`
[ Searching for file(s) /lib64/ld-linux.so.2 in *... ]
sys-libs/glibc-2.11.2-r3 (/lib64/ld-linux.so.2 -> ../lib32/ld-linux.so.2)


# emerge -pv googleearth

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sci-geosciences/googleearth-6.0.0.0000  USE="-mdns-bundled qt-bundled" 0 kB [?=>1]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage
 [?] indicates that the source repository could not be determined


# emerge --info
Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r10 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r10-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 28 Nov 2010 11:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.11-r2
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula sun-bcla-java-vm AdobeFlash-10.1 AdobeFlash-10 googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://de-mirror.org/distro/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"                                                                                                                                                             
MAKEOPTS="-j3"                                                                                                                                                             
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="/var/lib/layman/bangert /var/lib/layman/sunrise /var/lib/layman/dertobi123 /var/lib/layman/dev-zero /var/lib/layman/nx /var/lib/layman/java-overlay /var/lib/layman/cwiid /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aalib acl acpi alsa amd64 apache2 aspell asterisk audiofile berkdb bluetooth bzip2 cdaudio cdda cddax cddb cdr cli cracklib crypt cups curl cxx dbus dri dv dvd dvdr dvdread emacs encode esd exif expat fam ffmpeg flac fluidsynth fortran gd gdbm gif glut gpm graphviz gstreamer gtk h264 hal hald iconv idn ieee1394 imagemagick imlib ipv6 irmc jack java java6 joystick jpeg kde latex lcms ldap libcaca libsamplerate libwww lm_sensors mad mailwrapper matroska mhash mikmod mmx mmxext mng modules motif mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis openal openexr opengl openmp pam pcre perl png postgres pppd pulseaudio python qt qt3support qt4 readline samba sdl semantic-desktop session slang snmp speex sse sse2 ssl ssse3 subversion svg svn sysfs tcpd tetex theora tiff timidity truetype udev unicode usb v4l v4l2 vorbis x264 xcomposite xface xine xml xml2 xorg xscreensaver xvid 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 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" NETBEANS_MODULES="apisupport ide nb php webcommon websvccommon harness java" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv nvidia vesa vmware" 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, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


(Uuuhm... Please ignore the 3dnow USE flags... Seems like I forgot to remove them when I upgraded my system from Athlon XP to a Core2Duo two years ago. :oops: )
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
h4jo
n00b
n00b


Joined: 05 Nov 2007
Posts: 7
Location: Hösel

PostPosted: Fri Dec 03, 2010 11:24 am    Post subject: Reply with quote

emerge -pv: (I downloaded googleearth6 from google as is - yep - that's not too gentooish ;)
Calculating dependencies... done!
[ebuild N ] app-emulation/emul-linux-x86-qtlibs-20100915 20,957 kB
[ebuild N ] sci-geosciences/googleearth-5.1.3535.3218-r1 USE="-mdns-bundled -qt-bundled" 25,325 kB

Info:
Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 03 Dec 2010 07:45:01 +0000
app-shells/bash: 4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python: 2.4.6, 2.6.5-r3, 3.1.2-r4
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.3-r1
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 bash-completion berkdb blender-game bzip2 cairo cdr cli cracklib crypt cups cxx dbus desktopglobe device-mapper doomsday dri dvb dvd encode exif extras ffmpeg flac fluidsynth fontconfig fortran gdbm gdu gif gpm iconv icu ipv6 jack java joystick jpeg json kde kerberos kqemu lame ldap ldap-sasl mikmod mmx mng modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin odk ogg openal opengl openmp pam pcre perl plasma png postgres pppd python qalculate qt3 qt3support qt4 readline rss sasl scanner session smp sndfile soap sql sqlite sse sse2 ssl svg sysfs tcpd theora threads tiff tk truetype unicode vorbis webkit xml xorg 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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="de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Thu Dec 23, 2010 1:30 am    Post subject: Reply with quote

Still *not* working! I could see for less than a second something like the normal screen but then it crashed.

The ebuild I used:
Code:

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-6.0.0.2032.ebuild

EAPI=2

inherit eutils fdo-mime versionator toolchain-funcs

DESCRIPTION="A 3D interface to the planet"
HOMEPAGE="http://earth.google.com/"
# no upstream versioning, version determined from help/about
# incorrect digest means upstream bumped and thus needs version bump
SRC_URI="http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
         -> GoogleEarthLinux-${PV}.bin"

LICENSE="googleearth GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
RESTRICT="mirror strip"
IUSE="mdns-bundled +qt-bundled"

GCC_NEEDED="4.2"

RDEPEND=">=sys-devel/gcc-${GCC_NEEDED}[-nocxx]
   x86? (
      media-libs/fontconfig
      media-libs/freetype
      virtual/opengl
      x11-libs/libICE
      x11-libs/libSM
      x11-libs/libX11
      x11-libs/libXi
      x11-libs/libXext
      x11-libs/libXrender
      x11-libs/libXau
      x11-libs/libXdmcp
      sys-libs/zlib
      dev-libs/glib:2
      !qt-bundled? (
         >=x11-libs/qt-core-4.5.3
         >=x11-libs/qt-gui-4.5.3
         >=x11-libs/qt-webkit-4.5.3
      )
      net-misc/curl
      sci-libs/gdal
      !mdns-bundled? ( sys-auth/nss-mdns )
   )
   amd64? (
      >=app-emulation/emul-linux-x86-xlibs-20081109
      >=app-emulation/emul-linux-x86-baselibs-20081109
      app-emulation/emul-linux-x86-opengl
      !qt-bundled? (
         >=app-emulation/emul-linux-x86-qtlibs-20091231-r1
      )
   )
   virtual/ttf-fonts"

S="${WORKDIR}"

pkg_nofetch() {
   einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
   einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
   einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
   einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
}

QA_TEXTRELS="opt/googleearth/libflightsim.so
opt/googleearth/libwebbrowser.so
opt/googleearth/libinput_plugin.so
opt/googleearth/libIGGfx.so
opt/googleearth/liblayer.so
opt/googleearth/libbase.so
opt/googleearth/libevll.so
opt/googleearth/libmoduleframework.so
opt/googleearth/libcommon_webbrowser.so
opt/googleearth/libbasicingest.so
opt/googleearth/libsgutil.so
opt/googleearth/libnavigate.so
opt/googleearth/librender.so
opt/googleearth/libauth.so
opt/googleearth/libgeobaseutils.so
opt/googleearth/libcommon.so
opt/googleearth/libQtGui.so.4
opt/googleearth/libcommon_platform.so
opt/googleearth/libgoogleearth_free.so
opt/googleearth/libcollada.so
opt/googleearth/libviewsync.so
opt/googleearth/libgps.so
opt/googleearth/libgooglesearch.so
opt/googleearth/plugins/imageformats/libqjpeg.so
opt/googleearth/libmeasure.so
"

pkg_setup() {
   GCC_VER="$(gcc-version)"
   if ! version_is_at_least ${GCC_NEEDED} ${GCC_VER}; then
      ewarn "${PN} needs libraries from gcc-${GCC_NEEDED} or higher to run"
      ewarn "Your active gcc version is only ${GCC_VER}"
      ewarn "Please consult the GCC upgrade guide to set a higher version:"
      ewarn "http://www.gentoo.org/doc/en/gcc-upgrading.xml"
   fi
}

src_unpack() {
   unpack_makeself

   cd "${WORKDIR}"/bin || die
   unpack ./../${PN}-linux-x86.tar

   mkdir "${WORKDIR}"/data && cd "${WORKDIR}"/data || die
   unpack ./../${PN}-data.tar

   cd "${WORKDIR}"/bin || die

   if ! use qt-bundled; then
      rm -v libQt{Core,Gui,Network,WebKit}.so.4 ../data/qt.conf || die
      rm -frv ../data/plugins/imageformats || die
   fi
   rm -v libGLU.so.1 libcurl.so.4 || die
   if ! use mdns-bundled; then
      rm -v libnss_mdns4_minimal.so.2 || die
   fi

   if use x86; then
      # no 32 bit libs for gdal
      rm -v libgdal.so.1 || die
   fi

   cd "${WORKDIR}"/setup.data/bin/Linux/x86 || die
   mv setup.gtk setup.gtk2
}

src_prepare() {
   cd "${WORKDIR}"/bin || die
   # bug #262780
   epatch "${FILESDIR}/decimal-separator.patch"

   # make the postinst script only create the files; it's  installation
   # are too complicated and inserting them ourselves is easier than
   # hacking around it
   sed -i -e 's:$SETUP_INSTALLPATH/::' \
      -e 's:$SETUP_INSTALLPATH:1:' \
      -e "s:^xdg-desktop-icon.*$::" \
      -e "s:^xdg-desktop-menu.*$::" \
      -e "s:^xdg-mime.*$::" "${WORKDIR}"/postinstall.sh || die
}

src_install() {
   make_wrapper ${PN} ./${PN} /opt/${PN} . || die "make_wrapper failed"
   ./postinstall.sh
   insinto /usr/share/mime/packages
   doins ${PN}-mimetypes.xml || die
   domenu Google-${PN}.desktop || die
   doicon ${PN}-icon.png || die
   dodoc README.linux || die

   cd bin || die
   exeinto /opt/${PN}
   doexe * || die

   cp -pPR "${WORKDIR}"/data/* "${D}"/opt/${PN} || die
   fowners -R root:root /opt/${PN}
   fperms -R a-x,a+X /opt/googleearth/resources
   dosym /lib/ld-linux.so.2 /lib/ld-lsb.so.3 || die "Cannot create symlink /lib/ld-linux.so.2 /lib/ld-lsb.so.3"
}

pkg_postinst() {
   fdo-mime_desktop_database_update
   fdo-mime_mime_database_update

   elog "The qt-bundled flag is now enabled by default due to crashes on startup with system Qt."
   elog "Testing and reporting outcome with/without the flag is welcome (bug #319813)."
   elog "If it crashes in both cases, put this version in your package.mask and revert to the stable 5.1.*"
}


The crash report:
Code:

Major Version 6
Minor Version 0
Build Number 0001
Build Date Dec 10 2010
Build Time 22:42:27
OS Type 3
OS Major Version 2
OS Minor Version 6
OS Build Version 36
OS Patch Version 0
Crash Signal 11
Crash Time 1293067029
Up Time 9.06812

Stacktrace from glibc:
./libgoogleearth_free.so(+0xac2a3)[0xf76c12a3]
./libgoogleearth_free.so(+0xac423)[0xf76c1423]
[0xf7742400]
/usr/lib32/libcrypto.so.1.0.0(X509_subject_name_cmp+0x2e)[0xf447f43e]
/usr/lib32/libcrypto.so.1.0.0(+0xd14d2)[0xf44864d2]
/usr/lib32/libcrypto.so.0.9.8(OBJ_bsearch_ex+0x4a)[0xd4ce50aa]
/usr/lib32/libcrypto.so.0.9.8(+0x8d276)[0xd4d3a276]
/usr/lib32/libcrypto.so.0.9.8(X509_OBJECT_retrieve_match+0x26)[0xd4d73306]
/usr/lib32/libcrypto.so.0.9.8(X509_STORE_add_cert+0x98)[0xd4d73b08]
./libQtNetwork.so.4(+0xcb9fb)[0xf684f9fb]
./libQtNetwork.so.4(+0xc6717)[0xf684a717]
./libQtNetwork.so.4(+0xcae62)[0xf684ee62]
./libQtNetwork.so.4(_ZN10QSslSocket21startClientEncryptionEv+0x49)[0xf6843509]
./libQtNetwork.so.4(+0xc1160)[0xf6845160]
./libQtNetwork.so.4(_ZN10QSslSocket11qt_metacallEN11QMetaObject4CallEiPPv+0x21e)[0xf684752e]
./libQtCore.so.4(_ZN11QMetaObject8metacallEP7QObjectNS_4CallEiPPv+0x3a)[0xf748a66a]
./libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2db)[0xf749a84b]
./libQtNetwork.so.4(_ZN15QAbstractSocket9connectedEv+0x37)[0xf6825cc7]
./libQtNetwork.so.4(+0xa25b9)[0xf68265b9]
./libQtNetwork.so.4(+0xa51f0)[0xf68291f0]
./libQtNetwork.so.4(+0x9237b)[0xf681637b]
./libQtNetwork.so.4(+0x93fe9)[0xf6817fe9]
./libQtNetwork.so.4(+0x9410b)[0xf681810b]
./libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0xf69ed69c]
./libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x426)[0xf69f8666]
./libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x78)[0xf7484ba8]
./libQtCore.so.4(_ZN20QEventDispatcherUNIX23activateSocketNotifiersEv+0xf0)[0xf74b2ed0]
./libQtCore.so.4(_ZN27QEventDispatcherUNIXPrivate8doSelectE6QFlagsIN10QEventLoop17ProcessEventsFlagEEP7timeval+0x2c4)[0xf74b3de4]
./libQtCore.so.4(_ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0xb5)[0xf74b4ca5]
./libQtGui.so.4(+0x1f7eee)[0xf6aa7eee]
./libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x49)[0xf7483b39]
./libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x102)[0xf7483d12]
./libQtCore.so.4(_ZN16QCoreApplication4execEv+0xaf)[0xf74861bf]
./libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0xf69ed177]
./libgoogleearth_free.so(_ZN5earth6client11Application3runEv+0x5cd)[0xf76cb4fd]
./libgoogleearth_free.so(+0xaad1b)[0xf76bfd1b]
./libgoogleearth_free.so(earthmain+0x247)[0xf76c0ed7]
./googleearth-bin[0x804871b]
/lib32/libc.so.6(__libc_start_main+0xe6)[0xf51c3bb6]
./googleearth-bin[0x8048661]

emerge --info
Code:

Portage 2.2.0_alpha6 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Tue, 21 Dec 2010 00:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo psergio
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 googleearth AdobeFlash-10.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/GentooPalma/PKGS/distfiles"
FEATURES="assume-digests binpkg-logs ccache distcc distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pt_PT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt pt_PT pt_BR en"
MAKEOPTS="-j9"
PKGDIR="/GentooPalma/PKGS/packages64"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acpi alsa amd64 apm arts audiofile berkdb bidi bluetooth bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus dga doc dri dts dvd dvdr dvdread eds embedded emboss encode exif fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gdu gif gphoto2 gpm gstreamer gtk hal iconv imagemagick imlib ipv6 java java5 java6 jpeg kde lcms libnotify libwww mad midi mikmod mmx mng modules motif mozilla mp3 mp4 mpeg mplayer msn mudflap multilib musepack mysql nas ncurses net nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcmcia pcre pdf perl pic png policykit ppds pppd python qt3support qt4 quicktime readline rtc scanner sdl session snmp socks5 speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd tetex threads tiff tk truetype unicode usb userlocales v4l v4l2 vcd videos vorbis webkit wifi wxwindows x264 xcb xcomposite xine xml xorg xprint xulrunner xv xvid 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT pt_BR en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Any help/comments?
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Wed Dec 29, 2010 2:07 am    Post subject: Reply with quote

Disabling the initial tips lets googleearth work fine!!!
I still can see a small message box, when starting up, but it doesn't last enough time for me to read it.
Back to top
View user's profile Send private message
22decembre
Guru
Guru


Joined: 08 May 2010
Posts: 308
Location: Paris, banlieue sud (Massy et alentours)

PostPosted: Thu Jan 27, 2011 10:32 am    Post subject: Reply with quote

the problem is that google earth is a 32bit only software !

I don't know how to manage that !
_________________
Portable Gentoo installé depuis ~fevrier 2010, kde4 ( doc : http://www.22decembre.eu/gentoo-portable/)
Serveur Maison Gentoo depuis ~avril 2010 (doc : http://www.22decembre.eu/gentoo-serveur/)
http://www.22decembre.eu
Back to top
View user's profile Send private message
lotan_rm
n00b
n00b


Joined: 21 Aug 2010
Posts: 3

PostPosted: Tue Feb 08, 2011 9:20 pm    Post subject: Reply with quote

Google Earth was crashing at startup for me as well and---as in your case---it was using

/usr/lib32/libcrypto.so.1.0.0
/usr/lib32/libcrypto.so.0.9.8

I figured that it wasn't a good idea to use both versions at the same time and moved libcrypto.so.0.9.8 to a different location.
Google Earth starts now. It has odd fonts, but that's another problem.

Hope it helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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