Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128840 - media-video/vls-0.5.6-r2 doesn't compile with libdvdread-0.9.5-r1
Summary: media-video/vls-0.5.6-r2 doesn't compile with libdvdread-0.9.5-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-04 16:39 UTC by Martin Mokrejš
Modified: 2006-05-10 15:22 UTC (History)
1 user (show)

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


Attachments
__STDC_LIMIT_MACROS needs to be defined ... (vls-0.5.6-dvdread.patch,1.29 KB, patch)
2006-05-07 17:44 UTC, Axel Dyks
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2006-04-04 16:39:36 UTC
cd src/modules/dvdreader && make ../../../bin/dvdreader.so
make[1]: Entering directory `/var/tmp/portage/vls-0.5.6-r2/work/vls-0.5.6/src/modules/dvdreader'
Generating dependancies for dvdreader.cpp...
In file included from dvdreader.cpp:38:
/usr/include/dvdread/ifo_types.h:32:2: #error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
Compiling dvdreader.cpp...
i686-pc-linux-gnu-g++ -I/usr/include/libdvb -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DCONFIG_PATH='"/etc/videolan/vls"' -DBUGGY_VLC -DYY_NO_UNPUT -DSYSLOG  -D__PLUGIN__  -fPIC -o obj/dvdreader.o -c dvdreader.cpp 
In file included from dvdreader.cpp:38:
/usr/include/dvdread/ifo_types.h:32:2: #error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
make[1]: *** [obj/dvdreader.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/vls-0.5.6-r2/work/vls-0.5.6/src/modules/dvdreader'
make: *** [dvdreader] Error 2

!!! ERROR: media-video/vls-0.5.6-r2 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  vls-0.5.6-r2.ebuild, line 45:   Called die



*  media-libs/libdvdread
      Latest version available: 0.9.5-r1
      Latest version installed: 0.9.5-r1


Portage 2.1_pre7-r4 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-rc5 i686)
=================================================================
System uname: 2.6.16-rc5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/spool/PBS"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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 FFmpeg X Xaw3d a52 aac aalib acpi alsa amr apache2 apm arts ati avi berkdb bitmap-fonts bonobo caca cdparanoia cdr cpudetection crypt cscope ctype cups dba dga directfb divx divx5 divx5linux dri dts dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb ipv6 isdnlog ithreads java jpeg lcms leim libcaca libg++ libwww lirc live lzo mad matroska mcal mesa mhash mikmod ming mmx mmx2 mmxext motif mozilla mp3 mpeg mule musepack mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdflib perl plotutils plugin png ppds pppd pthread pthreads python qt qtx quicktime readline rtc samba scanner scp sdl server session slp spell sse sse2 ssl stroke tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32 win32codecs winvidix wmf x264 xanim xml xml2 xmms xosd xv xvid xvmc zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Martin Mokrejš 2006-04-04 16:44:25 UTC
On another machine I get something related.

>>> checksums files   ;-) ldvd-1.9.4.ebuild
>>> checksums files   ;-) files/digest-ldvd-1.9.4
>>> checksums src_uri ;-) ldvd-1.9.4.tar.bz2
>>> Unpacking source...
>>> Unpacking ldvd-1.9.4.tar.bz2 to /var/tmp/portage/ldvd-1.9.4/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ldvd-1.9.4/work/ldvd-1.9.4 ...
gcc -march=pentium4 -mcpu=pentium4 -mmmx -msse -msse2 -msse3 -O3 -fomit-frame-pointer -funroll-loops -pipe   -c -o ldvd-ls.o ldvd-ls.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from /usr/include/dvdread/ifo_read.h:24,
                 from ldvd-ls.c:18:
/usr/include/dvdread/ifo_types.h:32:2: #error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
In file included from /usr/include/dvdread/ifo_read.h:24,
                 from ldvd-ls.c:18:
/usr/include/dvdread/ifo_types.h:68: error: syntax error before "uint8_t"
/usr/include/dvdread/ifo_types.h:70: error: syntax error before "second"
/usr/include/dvdread/ifo_types.h:71: error: syntax error before "frame_u"
/usr/include/dvdread/ifo_types.h:78: error: syntax error before "uint8_t"
/usr/include/dvdread/ifo_types.h:143: error: syntax error before "uint16_t"
/usr/include/dvdread/ifo_types.h:145: error: syntax error before "code_extension"
[big cut]

Portage 2.1_pre7-r4 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.15.6 i686)
=================================================================
System uname: 2.6.15.6 i686 Intel(R) Xeon(TM) CPU 3.06GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mcpu=pentium4 -mmmx -msse -msse2 -msse3 -O3 -fomit-frame-pointer -funroll-loops -pipe"
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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -mmmx -msse -msse2 -msse3 -O3 -fomit-frame-pointer -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d aalib acpi apache2 apm arts ati avi berkdb bidi bitmap-fonts caca cdparanoia cdr crypt cscope cups curl dba dga directfb distcc divx divx4 divx4linux divx5 divx5linux dri dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flash foomaticdb fortran fvwm2 g77 gb gcj gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc imagemagick imlib imlib2 innodb isdnlog ithreads java jpeg lcms leim libg++ libwww live lzo mad mcal mesa mikmod mmx mmx2 motif mozilla mp3 mpeg mule mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdflib perl php php4 plotutils png ppds pppd pthread pthreads python qt qtx quicktime readline rtc samba sdl slp spell sse sse2 sse3 ssl tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vorbis win32 winvidix wmf xml xml2 xmms xosd xv xvid xvmc zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-17 08:58:33 UTC
Added a patch to address this issue.
Comment 3 Axel Dyks 2006-05-07 17:44:33 UTC
Created attachment 86400 [details, diff]
__STDC_LIMIT_MACROS needs to be defined ...

... otherwise including <stdint.h> does not define
UINT8_MAX, etc.

-- Axel

P.S.: Maybe this is the "actual fix", because <stdint.h> (defined _STDINT_H)
  seems to be already included at the point of it's "re-inclusion by patch".
Comment 4 Martin Mokrejš 2006-05-10 14:33:57 UTC
I wanted to test the patch but I got yet another bug.

configure: creating ./config.status
config.status: creating Makefile.opts
config.status: creating src/server/config.h
config.status: creating src/core/defs.h

global configuration
--------------------
system                  : linux-gnu
architecture            : i686
debug                   : 0
profiling               : 0

vls configuration
-----------------
vls version             : 0.5.6
debug mode              : 0
system logging          : 1
daemon mode             : 
built-in modules        :  filechannel netchannel filereader ts2ts ps2ts localinput videoinput
plug-in modules         :  dvdreader dvbinput dvbreader

Generating dependancies for src/core/application.cpp...
dep/core/application.dpp:1: *** missing separator.  Stop.
make: *** [dep/core/application.dpp] Error 2

!!! ERROR: media-video/vls-0.5.6-r2 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  vls-0.5.6-r2.ebuild, line 46:   Called die

!!! emake failed

# cat dep/core/application.dpp
src/core/application.o 
dep/core/application.d : src/core/application.cpp src/core/defs.h \
  src/core/../extras/getopt.h src/core/common.h src/core/debug.h \
  src/core/reflect.h src/core/serialization.h src/core/string.h \
  src/core/stack.h src/core/vector.h src/core/hashtable.h \
  src/core/buffers.h src/core/exception.h src/core/file.h \
  src/core/stream.h src/core/parsers.h src/core/settings.h src/core/log.h \
  src/core/library.h src/core/module.h src/core/application.h \
  src/core/stack.cpp src/core/vector.cpp src/core/hashtable.cpp \
  src/core/library.cpp
#
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-10 14:47:56 UTC
Completely different problem, please open a new bug for that.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-05-10 15:22:49 UTC
*** Bug 132952 has been marked as a duplicate of this bug. ***