Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lxdream won't build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Silent-Hunter
Apprentice
Apprentice


Joined: 07 Jul 2013
Posts: 166

PostPosted: Thu Aug 14, 2014 8:39 pm    Post subject: lxdream won't build Reply with quote

I can't seem to get lxdream to build. It does get pretty far though:

Code:
emerge --info '=games-emulation/lxdream-0.9.1-r2::gentoo'
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:    12286032 total,   8508420 free
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.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo steam-overlay mozilla Techwolf luman psix-overlay AstroFloyd local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo rsync://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/mozilla /var/lib/layman/techwolf /var/lib/layman/luman /var/lib/layman/psix /var/lib/layman/AstroFloyd /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mate mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 sse3 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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


Code:
emerge -pqv '=games-emulation/lxdream-0.9.1-r2::gentoo'
[ebuild  N    ] games-emulation/lxdream-0.9.1-r2  USE="sdl -debug -lirc -profile -pulseaudio"
Back to top
View user's profile Send private message
Silent-Hunter
Apprentice
Apprentice


Joined: 07 Jul 2013
Posts: 166

PostPosted: Thu Aug 14, 2014 8:43 pm    Post subject: Reply with quote

The build log is too long to post, but here's where it went wrong:

Code:
x86_64-pc-linux-gnu-gcc -D__EXTENSIONS__ -D_BSD_SOURCE -D_GNU_SOURCE -march=native -O2 -pipe -g -fexceptions -fno-strict-aliasing -fomit-frame-pointer -std=c99  -Wl,-O1 -Wl,--as-needed -o lxdream -rdynamic  lxdream-main.o lxdream-version.o lxdream-config.o lxdream-mem.o lxdream-sdram.o lxdream-watch.o lxdream-asic.o lxdream-syscall.o lxdream-bios.o lxdream-dcload.o lxdream-gdbserver.o lxdream-netutil.o lxdream-lxpaths.o lxdream-ide.o lxdream-gdimage.o lxdream-gdrom.o lxdream-nrg.o lxdream-cdi.o lxdream-gdi.o lxdream-edc_ecc.o lxdream-dreamcast.o lxdream-eventq.o lxdream-sh4.o lxdream-intc.o lxdream-sh4mem.o lxdream-timer.o lxdream-dmac.o lxdream-mmu.o lxdream-sh4core.o lxdream-sh4dasm.o lxdream-sh4mmio.o lxdream-scif.o lxdream-sh4stat.o lxdream-xltcache.o lxdream-pmm.o lxdream-cache.o lxdream-armcore.o lxdream-armdasm.o lxdream-armmem.o lxdream-aica.o lxdream-audio.o lxdream-pvr2.o lxdream-pvr2mem.o lxdream-tacore.o lxdream-rendsort.o lxdream-texcache.o lxdream-yuv.o lxdream-rendsave.o lxdream-scene.o lxdream-gl_sl.o lxdream-gl_slsrc.o lxdream-glutil.o lxdream-glrender.o lxdream-maple.o lxdream-controller.o lxdream-kbd.o lxdream-mouse.o lxdream-lightgun.o lxdream-vmu.o lxdream-loader.o lxdream-bootstrap.o lxdream-util.o lxdream-gdlist.o lxdream-vmuvol.o lxdream-vmulist.o lxdream-display.o lxdream-audio_null.o lxdream-video_null.o lxdream-cd_mmc.o lxdream-video_gl.o lxdream-gl_fbo.o lxdream-hotkeys.o lxdream-plugin.o lxdream-sh4x86.o lxdream-sh4trans.o lxdream-mmux86.o lxdream-x86dasm.o lxdream-i386-dis.o lxdream-dis-init.o lxdream-dis-buf.o lxdream-gtkui.o lxdream-gtk_win.o lxdream-gtkcb.o lxdream-gtk_mmio.o lxdream-gtk_debug.o lxdream-gtk_dump.o lxdream-gtk_ctrl.o lxdream-gtk_path.o lxdream-gtk_gd.o lxdream-gtk_hotkeys.o lxdream-net_glib.o lxdream-video_gtk.o  lxdream-paths_unix.o  lxdream-video_glx.o        lxdream-cd_linux.o   lxdream-joy_linux.o -lGL -lz -ldl  -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig  -lpng16       
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: lxdream-video_glx.o: undefined reference to symbol 'XQueryExtension'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'XQueryExtension' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [lxdream] Error 1
make[3]: Leaving directory `/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1'
make: *** [all] Error 2
 * ERROR: games-emulation/lxdream-0.9.1-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=games-emulation/lxdream-0.9.1-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/lxdream-0.9.1-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1'
 * S: '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1'

>>> Failed to emerge games-emulation/lxdream-0.9.1-r2, Log file:

>>>  '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/temp/build.log'
 * Messages for package games-emulation/lxdream-0.9.1-r2:
 * ERROR: games-emulation/lxdream-0.9.1-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=games-emulation/lxdream-0.9.1-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/lxdream-0.9.1-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1'
 * S: '/var/tmp/portage/games-emulation/lxdream-0.9.1-r2/work/lxdream-0.9.1'
Back to top
View user's profile Send private message
kamshi
n00b
n00b


Joined: 22 Sep 2014
Posts: 1

PostPosted: Mon Sep 22, 2014 12:21 am    Post subject: Reply with quote

I "fixed" this by copying the distfile /usr/portage/distfiles/lxdream-0.9.1.tar.gz into my home-folder and extracting it. After that, I ran ./configure and tried to make it. Same error. The missing XQueryExtension can be fixed by manually adding it to the following linker option in the makefiles (in lxdream-0.9.1/ and lxdream-0.9.1/src/): -lX11

LIBS = -lX11
LXDREAM_LIBS = -lGL -lz -ldl -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lX11

After that, the compiler complains about another missing reference: "undefined reference to symbol 'sincosf@@GLIBC_2.2.5'". As far as I know, this happens because of the redesign of newer gcc versions. Adding -lm to the above linker flags fixes this. After that, you can make the program. Please remember that if you run ./configure again, you have to add the linker flags again, so if you want to install lxdreams into a different directory than the default one (for example, into the /opt/bin folder", you should run ./configure --prefix=/opt

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