Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88378 - vlc 0.8.1-r1 dosen't compile
Summary: vlc 0.8.1-r1 dosen't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 09:40 UTC by Diego Alcorta
Modified: 2005-04-13 07:40 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 Diego Alcorta 2005-04-08 09:40:41 UTC
I can't emerge vlc-0.8.1-r1

Reproducible: Always
Steps to Reproduce:
1.make vlc ~x86 by echoing portage.keywords
2.emerge vlc

Actual Results:  
time.c: In function `FormatTime':
time.c:124: error: storage size of 'loctime' isn't known
time.c:130: warning: implicit declaration of function `time'
time.c:134: warning: implicit declaration of function `localtime_r'
time.c:135: warning: implicit declaration of function `strftime'
time.c:124: warning: unused variable `loctime'
make[4]: *** [libtime_plugin_a-time.o] Error 1
make[4]: Leaving directory
`/var/tmp/portage/vlc-0.8.1-r1/work/vlc-0.8.1/modules/video_filter'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory
`/var/tmp/portage/vlc-0.8.1-r1/work/vlc-0.8.1/modules/video_filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/vlc-0.8.1-r1/work/vlc-0.8.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vlc-0.8.1-r1/work/vlc-0.8.1'
make: *** [all] Error 2


Expected Results:  
emerge of vlc-0.8.1-r1 should been succesfull

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr  4 2005, 00:00:48)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -O2 -fomit-frame-pointer -pipe -mfpmath=sse
-funroll-loops -fforce-addr -frename-registers -fprefetch-loop-arrays -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /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="-march=pentium-m -O2 -fomit-frame-pointer -pipe -mfpmath=sse
-funroll-loops -fforce-addr -frename-registers -fprefetch-loop-arrays -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa avi berkdb bitmap-fonts bzip2 cjk crypt cups directfb
divx4linux doc dvd dvdread esd fbcon font-server fortran gif gimp gimpprint
gnome gphoto2 gpm gstreamer gtk gtk2 hal howl imlib java jpeg matroska mmx
mmxext mng mozilla mp3 mpeg ncurses nls nptl oggvorbis opengl oss pam perl png
pnp python quicktime readline real samba sdl skey spell sse ssl tcltk tcpd
threads tiff truetype truetype-fonts trusted type1-fonts unicode wxwindows xmms
xosd xprint xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 1 Matthijs Langenberg 2005-04-10 08:36:41 UTC
I've got the same compile error also. 

=== BEGIN EMERGE INFO OUTPUT ===
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr  2 2005, 15:00:32)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-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/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 autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.nutsmaas.nl/gentoo/"
LANG="nl_NL@euro"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bzlib caps cdb cdparanoia cdr crypt cups curl debug directfb divx4linux dvdr dvdread emboss encode ethereal exif fam fbcon ffmpeg fftw flac foomaticdb fortran ftp gdbm gif gpm gstreamer gtk2 hal imagemagick imap imlib ipv6 jabber java javascript jpeg junit kde kdeenablefinal libcaca libg++ libwww mad memlimit mhash mikmod mime mmap motif mp3 mpeg mpi msession msn nas ncurses ncursus nls nocardbus nptl nptlonly ogg oggvorbis openal opengl oss pam pdflib perl png posix profile python qt quicktime readline samba sdl session sharedmem shorten simplexml sockets source speex spell sse ssl svg svga tcpd theora threads tiff treutype truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd videos win32codecs wxwindows xml xml2 xmms xpm xsl xv xvid zlib linguas_nl"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
=== END EMERGE INFO OUTPUT ===

So please take a look at time.c 
Comment 2 Derk-Jan Hartman 2005-04-10 16:08:44 UTC
This will require a patch.
modules/video_filter/time.c  needs this added:

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

issue has been fixed upstream
Comment 3 Bill Kenworthy 2005-04-10 22:56:21 UTC
Didnt work for me as the missing tm is in /usr/include/time.h, not /usr/include/sys/time.h
I also removed the #ifdef, but that was while I was looking into why it failed.
Comment 4 Horace Ip 2005-04-12 10:49:46 UTC
Just want to confirm Bill's comments.

Add #include <time.h> solves the problem
Comment 5 Derk-Jan Hartman 2005-04-13 05:24:55 UTC
indeed. i was incorrect. it's <time.h>
Comment 6 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-13 07:40:46 UTC
thanks for reporting, made a patch using the upstream fix from cvs. in cvs now.