Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209860 - media-video/gxine-0.5.11 doesn't compile
Summary: media-video/gxine-0.5.11 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 16:15 UTC by Joseph Booker
Modified: 2009-07-11 22:34 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.39 KB, text/plain)
2008-02-12 16:17 UTC, Joseph Booker
Details
config.log (config.log,57.25 KB, text/plain)
2008-02-12 16:18 UTC, Joseph Booker
Details
working ebuild for gxine-0.5.11 (gxine-0.5.11-overlay.tar.gz,6.49 KB, application/x-tar)
2008-03-17 14:22 UTC, Till Korten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Booker 2008-02-12 16:15:49 UTC
Upon re-emerging gxine, configure fails with:

checking for XINE-LIB version >= 1.0.1...
*** 'xine-config --version' returned 1.1.10, but XINE (-1717986919.10.-249988208)
*** was found! If xine-config was correct, then it is best
*** to remove the old version of XINE. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If xine-config was wrong, set the environment variable XINE_CONFIG
*** to point to the correct copy of xine-config, and remove the file config.cache
*** before re-running configure


According to "emerge -vaC xine-lib", only 1.1.10.1 is installed

# egrep "XINE_(MAJOR|MINOR|SUB)_VERSION" /usr/include/ -R
/usr/include/xine/xine_internal.h:#define XINE_VERSION_CODE                XINE_MAJOR_VERSION*10000+XINE_MINOR_VERSION*100+XINE_SUB_VERSION
/usr/include/xine.h:#define XINE_MAJOR_VERSION 1
/usr/include/xine.h:#define XINE_MINOR_VERSION 1
/usr/include/xine.h:#define XINE_SUB_VERSION   10
egrep: warning: /usr/include/gphoto2/gphoto2: recursive directory loop

^ That is the only output, and 'locate xine.h' only returns /usr/include/xine.h, so it does not look like there is any other libraries it could be pulling in.

I have compiled this exact version of gxine before without the xinerama use flag, however now I get this error with or without xinerama

The one already compiled works fine.

Reproducible: Always

Steps to Reproduce:
1.emerge gxine
Actual Results:  
econf fails because of grossly inaccurate version number found

Expected Results:  
Compiling to continue

Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.24wifi-ge0e61383 x86_64)
=================================================================
System uname: 2.6.24wifi-ge0e61383 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor TK-53
Timestamp of tree: Tue, 12 Feb 2008 14:16:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.3-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/portage/local/layman/nouveau /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi addbookmarks agg aim aio akode alias alsa amarok amazon amd64 archive async autoreplace avahi background bash-completion bitmap-fonts bluetooth branding bzip2 cairo captury cdaudio cdda cddb cdio cdparanoia cdr chm cli connectionstatus contactnotes cpudetection cracklib crypt css curl cviewer daap dbus designer-plugin dga dillo directfb disk-partition dri dts dvd dvdchapjump dvdnav dvdr dvdread dvi emacs emboss enca encode escreen evo exif extra-cardsets fam fasttrack fbcon fbcondecor ffmpeg fftw firefox fits flac ftp galago gammu gd gdbm geoip ggi gif ginac glitz gnokii gnutella gphoto2 gpm gps grammar graphviz gs gstreamer gtk gtkhtml gzip-el hal hbci hddtemp hdf5 highlight history hpn htmlhandbook hyperestraier iconv id3tag ide imagemagick imap inkjar inotify ipod iproute2 ipv6 irc isdnlog jabber java javascript jingle john jpeg kde kdeenablefinal kdehiddenvisibility kdrive kqemu lame laptop latex libcaca libgcrypt libnotify live lm_sensors lzo mad math mecab midi mikmod mmap mmx mmxext mng mono mozdevelop mozsha1 mp2 mp3 mp4 mpeg mplayer msn mtp mudflap musepack music musicbrainz nano-syntax nas ncurses netmeeting network network-cron networkmanager nforce2 nls nova nowlistening npp nptl nptlonly nsplugin nvidia obex offensive ofx ogg old-daemons openal openft opengl openmp openstreetmap oscar pam pch pcre pdf perl plotutils plugins pmu png pnm postscript pppd python qt3 qt3support qt4 quicktime radio rar readline reflection rss rtc rtsp samba sbcl sdl sdl-image sensord session shorten shout slang smp sms snmp solver sound speex spell spl srt sse sse2 ssl startup-notification statistics stream subversion suid svg sysfs syslog t1lib taglib tagwriting tcpd tetex texteffect themes theora thesaurus tiff toolbar translater truetype truetype-fonts tunepimp twolame type1-fonts umfpack unicode upnp usb utempter vcd vcdx vim-pager vim-syntax vim-with-x vlm vnc vorbis wavpack webpresence wifi winpopup wmf x264 xattr xcb xcomposite xext xface xforms xgetdefault xine xinerama xml xorg xosd xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zip 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 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joseph Booker 2008-02-12 16:17:22 UTC
Created attachment 143320 [details]
build.log

