emerge =media-libs/libdv-0.104-r1 fails on my environment as follows; /bin/sh ../libtool --silent --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -pipe -Wall -o libdv.la -rpath /usr/lib64 -version-info 4:2:0 dv.lo dct.lo idct_248.lo weighting.lo quant.lo vlc.lo place.lo parse.lo bitstream.lo YUY2.lo YV12.lo rgb.lo audio.lo util.lo encode.lo headers.lo enc_input.lo enc_audio_input.lo enc_output.lo vlc_x86_64.lo quant_x86_64.lo idct_block_mmx_x86_64.lo dct_block_mmx_x86_64.lo rgbtoyuv_x86_64.lo encode_x86_64.lo transpose_x86_64.lo -lm if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -MT dovlc.o -MD -MP -MF ".deps/dovlc.Tpo" -c -o dovlc.o dovlc.c; \ then mv -f ".deps/dovlc.Tpo" ".deps/dovlc.Po"; else rm -f ".deps/dovlc.Tpo"; exit 1; fi /bin/sh ../libtool --silent --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -pipe -Wall -o dovlc dovlc.o libdv.la -lm dovlc.o: In function `main': dovlc.c:(.text+0x1d8): undefined reference to `dv_peek_vlc' collect2: ld returned 1 exit status make[3]: *** [dovlc] Error 1 make[3]: Leaving directory `/var/tmp/portage/libdv-0.104-r1/work/libdv-0.104/libdv' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/libdv-0.104-r1/work/libdv-0.104/libdv' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libdv-0.104-r1/work/libdv-0.104' make: *** [all] Error 2 My emerge info says as follows; Portage 2.0.53_rc6 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.13-gentoo-r5 x86_64) ================================================================= System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre9 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r1, 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp" LINGUAS="ja en" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acl alsa arts avi berkdb bitmap-fonts bmp bonobo bzlib canna cdparanoia cdr chasen cjk crypt cscope cups curl doc dv dvdr eds emboss emul-linux-x86 encode esd fam flash font-server foomaticdb fortran gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit kde ldap libg++ libwww linguas_ja lzw lzw-tiff m17n-lib mad mbox mikmod milter mime mng motif mozilla mp3 mpeg mule ncurses nls nptl objc ogg oggvorbis opengl pam pcre pdflib perl php png postgres python qt quicktime readline samba sdk sdl slang speex spell ssl svg symlink tcltk tcpd tiff truetype-fonts type1-fonts udev unicode usb userlocales vorbis wmf xml xml2 xmms xpm xv zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS My gcc and glibc version is; gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) glibc-2.3.5-r3
Created attachment 71992 [details, diff] This patch modifies vlc.h, 'extern inline' -> 'static inline' In my environment, this patch, that modifies 'extern __inline__' to 'static __inline__', does workaround.
I can't reproduce here, but the patch seems reasonable to me, so I've added it, thanks for it :)