Subject: VLC (VideoLan Client) Issue: vlc-0.6.2 will not build Error Message: libmpeg2.c: In function `RunDecoder': libmpeg2.c:224: warning: implicit declaration of function `mpeg2_pts' libmpeg2.c:382: error: `PIC_FLAG_PTS' undeclared (first use in this function) libmpeg2.c:382: error: (Each undeclared identifier is reported only once libmpeg2.c:382: error: for each function it appears in.) libmpeg2.c:383: error: structure has no member named `pts' make[4]: *** [liblibmpeg2_plugin_a-libmpeg2.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2/modules/codec' make[3]: *** [all-libmpeg2] Error 1 make[3]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2' make: *** [all] Error 2 Emerge Info: Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirrors.tds.net/gentoo http://adelie.polymtl.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx X alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib" Code listing for beginning on lines 224, 382 where 'make' fails in the "RunDecoder" function of libmpeg2.c: [Line 224] mpeg2_pts( p_dec->p_mpeg2dec, (uint32_t)p_dec->p_pes->i_pts ); p_dec->i_previous_pts = p_dec->i_current_pts; [Line 226] p_dec->i_current_pts = p_dec->p_pes->i_pts; [Line 382] (p_dec->p_info->current_picture->flags & PIC_FLAG_PTS) ? ( (p_dec->p_info->current_picture->pts == (uint32_t)p_dec->i_current_pts) ? [Line 385] p_dec->i_current_pts : p_dec->i_previous_pts ) : 0 Steps taken to rectify: 1. Reviewed the source file /var/tmp/portage/vlc-0.6.2/modules/codec/libmpeg2.c to identify the line number(s) where 'make' fails. 2. 'make' fails on line 224, then 382 and 383 with the errors identified in the ouput above. 3. Individually emerged 'libmpeg2-0.4.0b', then 'ffmpeg-0.4.7'; both 'emerged' with no errors. 4. cd /var/tmp/portage/vlc-0.6.2 5. make distclean 6. Executed a manual './configure' - no problems here 7. Executed "make"; 'make' fails with the same error as above... 8. emerged MPlayer as a test...1) Does it emerge cleanly? YES; 2) If yes, then will it play files? YES. No problem, even with extremely large files, other than the fact that this computer doesn't have the hardware to play files adequately under Linux.(it is a "test-box" using older hardware after-all...) 9. Checked the 'Include' files, including /var/tmp/portage/work/vlc-0.6.2/modules/codec/libmpeg2.c for any reference to 'mpeg2_pts'; none found. 10. Not being a programmer, will assume that the function 'mpeg2_pts' cannot be found in any Include file, and therefore the error. 11. Hopefully, some of this will help those more competent than I in tracking down the problem.