gxine's build.log
Comment 2 Joseph Booker 2008-02-12 16:18:07 UTC
Created attachment 143321 [details]
config.log

gxine's config.log
Comment 3 Joseph Booker 2008-02-12 16:21:03 UTC
Also, xine-ui compiles fine, and xine-check runs without any problems (besides not finding /usr/share/skins)
Comment 4 John Youells 2008-02-19 00:06:10 UTC
I'm seeing this same bug on AMD 32 bit while recompiling my system with gcc 4.2.3.

Comment 5 Joseph Booker 2008-02-19 01:16:07 UTC
Getting this with x86_64-pc-linux-gnu-3.4.6, x86_64-pc-linux-gnu-4.1.1, and x86_64-pc-linux-gnu-4.2.3, so I don't think it's compiler related.
Comment 6 Jonathan Callen (RETIRED) gentoo-dev 2008-02-20 05:39:21 UTC
It appears that the test for a current version of xine-lib cannot handle a version number with more than 2 dots, so for 1.1.10.1, the version number reported involves a double->int conversion, and thus is completely incomprehensible.

The error appears to be in the 3 seds in /usr/share/aclocal/xine.m4 - it appears that the sed should be changed from 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/' to 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(\.[0-9]\)\?/\1/', and the same with \2 and \3 instead of \1.

Note that this does not appear to be compiler specific, and the problem only first appeared with media-libs/xine-lib-1.1.10.1, 1.1.10 appears to work just fine.
Comment 7 Martin Horak 2008-03-03 17:29:16 UTC
Yes, that's it. I would use this sed script:

sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'

It's more flexible if there'll be more numbers in future.

Martin
Comment 8 Till Korten 2008-03-17 14:22:24 UTC
Created attachment 146395 [details]
working ebuild for gxine-0.5.11

I was able to fix this by changing the sed lines as suggested by Martin
but not in /usr/share/aclocal/xine.m4

but in the configure file provided with gxine-0.5.11

I created a patch and a working ebuild

I hope this may find its way into the official portage tree...

for now install like this (assuming your $PROTDIR_OVERLAY in /etc/make.conf is /usr/local/portage):
mkdir -p /usr/local/portage/media-video
cd /usr/local/portage/media-video
tar -xzf /path/to/gxine-0.5.11-overlay.tar.gz
emerge gxine

enjoy :)
Comment 9 Alexander Skwar 2008-03-18 13:12:17 UTC
Seeing that as well. For me, it errored out with:

checking for XINE-LIB version >= 1.0.1... 
*** 'xine-config --version' returned -1717986918.1072798105.-1717986918, but XINE (1072798105.858993459.1076114227)
*** was found! If xine-config was correct, then it is best
*** to remove the old version of XINE. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If xine-config was wrong, set the environment variable XINE_CONFIG
*** to point to the correct copy of xine-config, and remove the file config.cache
*** before re-running configure
no
configure: error: *** Please install xine-lib (devel) first ***


I've got media-libs/xine-lib-1.1.10.1-r1 installed.

The "overlay" from Till in attachment id #146395 works fine for me.
Comment 10 José Otávio Rizzatti Ferreira 2008-03-20 01:25:59 UTC
I'm seeing the exact same error as the previous comment.
Comment 11 Daniel Tenedorio 2008-06-03 09:51:51 UTC
Thank you for that patch, it worked for me.

(In reply to comment #8)
> Created an attachment (id=146395) [edit]
> working ebuild for gxine-0.5.11
> 
> I was able to fix this by changing the sed lines as suggested by Martin
> but not in /usr/share/aclocal/xine.m4
> 
> but in the configure file provided with gxine-0.5.11
> 
> I created a patch and a working ebuild
> 
> I hope this may find its way into the official portage tree...
> 
> for now install like this (assuming your $PROTDIR_OVERLAY in /etc/make.conf is
> /usr/local/portage):
> mkdir -p /usr/local/portage/media-video
> cd /usr/local/portage/media-video
> tar -xzf /path/to/gxine-0.5.11-overlay.tar.gz
> emerge gxine
> 
> enjoy :)
> 

Comment 12 Patrick McLean gentoo-dev 2008-08-03 03:00:29 UTC
fixed in media-video/gxine-0.5.503