[mythtv] Problems compiling vsync.c

Tommy Faasen mythtv at zwanebloem.nl
Thu Aug 26 04:22:12 EDT 2004


Hi,

I just checked out CVS, but going back 2 weeks gives me the same
results. For some reason it doesn't like vsync.h , gcc 2.96.4 gives me
the same problem (or 3.3 for that matter).

gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.0.4

uname -a
Linux thuis 2.6.7 #1 Wed Jun 16 19:26:00 CEST 2004 i686 unknown

qmake -v
Qmake version: 1.06c (Qt 3.2.1)
Qmake is free software from Trolltech AS.

Compile output:
gcc -c -pipe -Wall -W -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -fPIC  -
D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DUSING_OSS -DUSING_OPEN
GL_VSYNC -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/share/qt3/mkspecs/default -I. -I/usr/local/include -I../libmyth -I.. -Idvbdev -I../libavcodec -I/usr/include/qt3 -I/usr/X11R6/include -I/usr/X11R6/include -o vsync.o vsync.c
In file included from vsync.c:30:
vsync.h:54: parse error before "VideoSync"
vsync.h:55: syntax error before '{' token
vsync.h:60: warning: return type defaults to `int'
vsync.h: In function `getName':
vsync.h:60: parse error before '=' token
vsync.h:67: `m_interlaced' undeclared (first use in this function)
vsync.h:67: (Each undeclared identifier is reported only once
vsync.h:67: for each function it appears in.)
vsync.h:67: warning: control reaches end of non-void function
vsync.h: At top level:
vsync.h:69: syntax error before "void"
vsync.h:70: parse error before '*' token
vsync.h:71: parse error before "bool"
vsync.h:71: warning: type defaults to `int' in declaration of `BestMethod'
vsync.h:71: warning: data definition has no type or storage class
vsync.h:72: parse error before ':' token
vsync.h:80: parse error before "m_interlaced"
vsync.h:80: warning: type defaults to `int' in declaration of `m_interlaced'
vsync.h:80: `m_interlaced' used prior to declaration
vsync.h:80: warning: data definition has no type or storage class
vsync.h:83: parse error before '}' token
vsync.h:88: parse error before "DRMVideoSync"
vsync.h:94: warning: return type defaults to `int'
vsync.h:94: redefinition of `getName'
vsync.h:61: `getName' previously defined here
vsync.h: In function `getName':
vsync.h:94: parse error before '{' token
vsync.h:109: warning: implicit declaration of function `nVidiaVideoSync'
vsync.h:109: parse error before "int"
vsync.h:112: `QString' undeclared (first use in this function)
vsync.h:112: parse error before "getName"
vsync.h:108: warning: label `public' defined but not used
vsync.h:112: warning: control reaches end of non-void function
vsync.h: At top level:
vsync.h:113: parse error before "TryInit"
vsync.h:113: warning: type defaults to `int' in declaration of `TryInit'
vsync.h:113: warning: data definition has no type or storage class
vsync.h:116: parse error before ':' token
vsync.h:120: parse error before '}' token
vsync.h:123: parse error before "OpenGLVideoSync"
vsync.h:130: warning: return type defaults to `int'
vsync.h:130: redefinition of `getName'
vsync.h:94: `getName' previously defined here
vsync.h: In function `getName':
vsync.h:130: parse error before '{' token
vsync.h:147: warning: implicit declaration of function `RTCVideoSync'
vsync.h:147: parse error before "int"
vsync.h:150: parse error before "getName"
vsync.h:146: warning: label `public' defined but not used
vsync.h:150: warning: control reaches end of non-void function
vsync.h: At top level:
vsync.h:151: parse error before "TryInit"
vsync.h:151: warning: type defaults to `int' in declaration of `TryInit'
vsync.h:151: warning: data definition has no type or storage class
vsync.h:153: parse error before ':' token
vsync.h:158: parse error before "BusyWaitVideoSync"
vsync.h:168: warning: return type defaults to `int'
vsync.h:168: redefinition of `getName'
vsync.h:130: `getName' previously defined here
vsync.h: In function `getName':
vsync.h:168: parse error before '{' token
vsync.h:183: warning: implicit declaration of function `USleepVideoSync'
vsync.h:183: parse error before "int"
vsync.h:187: parse error before "getName"
vsync.h:182: warning: label `public' defined but not used
vsync.h:187: warning: control reaches end of non-void function
vsync.h: At top level:
vsync.h:188: parse error before "TryInit"
vsync.h:188: warning: type defaults to `int' in declaration of `TryInit'
vsync.h:188: warning: data definition has no type or storage class
vsync.h:190: parse error before '}' token
In file included from /usr/X11R6/include/X11/Xlib.h:51,
                 from /usr/X11R6/include/GL/glx.h:39,
                 from vsync.c:36:
/usr/X11R6/include/X11/X.h:67: redefinition of `XID'
vsync.h:48: `XID' previously declared here
In file included from /usr/X11R6/include/GL/glx.h:39,
                 from vsync.c:36:
/usr/X11R6/include/X11/Xlib.h:502: redefinition of `Display'
vsync.h:51: `Display' previously declared here
In file included from vsync.c:36:
/usr/X11R6/include/GL/glx.h:53: redefinition of `GLXDrawable'
vsync.h:49: `GLXDrawable' previously declared here
/usr/X11R6/include/GL/glx.h:61: redefinition of `GLXContext'
vsync.h:50: `GLXContext' previously declared here
vsync.c:38:23: GL/glxext.h: No such file or directory
vsync.c: In function `init_try_nvidia':
vsync.c:195: warning: unused variable `ret'
vsync.c: In function `vsync_wait_for_retrace':
vsync.c:347: warning: implicit declaration of function `glXGetVideoSyncSGI'
vsync.c:349: warning: implicit declaration of function `glXWaitVideoSyncSGI'
vsync.c: At top level:
vsync.h:119: warning: `sm_nvidia_dev' defined but not used
{standard input}: Assembler messages:
{standard input}:26: Error: symbol `getName' is already defined
{standard input}:45: Error: symbol `getName' is already defined
{standard input}:64: Error: symbol `getName' is already defined
make[2]: *** [vsync.o] Error 1
make[2]: Leaving directory `/mnt/fast/newsan/mythcvs/mythtv/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/mnt/fast/newsan/mythcvs/mythtv/libs'
make: *** [sub-libs] Error 2



More information about the mythtv-dev mailing list