[vlc-devel] compilation problem with panoramix video filter (with gcc 4.3.1)

Gilles Sabourin gilles.sabourin at free.fr
Thu Jun 11 21:15:07 CEST 2009

hello team,

I've got compilation problem with gcc 4.3.1 20080507 (prerelease) on opensuse 
11.0, with panoramix :
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=panoramix -DMODULE_NAME_IS_panoramix -DMODULE_STRING=\"panoramix\" -O4 -ffast-math -funroll-loops -mtune=athlon64 -fomit-frame-pointer -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -c 
panoramix.c  -fPIC -DPIC -o .libs/libpanoramix_plugin_la-panoramix.o
panoramix.c: In function ‘CountMonitors’:
panoramix.c:382: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘*’ token
panoramix.c:382: error: ‘outputs’ undeclared (first use in this function)
panoramix.c:382: error: (Each undeclared identifier is reported only once
panoramix.c:382: error: for each function it appears in.)
make[5]: *** [libpanoramix_plugin_la-panoramix.lo] Error 1
make[5]: Leaving directory 
make[4]: *** [all-recursive] Error 1

for unknown reason, gcc 4.3.1 dislike the line :

    const xcb_randr_output_t *outputs =
        xcb_randr_get_screen_resources_outputs( r );

Compilation is OK on opensuse 11.1, with gcc 4.3.2


More information about the vlc-devel mailing list