Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VLC 0.9.* fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
LukSoft
n00b
n00b


Joined: 13 Aug 2008
Posts: 8
Location: Czech republic

PostPosted: Sat Oct 11, 2008 4:49 pm    Post subject: VLC 0.9.* fails to compile Reply with quote

About a mont ago I completly switched for ~amd64 keyword. However, I have a problem with vlc 0.9.*. If I use a distribution version, it fails to compile, but it compiles when I use original sources.

here is my "emerge --info":
emerge --info
Portage 2.2_rc12 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-60-with-glibc2.2.5
Timestamp of tree: Fri, 10 Oct 2008 13:30:01 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python: 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.3.0-r1
sys-apps/sandbox: 1.2.18.1-r3
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-march=k8 -pipe -O2"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.supp.name/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ "
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 aspell battery berkdb binary bluetooth bzip2 cairo cdda cddb cdio cdparanoia cdr cdrom cli cpufreq cracklib crypt cups cvs dbus divx dri dvb dvd dvdr dvdread encode exif ffmpeg firefox flac flash fortran ftp fuse gd gdbm gdm gif gnome gnomecd gpm gstreamer gtk h323 hal httpd iconv id3tag imlib2 ipv6 irda isdnlog jack jpeg lame ldap live lm_sensors mad matroska midi mikmod mmx mmxext mp2 mp3 mp4 mpeg mudflap multilib mysql mysqli nautilus ncurses network networkmanager nfs nls nptl nptlonly nsl nsplugin nxclient ogg opengl openmp opera pam pango pci pcmcia pcre perl php png pppd python quicktime rar readline reflection samba sdl sdl-image sdl-sound session smpeg sound sounds spl sse sse2 ssl stream sysfs t1lib tcpd test-programs theora threads tiff truetype unicode upnp usb v4l v4l2 vcd video vorbis wav wifi wma wxwindows x264 xml xorg xosd xulrunner xv xvid zip zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="ati"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

here is what "emerge --deep --verbose vlc" says:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] media-video/vlc-0.9.4 USE="X a52 aac aalib alsa cdda cddb cdio dbus dvb dvd ffmpeg flac gnome hal httpd id3tag jack libgcrypt live matroska mmx mp3 mpeg ncurses nsplugin ogg png qt4 samba sdl sdl-image sse stream theora truetype upnp v4l v4l2 vcd vorbis x264 xml xosd xv (-altivec) -arts -atmo -avahi -bidi -dc1394 -debug -dirac -directfb -dts -esd -fbcon -fluidsynth -fontconfig -ggi -gnutls -kate -libass -libcaca -libnotify -lirc -lua -modplug -musepack -opengl -optimisememory -oss -pulseaudio -pvr -remoteosd -rtsp -schroedinger -seamonkey -shout -skins -speex -svg (-svga) -taglib -twolame -vcdx -vlm (-win32codecs) -xinerama -zvbi" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-video/vlc-0.9.4
* vlc-m4-1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* vlc-0.9.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* vlc-patches-59.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
>>> Unpacking source...
>>> Unpacking vlc-m4-1.tar.bz2 to /var/tmp/portage/media-video/vlc-0.9.4/work
>>> Unpacking vlc-0.9.4.tar.bz2 to /var/tmp/portage/media-video/vlc-0.9.4/work
>>> Unpacking vlc-patches-59.tar.bz2 to /var/tmp/portage/media-video/vlc-0.9.4/work
* Applying various patches (bugfixes/updates) ...
* 010_all_freetype-font.patch ... [ ok ]
* 220_all_firefox.patch ... [ ok ]
* 300_all_pic.patch ... [ ok ]
* 310_all_mmx_pic.patch ... [ ok ]
* Done with patching
* Applying 0001-Fix-build-with-x264-build-65.patch ... [ ok ]
* Running eautoreconf in '/var/tmp/portage/media-video/vlc-0.9.4/work/vlc-0.9.4' ...
...
/usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=k8 -pipe -O2 -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o main_interface.moc.cpp main_interface.hpp
/usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=k8 -pipe -O2 -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o menus.moc.cpp menus.hpp
/usr/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -march=k8 -pipe -O2 -DSYS_LINUX -I../../.. `top_builddir="../../.." ../../../vlc-config --cppflags plugin qt4` -o dialogs_provider.moc.cpp dialogs_provider.hpp
moc: Invalid argument
moc: Invalid argument
Usage: moc [options] <header-file>
-o<file> write output to file rather than stdout
-I<dir> add dir to the include path for header files
-E preprocess only; do not generate meta object code
-D<macro>[=<def>] define macro, with optional definition
-U<macro> undefine macro
-i do not generate an #include statement
-p<path> path prefix for included file
-f[<file>] force #include, optional file name
-nw do not display warnings
-v display version of moc
moc: Invalid argument
make[5]: *** [menus.moc.cpp] Error 1
make[5]: *** Waiting for unfinished jobs....
Usage: moc [options] <header-file>
-o<file> write output to file rather than stdout
-I<dir> add dir to the include path for header files
-E preprocess only; do not generate meta object code
-D<macro>[=<def>] define macro, with optional definition
-U<macro> undefine macro
-i do not generate an #include statement
-p<path> path prefix for included file
-f[<file>] force #include, optional file name
-nw do not display warnings
-v display version of moc
Usage: moc [options] <header-file>
-o<file> write output to file rather than stdout
-I<dir> add dir to the include path for header files
-E preprocess only; do not generate meta object code
-D<macro>[=<def>] define macro, with optional definition
-U<macro> undefine macro
-i do not generate an #include statement
-p<path> path prefix for included file
-f[<file>] force #include, optional file name
-nw do not display warnings
-v display version of moc
make[5]: *** [dialogs_provider.moc.cpp] Error 1
make[5]: *** [main_interface.moc.cpp] Error 1
make[5]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.4/work/vlc-0.9.4/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.4/work/vlc-0.9.4/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.4/work/vlc-0.9.4/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.4/work/vlc-0.9.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.4/work/vlc-0.9.4'
make: *** [all] Error 2
*
* ERROR: media-video/vlc-0.9.4 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3657: Called die
* The specific snippet of code:
* emake || die "make of VLC failed"
* The die message:
* make of VLC failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-video/vlc-0.9.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-0.9.4/temp/environment'.
*

