Summary: | games-util/atlas-0.3.1_p20101101-r1: fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Maciej Mrozowski <reavertm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | games, jimishol, kripton, mart, xmw |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
games-util/atlas-0.3.1_p20101101-r1 fails to compile
Patch for compile errors games-util/atlas |
Description
Diego Elio Pettenò (RETIRED)
2013-02-20 12:59:37 UTC
The fix for that problem is rather simple: add"#include <vector>\nusing namespace std;" to the affected file. However, atlas fails trying to link, not finding some libraries that look related to simgear. Downgrading to 2.8.0 didn't help. i think i have same problem Portage 2.1.12.5 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.5.7-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_460_@_2.53GHz-with-gentoo-2.2 KiB Mem: 3847584 total, 1743464 free KiB Swap: 5241852 total, 5241852 free Timestamp of tree: Sun, 16 Jun 2013 18:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5, 3.2.5, 3.3.2 dev-util/cmake: 2.8.11.1 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.2 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.7.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Broadcom AdobeFlash-10.3" 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" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=native -O2 -pipe" DISTDIR="/usr/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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/" LANG="el_GR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4 -l3.95" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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="X a52 aac acl acpi alsa amd64 aperfmperf apic arat arch_perfmon berkdb branding bts bzip2 cairo cdda cdr clflush cli cmov colord consolekit constant_tsc cracklib crypt cups cx16 cx8 cxx dbus de dri ds_cpl dtes64 dts dvd dvdr eds emboss encode ept est evo exif fam firefox flac flexpriority fortran fpu fxsr gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ht iconv ida java jpeg lahf_lm lcms ldap libnotify libsecret lm mad mca mce mmx mng modules monitor mp3 mp4 mpeg msn msr mtrr mudflap multilib nautilus ncurses networkmanager nls nonstop_tsc nopl nptl nx ogg opengl openmp pae pam pango pat pbe pcre pdcm pdf pebs pge png pni policykit popcnt ppds pse pse36 pulseaudio qt3support rdtscp readline rep_good sdl sep session socialweb spell ss sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg syscall tcpd tiff tm tm2 tpr_shadow truetype tsc udev udisks unicode upower usb v4l v4l2 vme vmx vnmi vorbis vpid wxwidgets x264 xcb xml xtopology xtpr xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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="evdev synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="el" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon intel" 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, USE_PYTHON ================================================================= Package Settings ================================================================= games-util/atlas-0.3.1_p20101101-r1 was built with the following: USE="(multilib)" Created attachment 351146 [details]
games-util/atlas-0.3.1_p20101101-r1 fails to compile
build.log
I run into this problem as well and I solved it a patch I will attach. I had two compile errors: first the class "vector" was not found. The solution is described at [1]. Secondly, simgear apperently changed some library names [2]. I also applied that fix in my patch. Note that the second part might only need to be applied for some version of simgear (I installed flightgear 2.10). [1] http://www.flightgear.org/forums/viewtopic.php?f=31&t=13094 [2] http://osdir.com/ml/flightgear-sim/2012-10/msg00123.html Created attachment 353782 [details, diff] Patch for compile errors games-util/atlas The patch I announched in comment 4. Thanks for the patch! I can confirm that it fixes all atlas compilation errors and it builds fine here against simgear-2.12.1 Thanks for the patch. I had this problem as well and (once I'd learned how to apply patches.....) it built properly. Unfortunately Map crashed when I tried to run it. "Map: Subbucket.cxx:192: bool Subbucket::load(Bucket::Projection): Assertion `_chunk.get_tris_v().size() == 0' failed" http://forum.flightgear.org/viewtopic.php?f=31&t=21304 This is apparently because with Flightgear 3 and the new scenery the format changed. I tried the CVS version in the end (v 0.4.9), and that did work with a bit of fiddling. Is it worth getting an upgraded version into Portage? Apparently they have some alternative moving maps coming but I quite like Atlas. Thanks for the patch. Just to add to my comment above, I use TerraSync for downloading the scenery. Its possible that if the scenery is downloaded manually then Map doesn't crash. there is a possible "version bump", erm. patchlevel bump with code from 2012 http://packages.ubuntu.com/precise/fgfs-atlas (In reply to Mart Kelder from comment #5) > Created attachment 353782 [details, diff] [details, diff] > Patch for compile errors games-util/atlas > > The patch I announched in comment 4. I'm willing to step up for this package. I've added a livevcs ebuild and a snapshot of the latest state to my overlay (layman -a xmw) for runtime testing. The linking issue can be addressed by `egamesconf --enable-simgear-shared`. (In reply to Michael Weber from comment #10) > [...] for runtime testing. So far, - I need a symlink from /usr/share/games/flightgear/Atlas to ../Atlas - can run `Map --png --atlas=/home/michael/.fgfs/Atlas --fg-scenery=/home/michael/.fgfs/TerraSync` - `Atlas --atlas=/home/michael/.fgfs/Atlas --fg-scenery=/home/michael/.fgfs/TerraSync` fails with Loading navaids from /usr/share/games/flightgear/Navaids/nav.dat.gz UNKNOWN: LOWI 26 LOC-GS ... done Loading fixes from /usr/share/games/flightgear/Navaids/fix.dat.gz ... done Loading airways from /usr/share/games/flightgear/Navaids/awy.dat.gz ... done Loading airports from /usr/share/games/flightgear/Airports/apt.dat.gz AirportsOverlay::load: "/usr/share/games/flightgear/Airports/apt.dat.gz": unknown version 850. terminate called after throwing an instance of 'std::runtime_error' what(): unknown airports file version zsh: abort Atlas --atlas=/home/michael/.fgfs/Atlas Which has been previously seen, reported and fixed at [1], but the files went offline. I've contacted the author, hang in there. [1] http://forum.flightgear.org/viewtopic.php?f=31&t=21972#p202275 I removed ancient 0.3.1 version and added latest 0.4.9-cvs20140320. Please check it out. Btw, source package is from Fedora repository: http://pkgs.fedoraproject.org/repo/pkgs/FlightGear-Atlas/ |