>>> emerge (2 of 2) media-video/oxine-0.2 to / >>> md5 src_uri ;-) oxine-0.2.tar.gz >>> Unpacking source... >>> Unpacking oxine-0.2.tar.gz to /var/tmp/portage/oxine-0.2/work >>> Source unpacked. nls ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-lirc configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking for strerror in -lcposix... no checking for i686-pc-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking command to parse nm output... ok checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking for ptrdiff_t... yes checking whether byte ordering is bigendian... no checking for pthread_create in -lpthread... yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for XTestFakeKeyEvent in -lXtst... yes checking for xine-config... /usr/bin/xine-config checking for XINE-LIB version >= 1.0.0... yes checking for strsep... yes checking for strpbrk... yes checking for setenv... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating m4/Makefile config.status: creating data/Makefile config.status: creating doc/Makefile config.status: creating src/config.h config.status: executing depfiles commands Making all in m4 make[1]: Entering directory `/var/tmp/portage/oxine-0.2/work/oxine-0.2/m4' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/var/tmp/portage/oxine-0.2/work/oxine-0.2/m4' Making all in src make[1]: Entering directory `/var/tmp/portage/oxine-0.2/work/oxine-0.2/src' make all-am make[2]: Entering directory `/var/tmp/portage/oxine-0.2/work/oxine-0.2/src' if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -Wall -march=pentium4 -O3 -pipe -fomit-frame-pointer -MT oxine.o -MD -MP -MF ".deps/oxine.Tpo" \ -c -o oxine.o `test -f 'oxine.c' || echo './'`oxine.c; \ then mv ".deps/oxine.Tpo" ".deps/oxine.Po"; \ else rm -f ".deps/oxine.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -Wall -march=pentium4 -O3 -pipe -fomit-frame-pointer -MT odk.o -MD -MP -MF ".deps/odk.Tpo" \ -c -o odk.o `test -f 'odk.c' || echo './'`odk.c; \ then mv ".deps/odk.Tpo" ".deps/odk.Po"; \ else rm -f ".deps/odk.Tpo"; exit 1; \ fi odk.c: In function `get_pos_length': odk.c:788: warning: implicit declaration of function `usleep' oxine.c: In function `parse_arguments': oxine.c:640: error: `opterr' undeclared (first use in this function) oxine.c:640: error: (Each undeclared identifier is reported only once oxine.c:640: error: for each function it appears in.) oxine.c:642: warning: implicit declaration of function `getopt' oxine.c:657: error: `optarg' undeclared (first use in this function) oxine.c:663: error: `optopt' undeclared (first use in this function) oxine.c:674: error: `optind' undeclared (first use in this function) make[2]: *** [oxine.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/oxine-0.2/work/oxine-0.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/oxine-0.2/work/oxine-0.2/src' make: *** [all-recursive] Error 1 !!! ERROR: media-video/oxine-0.2 failed. !!! Function src_compile, Line 28, Exitcode 2 !!! (no error message) root:~# emerge info Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1300MHz Gentoo Base System version 1.6.5 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://mirrors.tds.net/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/fluidportage/trunk" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm avi berkdb bitmap-fonts bzlib cdr crypt directfb dvd encode f77 fam fbcon flac gdbm gif gpm gtk gtk2 imagemagick imlib java jpeg libg++ libwww mad mmx mpeg ncurses nls opengl pam pdflib perl png python readline samba sdl slang spell sse ssl svg svga tcltk tcpd tiff truetype unicode x86 xml2 xpm xv zlib"
Created attachment 44504 [details, diff] Fixes compile error due to missing getopt.h
Created attachment 44505 [details, diff] Fixes link error against libXtst
Created attachment 44507 [details] Modified ebuild to include the patches This ebuild compiles and installs fine on my system
This works for me too. Can these patches/this ebuild be submitted to portage?
Fixed in CVS, thanks.