Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227633 - media-video/vlc-0.9.0_alpha20080524 - ../include/vlc_threads.h:480: error: syntax error before "vlc_spinlock_t"
Summary: media-video/vlc-0.9.0_alpha20080524 - ../include/vlc_threads.h:480: error: sy...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 233988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-16 19:25 UTC by Christian Korff
Modified: 2010-04-09 10:25 UTC (History)
1 user (show)

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


Attachments
build log (generated by portage) (build.log,144.86 KB, text/plain)
2008-06-16 19:28 UTC, Christian Korff
Details
libvlccore_la-iso_lang.o (libvlccore_la-iso_lang.o,243.63 KB, application/octet-stream)
2008-06-28 16:42 UTC, Christian Korff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Korff 2008-06-16 19:25:07 UTC
compiling media-video/vlc-0.9.0_alpha20080524 fails:

mv -f text/.deps/libvlccore_la-wincp.Tpo text/.deps/libvlccore_la-wincp.Plo
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DSYS_LINUX -I../include -I../include `top_builddir=".." ../vlc-config --cflags libvlc` -DMODULE_STRING=\"main\" -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -DDATA_PATH=\"/usr/share/vlc\" -DLIBDIR=\"/usr/lib64\" -DPLUGIN_PATH=\"/usr/lib64/vlc\" -O2 -march=nocona -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -MT text/libvlccore_la-iso_lang.lo -MD -MP -MF text/.deps/libvlccore_la-iso_lang.Tpo -c -o text/libvlccore_la-iso_lang.lo `test -f 'text/iso_lang.c' || echo './'`text/iso_lang.c
 x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DSYS_LINUX -I../include -I../include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -I../src/misc -g -O0 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -fvisibility=hidden -DMODULE_STRING=\"main\" -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -DDATA_PATH=\"/usr/share/vlc\" -DLIBDIR=\"/usr/lib64\" -DPLUGIN_PATH=\"/usr/lib64/vlc\" -O2 -march=nocona -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -MT text/libvlccore_la-iso_lang.lo -MD -MP -MF text/.deps/libvlccore_la-iso_lang.Tpo -c text/iso_lang.c  -fPIC -DPIC -o text/.libs/libvlccore_la-iso_lang.o
In file included from ../include/vlc_common.h:443,
                 from ../include/vlc/common.h:136,
                 from ../include/vlc/vlc.h:35,
                 from text/iso_lang.c:34:
