[MPlayer-cygwin] How to compile dhahelper.sys ?

Eugene Kovgar ken20001 at ukr.net
Fri May 8 16:39:54 CEST 2009


I need winvidix to work, so, as I understood need to compile dhahelper.sys and vidix drivers.
My configuration: --enable-largefiles --enable-static --enable-menu --enable-mng --disable-tremor-internal --enable-caca --with-vidix-drivers=* --enable-dhahelper

During compilation many error appears:

gcc -Wundef -Wdisabled-optimization -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k6-3 -mtune=k6-3 -pipe -ffast-math -fomit-frame-pointer -DPTW32_STATIC_LIB -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.   -I/home/Eugene/include  -I/home/Eugene/include/ -Ilibdvdread4 -I/home/Eugene/include/freetype2 -I/home/Eugene/include -I/home/Eugene/include -I/home/Eugene/include   -I/home/Eugene/include/dirac   -I/home/Eugene/include/schroedinger-1.0 -I/home/Eugene/include/liboil-0.3   -DCONFIG_DHAHELPER   -I/home/Eugene/include  -c -o vidix/dha.o vidix/dha.c
In file included from vidix/AsmMacros.h:83,
                 from vidix/dha.c:39:
vidix/sysdep/AsmMacros_x86.h:68:23: sys/ioctl.h: No such file or directory
In file included from vidix/sysdep/AsmMacros_x86.h:69,
                 from vidix/AsmMacros.h:83,
                 from vidix/dha.c:39:
./vidix/dhahelper/dhahelper.h:25:25: linux/ioctl.h: No such file or directory
In file included from vidix/AsmMacros.h:83,
                 from vidix/dha.c:39:
vidix/sysdep/AsmMacros_x86.h: In function `outb':
vidix/sysdep/AsmMacros_x86.h:169: warning: implicit declaration of function `ioctl'
vidix/sysdep/AsmMacros_x86.h:169: warning: implicit declaration of function `_IOWR'
vidix/sysdep/AsmMacros_x86.h:169: error: syntax error before "dhahelper_port_t"
vidix/sysdep/AsmMacros_x86.h: In function `outw':
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of 'ioctl'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of 'ioctl' was here
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of '_IOWR'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of '_IOWR' was here
vidix/sysdep/AsmMacros_x86.h:197: error: syntax error before "dhahelper_port_t"
vidix/sysdep/AsmMacros_x86.h: In function `outl':
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of 'ioctl'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of 'ioctl' was here
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of '_IOWR'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of '_IOWR' was here
vidix/sysdep/AsmMacros_x86.h:225: error: syntax error before "dhahelper_port_t"
vidix/sysdep/AsmMacros_x86.h: In function `inb':
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of 'ioctl'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of 'ioctl' was here
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of '_IOWR'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of '_IOWR' was here
vidix/sysdep/AsmMacros_x86.h:253: error: syntax error before "dhahelper_port_t"
vidix/sysdep/AsmMacros_x86.h: In function `inw':
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of 'ioctl'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of 'ioctl' was here
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of '_IOWR'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of '_IOWR' was here
vidix/sysdep/AsmMacros_x86.h:283: error: syntax error before "dhahelper_port_t"
vidix/sysdep/AsmMacros_x86.h: In function `inl':
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of 'ioctl'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of 'ioctl' was here
vidix/sysdep/AsmMacros_x86.h:169: warning: redundant redeclaration of '_IOWR'
vidix/sysdep/AsmMacros_x86.h:169: warning: previous implicit declaration of '_IOWR' was here
vidix/sysdep/AsmMacros_x86.h:313: error: syntax error before "dhahelper_port_t"
In file included from vidix/dha.c:40:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h: At top level:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:258: error: nested function `getc' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:265: error: nested function `putc' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:272: error: nested function `getchar' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:279: error: nested function `putchar' declared `extern'
In file included from vidix/dha.c:40:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:416: error: nested function `fopen64' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:428: error: nested function `ftello64' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:483: error: nested function `vsnwprintf' declared `extern'
In file included from vidix/dha.c:41:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:491: error: nested function `_Exit' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:500: error: nested function `llabs' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:517: error: nested function `atoll' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:519: error: nested function `lltoa' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:521: error: nested function `ulltoa' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:523: error: nested function `wtoll' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:525: error: nested function `lltow' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:527: error: nested function `ulltow' declared `extern'
In file included from vidix/dha.c:42:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/string.h:98: error: nested function `strcasecmp' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/string.h:105: error: nested function `strncasecmp' declared `extern'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/string.h:172: error: nested function `wcscmpi' declared `extern'
In file included from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/fcntl.h:20,
                 from vidix/dha.c:43:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/io.h:164: error: nested function `lseek64' declared `extern'
In file included from vidix/dha.c:49:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:39: error: nested function `ftruncate' declared `extern'
In file included from vidix/dha.c:52:
vidix/sysdep/libdha_win32.c: In function `map_phys_mem':
vidix/sysdep/libdha_win32.c:77: error: `dhahelper_t' undeclared (first use in this function)
vidix/sysdep/libdha_win32.c:77: error: (Each undeclared identifier is reported only once
vidix/sysdep/libdha_win32.c:77: error: for each function it appears in.)
vidix/sysdep/libdha_win32.c:77: error: syntax error before "dhahelper_priv"
vidix/sysdep/libdha_win32.c:79: error: `dhahelper_priv' undeclared (first use in this function)
vidix/sysdep/libdha_win32.c:82: error: `IOCTL_DHAHELPER_MAPPHYSTOLIN' undeclared (first use in this function)
vidix/sysdep/libdha_win32.c: In function `unmap_phys_mem':
vidix/sysdep/libdha_win32.c:92: error: `dhahelper_t' undeclared (first use in this function)
vidix/sysdep/libdha_win32.c:92: error: syntax error before "dhahelper_priv"
vidix/sysdep/libdha_win32.c:94: error: `dhahelper_priv' undeclared (first use in this function)
vidix/sysdep/libdha_win32.c:95: error: `IOCTL_DHAHELPER_UNMAPPHYSADDR' undeclared (first use in this function)
make: *** [vidix/dha.o] Error 1



More information about the MPlayer-cygwin mailing list