Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34032 - xine-lib-1_beta12 fails to build
Summary: xine-lib-1_beta12 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 09:23 UTC by Anno v. Heimburg
Modified: 2004-02-12 15:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anno v. Heimburg 2003-11-21 09:23:27 UTC
Hi!

On my system (Athlon XP), xine-lib-1_beta12 fails to build. It is unfortunately unclear which component causes the problem.

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../src/input/libdvdnav/ -std=gnu89 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -mcpu=athlon -I/usr/kde/3.1/include/artsc -c input_v4l.c -MT input_v4l.lo -MD -MP -MF .deps/input_v4l.TPlo  -DPIC -o input_v4l.lo
In file included from /usr/include/linux/videodev2.h:16,
                 from /usr/include/linux/videodev.h:14,
                 from input_v4l.c:33:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
In file included from ../../include/xine.h:51,
                 from ../../src/xine-engine/xine_internal.h:43,
                 from input_v4l.c:38:
/usr/include/sys/time.h:58: redefinition of `struct timezone'
/usr/include/sys/time.h:95: parse error before numeric constant
/usr/include/sys/time.h:109: redefinition of `struct itimerval'
In file included from ../../include/xine.h:52,
                 from ../../src/xine-engine/xine_internal.h:43,
                 from input_v4l.c:38:
/usr/include/time.h:160: redefinition of `struct itimerspec'
make[4]: *** [input_v4l.lo] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_beta12/work/xine-lib-1-beta12/src/input'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_beta12/work/xine-lib-1-beta12/src/input'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_beta12/work/xine-lib-1-beta12/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_beta12/work/xine-lib-1-beta12'
make: *** [all] Fehler 2

TIA,
Anno.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-11-27 14:12:40 UTC
media-libs/xine-lib-1_rc2 is now stable
Comment 2 Anno v. Heimburg 2003-11-28 02:47:28 UTC
Sadly, that shows the exact same error.

Anno.
Comment 3 Anno v. Heimburg 2003-11-28 03:27:44 UTC
I just noticed some error while configuring. Does this shed any light on the issue?

checking linux/videodev.h usability... no
checking linux/videodev.h presence... yes
configure: WARNING: linux/videodev.h: present but cannot be compiled
configure: WARNING: linux/videodev.h: check for missing prerequisite headers?
configure: WARNING: linux/videodev.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for linux/videodev.h... yes
Comment 4 Anno v. Heimburg 2003-11-28 04:16:50 UTC
It seems that configure sees that stuff with linux/videodev.h is not compilable, and later goes ahead and activates it anyway. Here is the config.log snippet:

configure:25434: checking linux/videodev.h usability
configure:25447: gcc -c   conftest.c >&5
In file included from /usr/include/linux/videodev2.h:16,
                 from /usr/include/linux/videodev.h:14,
                 from configure:25546:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
configure:25450: $? = 1
configure: failed program was:
| #line 25436 "configure"
| /* confdefs.h.  */


BTW, why doesn't this work? I'm using the linux-headers-2.4.19 (current stable).
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-11-28 08:35:50 UTC
which autoconf/automake version is installed ?
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-11-28 08:36:05 UTC
also please paste
#emerge info
Comment 7 Anno v. Heimburg 2003-11-29 04:25:53 UTC
autoconf 2.57-r1

$ emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(TM) XP 2600+
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /etc/ntp.conf /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs fixpackages"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ rsync://linux.rz.ruhur-uni-bochum.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss crypt mad xmms gdbm slang svga java gpm perl esd motif sse X gtk2 gnome alsa apache2 apm arts berkdb avi cdr dvd dvdr cups encode ethereal fastcgi fbcon foomaticdb gif gtk imap imlib jpeg junit kde libwww libg++ mbox matrox mikmod mmx mpeg mozilla ncurses nls oggvorbis pam pdflib png python qt quicktime readline sasl sdl spell tcpd tetex tiff opengl ssl truetype usb videos wmf xml2 xv zlib dga"
Comment 8 Anno v. Heimburg 2003-12-05 01:53:14 UTC
It seems that my /usr/include/linux directory was corrupted. Whyever that happend.
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2004-02-12 12:10:18 UTC
did you fix it? if yes, how?

got the same error.
Comment 10 Anno v. Heimburg 2004-02-12 15:05:19 UTC
IIRC, I re-emerged linux-headers.