Summary: | games-simulation/fgrun-1.6.0 fails to find dev-games/openscenegraph libs during linking | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jimis Hol <jimishol> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | elpresidento, reavertm, tranzistoren |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
enviroment
build.log of fgrun fgrun-1.6.0 build log build log in english environment fgrun src patch |
Description
Jimis Hol
2012-09-29 14:32:40 UTC
part of build.log before error is mv -f .deps/run_posix.Tpo .deps/run_posix.Po x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/games/share/locale\" -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -o fgrun wizard.o wizard_funcs.o advanced.o advanced_funcs.o AirportBrowser.o AirportTable.o Fl_Table.o Fl_Table_Row.o Fl_OSG.o Fl_Heading_Dial.o main.o io.o fgfsrc.o logwin.o parkingloader.o settings.o util.o run_posix.o fgrun_pty.o -lsgmodel -lsgscreen -lsgprops -lsgxml -lsgdebug -lsgbvh -lsgmaterial -lsgmodel -lsgutil -lsgstructure -lsgprops -lsgtgdb -lsgmath -lsgmisc -lsgbvh -lsgio -lsgbucket -lsgmodel -lsgutil -lsgthreads -losgParticle -losgSim -losgViewer -losgGA -losgText -losgDB -losgUtil -losg -lOpenThreads -lfltk_gl -lfltk -lXft -lXinerama -lpthread -L/usr/lib64/fltk-1 -Wl,-O1 -Wl,--as-needed -lfltk_gl -lGLU -lGL -lfltk -lXext -lpthread -ldl -lm -lX11 -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lm -lz -lutil -losgFX /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsgmodel /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsgscreen Attach full build log. impossible for me to attach. submit does not work in bugzilla. So http://bpaste.net/show/48404/ this and perhaps greek is a problem of mine. You must be doing something wrong - that log is quite small, so you're not hitting size limit. Anyway, it's a little complicated. It seems that configure find the libs, but for some reason linker does not. What are the values of linker vars in environment ? There might be a hint in config.log. But that's not the really tricky part. In the meanwhile, fgrun 1.6.2 has been released, but it switched to cmake completely, so any fix found here, even if still needed, won't be valid for the new version. Created attachment 325394 [details]
enviroment
i attach (today attachment is working) enviroment but as you said perhaps its better to wait next fgrun Created attachment 325398 [details]
build.log of fgrun
i try to attach build.log as i had it with wgetpaste. If it works then the problem of not be able to be attach is the permission rights. build.log is created with root rights (i think only for reading). So this is a try where i changed these rights.
There must be an error in the ebuild IMHO. It won't compile for me too Reproducible: always will add my build.log in the attachment. emerge --info: Portage 2.1.11.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r2, 3.3.8-gentoo x86_64) ================================================================= System uname: Linux-3.3.8-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1 Timestamp of tree: Tue, 09 Oct 2012 22:30:01 +0000 app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.8-r3 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.10.5 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.3 sys-devel/binutils: 2.22.90 sys-devel/gcc: 4.5.3-r2, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.5 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="pl_PL pl en_GB" MAKEOPTS="-j5" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative directb double-precision dri dts dvd dvdr emboss encode exif fam firefox flac fortran g3dvl gadu gd gdbm gif gpm hddtemp iconv ipv6 jpeg jpeg2k kde kipi lastfm lcms ldap libnotify libv4l mad mms mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ntfs nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline rtc rtmp scanner sdl semantic-desktop sensors session smb spell sse sse2 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb usbfat v4l v4l2 vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xv xvid xvmc 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" CALLIGRA_FEATURES="kexi words flow plan sheets 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl_PL pl en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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 Created attachment 326138 [details]
fgrun-1.6.0 build log
fgrun always fails during linking
(In reply to comment #9) > Created attachment 326138 [details] > fgrun-1.6.0 build log > > fgrun always fails during linking never post build logs in non-english languages. It is annoying although it might not matter here. Created attachment 328628 [details]
build log in english
Created attachment 328630 [details]
environment
It is not a problem with openscenegraph libs, but with simgear libs. I tried to replace link options "-lsg*" with "-lSimGearCore -lSimGearScene" (the libraries actually installed by simgear) and it compiles fine. I also noticed the missing `epatch_user` in fgrun ebuild (so I had to copy the whole ebuild to fix it locally). I will attach my patch, however, it will not work for versions of simgear which install the sg* libraries instead of SimGearCore, SimGearScene (if there are any). Tested with: simgear-2.10.0, fgrun-1.6.0 Created attachment 373890 [details, diff]
fgrun src patch
Please try fgrun-3.0.0. It seems upstream no longer provides tarballs so we need to take them from tags from git repo. |