Bug 112417

Summary: Error compiling vlc-devel-0.9.0.20070501,2 on 6.2-STABLE FreeBSD
Product: Ports & Packages Reporter: Ed Culp <eculp>
Component: Individual Port(s)Assignee: freebsd-multimedia (Nobody) <multimedia>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ed Culp 2007-05-04 14:00:11 UTC
I've been trying to compile vlc-devel for a couple of days and it is breaking just after creating libvlc_srtp.la at the beginning of the compilation.

The error begins:
gmake[4]: Entering directory `/usr/ports/multimedia/vlc-devel/work/vlc-0.9.0-svn/src'
if /bin/sh ../libtool --tag=CC --mode=compile cc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include/speex  -I/usr/local/include -DSYS_FREEBSD6_2 -I../include `top_builddir=".." ../vlc-config --cflags libvlc` -O2 -fno-strict-aliasing -pipe  -pthread -Wall -Wextra -Wno-unused-parameter -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wold-style-definition -Wmissing-prototypes -MT libvlc_la-libvlc.lo -MD -MP -MF ".deps/libvlc_la-libvlc.Tpo" -c -o libvlc_la-libvlc.lo `test -f 'libvlc.c' || echo './'`libvlc.c; \
        then mv -f ".deps/libvlc_la-libvlc.Tpo" ".deps/libvlc_la-libvlc.Plo"; else rm -f ".deps/libvlc_la-libvlc.Tpo"; exit 1; fi
mkdir .libs
 cc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/speex -I/usr/local/include -DSYS_FREEBSD6_2 -I../include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -DDATA_PATH=\"/usr/local/share/vlc\" -DPLUGIN_PATH=\"/usr/local/lib/vlc\" -DHAVE_RELEASE -O3 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -D__LIBVLC__ -I../src/misc -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -O2 -fno-strict-aliasing -pipe -pthread -Wall -Wextra -Wno-unused-parameter -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wold-style-definition -Wmissing-prototypes -MT libvlc_la-libvlc.lo -MD -MP -MF .deps/libvlc_la-libvlc.Tpo -c libvlc.c  -fPIC -DPIC -o .libs/libvlc_la-libvlc.o
In file included from libvlc.c:40:
control/libvlc_internal.h:37: error: syntax error before '*' token
control/libvlc_internal.h:38: error: syntax error before "libvlc_InternalInit"
control/libvlc_internal.h:39: error: syntax error before "libvlc_InternalCleanup"
control/libvlc_internal.h:40: error: syntax error before "libvlc_InternalDestroy"
control/libvlc_internal.h:42: error: syntax error before "libvlc_InternalAddIntf"
control/libvlc_internal.h:51: error: syntax error before "libvlc_int_t"
control/libvlc_internal.h:54: error: syntax error before "vlc_mutex_t"
In file included from ../include/vlc_input.h:33,
                 from ../include/vlc_playlist.h:36,
                 from libvlc.c:42:
./include/vlc_es.h:44: error: syntax error before "uint8_t"
./include/vlc_es.h:52: error: syntax error before "vlc_fourcc_t"
./include/vlc_es.h:57: error: syntax error before "uint32_t"
./include/vlc_es.h:94: error: syntax error before "vlc_fourcc_t"
./include/vlc_es.h:113: error: syntax error before "video_palette_t"
./include/vlc_es.h:132: error: syntax error before "uint32_t"
./include/vlc_es.h:159: error: syntax error before "vlc_fourcc_t"
./include/vlc_es.h:176: error: syntax error before "audio_format_t"
./include/vlc_es.h:196: error: syntax error before '*' token
./include/vlc_es.h: In function `es_format_Init':

and continues with more than 500 lines that I have at http://encontacto.net/vlc-devel-failure.txt

My ports tree is up to date, all other ports are up to date, I even installed the new ffmpeg-devel before vlc-devel.  All other ports are up to date and I have a list of all ports at the bottom of the above link.

Thanks.

Fix: 

I have no idea.
How-To-Repeat: cd /usr/ports/multimedia/vlc-devel
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-05-04 23:22:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer
Comment 2 Michael Johnson freebsd_committer freebsd_triage 2007-05-25 20:58:46 UTC
State Changed
From-To: open->suspended

This is a known problem, if you deinstall multimedia/vlc before you build it will work. I'll look in to fixing this soon.
Comment 3 Michael Johnson freebsd_committer freebsd_triage 2008-02-05 12:46:08 UTC
State Changed
From-To: suspended->closed

Fixed months ago, thanks for reporting