Subject: building multimedia/vlc
To: None <>
From: Emmanuel Dreyfus <>
List: tech-pkg
Date: 07/26/2004 22:58:07
In order to build vlc, I had to do this:

--- work/vlc-0.7.2/modules/access/vcdx/access.c.orig    Mon Jul 26 22:00:41 2004
+++ work/vlc-0.7.2/modules/access/vcdx/access.c Mon Jul 26 21:49:02 2004
@@ -1510,9 +1510,9 @@
         msg_Warn( p_input, "could not open %s", psz_source );
         goto err_exit;
-    p_vcd->b_svd= vcdinfo_get_tracksSVD(p_vcd->vcd);;
+    p_vcd->b_svd= (bool)vcdinfo_get_tracksSVD(p_vcd->vcd);;
     /* Get track information. */
     p_vcd->num_tracks = ioctl_GetTracksMap( VLC_OBJECT(p_input),

Should I commit it? I'd say yes, since it doesn't build without it, but I always
fear to break something for someone else.

Later I have this in modules/gui/wxwindows:
g++ -DHAVE_CONFIG_H -I. -I. -I../../..   -I/usr/pkg/include -DGLX_GLXEXT_LEGACY
-I/usr/include -I/usr/pkg/include/freetype2 -DSYS_NETBSDELF -I../../../include
`top_builddir="../../.." ../../../vlc-config --cxxflags plugin wxwindows`
-Wsign-compare -Wsign-compare -Wall -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY
-I/usr/include -I/usr/pkg/include/freetype2 -pthread -finline-limit-30000 -pipe
-c -o libwxwindows_plugin_a-wizard.o `test -f 'wizard.cpp' || echo
g++: unrecognized option `-pthread'
`const struct wxEventTable wxPanel::sm_eventTable' is protected
wizard.cpp:344: within this context

That one is probably too much for me. I removed the gui module from the Makefile
to finish the build. I wasn't planning ot use the GUI on that machine. That's
still quite frustrating. :o/

src/misc/threads.c: In function `__vlc_thread_create':
src/misc/threads.c:570: storage size of `param' isn't known
src/misc/threads.c:572: sizeof applied to an incomplete type
src/misc/threads.c:577: `SCHED_OTHER' undeclared (first use in this function)
src/misc/threads.c:577: (Each undeclared identifier is reported only once
src/misc/threads.c:577: for each function it appears in.)
src/misc/threads.c:582: `SCHED_RR' undeclared (first use in this function)

Defining PTH_INIT_IN_PTH_H in config.h fixes the problem. It would be enabled by
configure --enable-pth, but that woulnd't play nicely with native threads. What
should be done?

Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.