../include/vlc_threads.h:480: error: syntax error before "vlc_spinlock_t"
../include/vlc_threads.h:480: warning: type defaults to `int' in declaration of `vlc_spinlock_t'
../include/vlc_threads.h:480: warning: data definition has no type or storage class
../include/vlc_threads.h:485: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_init':
../include/vlc_threads.h:487: warning: implicit declaration of function `pthread_spin_init'
../include/vlc_threads.h:487: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h:487: error: (Each undeclared identifier is reported only once
../include/vlc_threads.h:487: error: for each function it appears in.)
../include/vlc_threads.h: At top level:
../include/vlc_threads.h:493: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_lock':
../include/vlc_threads.h:495: warning: implicit declaration of function `pthread_spin_lock'
../include/vlc_threads.h:495: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h: At top level:
../include/vlc_threads.h:501: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_unlock':
../include/vlc_threads.h:503: warning: implicit declaration of function `pthread_spin_unlock'
../include/vlc_threads.h:503: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h: At top level:
../include/vlc_threads.h:509: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_destroy':
../include/vlc_threads.h:511: warning: implicit declaration of function `pthread_spin_destroy'
../include/vlc_threads.h:511: error: `spin' undeclared (first use in this function)
make[3]: *** [text/libvlccore_la-iso_lang.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.0_alpha20080524/work/vlc-0.9.0-git/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.0_alpha20080524/work/vlc-0.9.0-git/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-0.9.0_alpha20080524/work/vlc-0.9.0-git'
make: *** [all] Error 2
 * 
 * ERROR: media-video/vlc-0.9.0_alpha20080524 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3664:  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.0_alpha20080524/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-0.9.0_alpha20080524/temp/environment'.
 * 

 * Messages for package media-video/vlc-0.9.0_alpha20080524:

 * 
 * ERROR: media-video/vlc-0.9.0_alpha20080524 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3664:  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/portage/media-video/vlc-0.9.0_alpha20080524/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-0.9.0_alpha20080524/temp/environment'.
 * 
 * disabling confcache, binary cannot be found

 # emerge --info
Portage 2.1.4.4 (hardened/amd64/multilib, gcc-3.4.6-vanilla, glibc-2.3.6-r5, 2.6.20-hardened-r10 x86_64)
=================================================================
System uname: 2.6.20-hardened-r10 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Sun, 15 Jun 2008 12:04:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/mpd/conf /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/src/portage-distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.tiscali.nl/ http://gentoo.mneisen.org/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="fr de en_GB"
PKGDIR="/usr/local/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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 7zip X a52 aac aalib accessibility acct ace acl acpi activefilter adsl agg aiglx aim akode alsa amd64 amr amuled animgif ao aoss arj auth avahi avantgo avi background bash-completion berkdb bluetooth bonjour bzip2 cairo calendar canna cap capi cdda cddb cdparanoia cdr cdrom cgi charconv chardet chipcard chipcard2 chm cjk cracklib crypt cups dmx dri dts dv dvb dvd dvdr dvdread enca eurofile exif fax flac gdbm geoip gif gimpprint gpm gps gstreamer gtk hardened ipv6 jpeg jpeg2k justify kerberos kolab lame ldap libcaca loop-aes midi mng mp3 mpeg multilib ncurses nls nptl nptlonly ogg opengl pam perl pic png python readline sdl sqlite sse2 ssl svg tcpd tiff unicode urandom usb vorbis wmf xcb xinerama xml xorg xprint xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" FRITZCAPI_CARDS="fcdsl2 fcdslsl fcpci" INPUT_DEVICES="keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr de en_GB" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="ati dummy fbdev i810 mach64 nv r128 s3 s3virge sis v4l vesa vga vmware radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# cat /etc/portage/package.use | grep vlc
media-video/vlc a52 3dfx dc1394 debug -altivec -httpd vlm -gnutls live v4l v4l2 cdda ogg matroska dvb dvd vcd dts flac mpeg vorbis theora X opengl truetype svg fbcon svga oss aalib ggi -libcaca -esd -arts alsa wxwindows ncurses xosd lirc stream mp3 xv bidi sdl sdl-image png xml samba daap corba mod speex shout rtsp win32codecs skins hal avahi xinerama cddb directfb upnp nsplugin seamonkey optimisememory libnotify -jack musepack x264 cdio dbus ffmpeg fluidsynth id3tag libgcrypt -lua mmx musicbrainz pvr qt4 sse -taglib twolame vcdx -xulrunner
Comment 1 Christian Korff 2008-06-16 19:28:17 UTC
Created attachment 157135 [details]
build log (generated by portage)
Comment 2 Alexis Ballier gentoo-dev 2008-06-16 20:02:27 UTC
emerge -pv vlc please (you might have global useflags set too in addition to the local ones you posted) so that i can try to reproduce it.

your glibc seems very old (2.3.6) maybe its related to that and the thread functions vlc needs weren't present at that time
Comment 3 Christian Korff 2008-06-17 09:16:08 UTC
# emerge -pv vlc

These are the packages that would be merged, in order:

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

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Comment 4 Alexis Ballier gentoo-dev 2008-06-25 15:09:48 UTC
What's the output on your system of:
grep POSIX_SPIN_LOCKS /usr/include/* -r
grep pthread_spinlock_t  /usr/include/* -r


it seems vlc thinks it has spinlock while it hasn't
Comment 5 Christian Korff 2008-06-25 16:11:06 UTC
# LC_ALL=C grep POSIX_SPIN_LOCKS /usr/include/* -r
/usr/include/gentoo-multilib/amd64/bits/posix_opt.h:#define _POSIX_SPIN_LOCK	200112L
/usr/include/gentoo-multilib/x86/bits/posix_opt.h:#define _POSIX_SPIN_LOCKS	200112L
grep: warning: /usr/include/gnome-xml/libxml: recursive directory loop

# LC_ALL=C grep pthread_spinlock_t  /usr/include/* -r
/usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h:typedef volatile int pthread_spinlock_t;
/usr/include/gentoo-multilib/amd64/pthread.h:extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
/usr/include/gentoo-multilib/amd64/pthread.h:extern int pthread_spin_destroy (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/amd64/pthread.h:extern int pthread_spin_lock (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/amd64/pthread.h:extern int pthread_spin_trylock (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/amd64/pthread.h:extern int pthread_spin_unlock (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/x86/bits/pthreadtypes.h:typedef volatile int pthread_spinlock_t;
/usr/include/gentoo-multilib/x86/pthread.h:extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
/usr/include/gentoo-multilib/x86/pthread.h:extern int pthread_spin_destroy (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/x86/pthread.h:extern int pthread_spin_lock (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/x86/pthread.h:extern int pthread_spin_trylock (pthread_spinlock_t *__lock) __THROW;
/usr/include/gentoo-multilib/x86/pthread.h:extern int pthread_spin_unlock (pthread_spinlock_t *__lock) __THROW;
grep: warning: /usr/include/gnome-xml/libxml: recursive directory loop

Comment 6 Alexis Ballier gentoo-dev 2008-06-25 16:49:15 UTC
(In reply to comment #5)
> # LC_ALL=C grep POSIX_SPIN_LOCKS /usr/include/* -r
[...]
> /usr/include/gentoo-multilib/x86/bits/posix_opt.h:#define _POSIX_SPIN_LOCKS    
> 200112L
[...]
> # LC_ALL=C grep pthread_spinlock_t  /usr/include/* -r
[...]
> /usr/include/gentoo-multilib/x86/bits/pthreadtypes.h:typedef volatile int
> pthread_spinlock_t;
[...]

something seems broken with your libc. the offending vlc code is compiled only if _POSIX_SPIN_LOCKS is defined and then the error you showed seems to be due because pthread_spinlock_t isn't defined.

Could you please attach the preprocessed file that fails to compile ?
(iirc just replace gcc by cpp and set the -o to the file you want to write should do it)
Comment 7 Christian Korff 2008-06-26 19:58:34 UTC
I don't undestand which file you need. cpp fails because -c isn't a valid option to the preprocessor.

Maybe you could give me the file name of the file you need. It would be great if one of my troublemakers would be gone so thanks for taking a look.
Comment 8 Alexis Ballier gentoo-dev 2008-06-27 13:55:58 UTC
(In reply to comment #7)
> I don't undestand which file you need. cpp fails because -c isn't a valid
> option to the preprocessor.
> 
> Maybe you could give me the file name of the file you need. It would be great
> if one of my troublemakers would be gone so thanks for taking a look.

ha yes, remove the -c also ;)

in the directory where it fails:
x86_64-pc-linux-gnu-cpp -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DSYS_LINUX
-I../include -I../include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98
-D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__
-I../src/misc -g -O0 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -fvisibility=hidden -DMODULE_STRING=\"main\"
-DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"
-DDATA_PATH=\"/usr/share/vlc\" -DLIBDIR=\"/usr/lib64\"
-DPLUGIN_PATH=\"/usr/lib64/vlc\" -O2 -march=nocona -pipe -Wall -Wextra
-Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align
-Wwrite-strings -Wmissing-prototypes -MT text/libvlccore_la-iso_lang.lo -MD -MP
-MF text/.deps/libvlccore_la-iso_lang.Tpo text/iso_lang.c  -fPIC -DPIC -o foo.preproc


that will write the file foo.preproc which is what could help


Comment 9 Christian Korff 2008-06-28 16:42:34 UTC
Created attachment 158767 [details]
libvlccore_la-iso_lang.o

Here it is
Comment 10 Alexis Ballier gentoo-dev 2008-08-05 17:05:15 UTC
*** Bug 233988 has been marked as a duplicate of this bug. ***
Comment 11 Gef 2009-11-05 09:47:24 UTC
=media-video/vlc-0.9.0_alpha20080524 is no longer in tree.
You may test with (stable)-0.9.0. 
Comment 12 Gef 2009-12-07 18:21:26 UTC
No more media-video/vlc-0.9.* in the tree. Can you reproduce the bug with media-video/vlc-1.0.{2,3} ?
Comment 13 Alexis Ballier gentoo-dev 2010-04-09 10:25:09 UTC
(In reply to comment #12)
> No more media-video/vlc-0.9.* in the tree. Can you reproduce the bug with
> media-video/vlc-1.0.{2,3} ?
>