I suppose it has something to do with one of gentoo's vlc patches.
Back to top
View user's profile Send private message
nurachi
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2008
Posts: 92
Location: Paris

PostPosted: Fri Oct 24, 2008 3:09 am    Post subject: Reply with quote

It looks like your install is missing a recent moc.

Did you install QT4 or better the qt-split packages set (for QT 4.4.x) ?
Back to top
View user's profile Send private message
LukSoft
n00b
n00b


Joined: 13 Aug 2008
Posts: 8
Location: Czech republic

PostPosted: Fri Oct 24, 2008 4:10 am    Post subject: I have qt4 Reply with quote

Hi. You see, I have all qt4. Like I wrote, I have entire ~amd64 system. I suppose it's not caused by qt4, becawse original vlc 0.9.4 still uses it, but it doesn't fail to compile. Last time, I took vlc's tarball from portage distfiles, didn't apply patches nad voala - it compiled succesfully.

partial output of "emerge --search qt"

* x11-libs/qt
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-assistant
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-core
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-dbus
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-demo
Latest version available: 4.4.2
Latest version installed: [ Not Installed ]

* x11-libs/qt-embedded
Latest version available: 3.3.8
Latest version installed: [ Not Installed ]

* x11-libs/qt-gui
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-opengl
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-phonon
Latest version available: 4.4.2
Latest version installed: [ Not Installed ]

* x11-libs/qt-qt3support
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-script
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-sql
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-svg
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-test
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-webkit
Latest version available: 4.4.2
Latest version installed: 4.4.2

* x11-libs/qt-xmlpatterns
Latest version available: 4.4.2
Latest version installed: 4.4.2
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Fri Oct 24, 2008 9:22 pm    Post subject: Reply with quote

If you have not yet, revdep-rebuild. If that doesn't do anything for you, re-install qt-core.

It is worth fixing, the 0.9 line is finally becoming mature.
_________________
--Aaron
Back to top
View user's profile Send private message
LukSoft
n00b
n00b


Joined: 13 Aug 2008
Posts: 8
Location: Czech republic

PostPosted: Sat Oct 25, 2008 6:40 am    Post subject: Nope Reply with quote

Well, I run revdep-rebuild after every update. Remerging qt-core didn't help.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Sat Oct 25, 2008 5:01 pm    Post subject: Reply with quote

Take out your CPPFLAGS line from /etc/make.conf, run eclean to remove the distfiles, and then try to recompile vlc.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum