Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 112503

Summary: xorg7.0RC2: xf86-video-via-0.1.32: XvMC misconfigured + doesn't compile.
Product: Gentoo Linux Reporter: Cedric Berger <cedric>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=5048
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 112004    

Description Cedric Berger 2005-11-14 05:31:39 UTC
./configure is is supposed to enable XvMC fo intel arch, but it doesn't
work because ./configure tests for "x86*" instead of "i*86". The following
patch fixes that:

--- configure.orig      2005-11-14 16:27:01.000000000 +0100
+++ configure   2005-11-14 16:27:18.000000000 +0100
@@ -9333,7 +9333,7 @@
 _ACEOF

         case "$host_cpu" in
-            x86*)
+            i*86)
                 XVMC=yes ;;
             amd64*|x86_64*)
                 XVMC=yes ;;

Now, once this is fixed, it still doesn't work because now compilation
fails badly (probably some header missing)

make  all-recursive
make[1]: Entering directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32'
Making all in src
make[2]: Entering directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32/src'
Making all in xvmc
make[3]: Entering directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32/src/xvmc'
Making all in unichrome
make[4]: Entering directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32/src/xvmc/unichrome'
if /bin/sh ../../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H
-I. -I. -I../../..    -DIN_MODULE -DXFree86Module -I/usr/include/xorg  
-I/usr/include/drm -I/usr/include/X11/dri   -I../../../src -I../../../src/xvmc
-DTRUE=1 -DFALSE=0 -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe
-fomit-frame-pointer -MT libviaXvMC_la-viaLowLevel.lo -MD -MP -MF
".deps/libviaXvMC_la-viaLowLevel.Tpo" \
  -c -o libviaXvMC_la-viaLowLevel.lo `test -f 'viaLowLevel.c' || echo
'./'`viaLowLevel.c; \
then mv -f ".deps/libviaXvMC_la-viaLowLevel.Tpo"
".deps/libviaXvMC_la-viaLowLevel.Plo"; \
else rm -f ".deps/libviaXvMC_la-viaLowLevel.Tpo"; exit 1; \
fi
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DIN_MODULE
-DXFree86Module -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri
-I../../../src -I../../../src/xvmc -DTRUE=1 -DFALSE=0 -march=i686 -msse -mmmx
-mfpmath=sse -Os -pipe -fomit-frame-pointer -MT libviaXvMC_la-viaLowLevel.lo -MD
-MP -MF .deps/libviaXvMC_la-viaLowLevel.Tpo -c viaLowLevel.c  -fPIC -o
.libs/libviaXvMC_la-viaLowLevel.o
viaLowLevel.c:37:25: viaXvMCPriv.h: No such file or directory
viaLowLevel.c:38:25: viaLowLevel.h: No such file or directory
viaLowLevel.c:44: error: syntax error before "CARD32"
viaLowLevel.c:44: warning: no semicolon at end of struct or union
viaLowLevel.c:45: error: `LL_PCI_CMDBUF_SIZE' undeclared here (not in a function)
viaLowLevel.c:45: warning: data definition has no type or storage class
viaLowLevel.c:54: error: syntax error before '*' token
viaLowLevel.c:54: warning: data definition has no type or storage class
viaLowLevel.c:55: error: syntax error before "hwLock"
viaLowLevel.c:55: warning: data definition has no type or storage class
viaLowLevel.c:56: error: syntax error before "mmioAddress"
viaLowLevel.c:56: warning: data definition has no type or storage class
viaLowLevel.c:57: error: syntax error before "fbAddress"
viaLowLevel.c:57: warning: data definition has no type or storage class
viaLowLevel.c:65: error: syntax error before "tsMem"
viaLowLevel.c:65: warning: data definition has no type or storage class
viaLowLevel.c:66: error: syntax error before "tsOffset"
viaLowLevel.c:66: warning: data definition has no type or storage class
viaLowLevel.c:67: error: syntax error before '*' token
viaLowLevel.c:67: warning: data definition has no type or storage class
viaLowLevel.c:68: error: syntax error before "curTimeStamp"
viaLowLevel.c:68: warning: data definition has no type or storage class
viaLowLevel.c:69: error: syntax error before "lastReadTimeStamp"
viaLowLevel.c:69: warning: data definition has no type or storage class
viaLowLevel.c:71: error: syntax error before "agpSyncTimeStamp"
viaLowLevel.c:71: warning: data definition has no type or storage class
viaLowLevel.c:73: error: syntax error before '}' token
viaLowLevel.c:73: warning: data definition has no type or storage class
viaLowLevel.c: In function `hwlLock':
viaLowLevel.c:211: error: `xl' undeclared (first use in this function)
viaLowLevel.c:211: error: (Each undeclared identifier is reported only once
viaLowLevel.c:211: error: for each function it appears in.)
viaLowLevel.c:211: error: syntax error before ')' token
viaLowLevel.c: In function `hwlUnlock':
viaLowLevel.c:219: error: `xl' undeclared (first use in this function)
viaLowLevel.c:219: error: syntax error before ')' token
viaLowLevel.c: At top level:
viaLowLevel.c:232: error: syntax error before "CARD32"
viaLowLevel.c: In function `setAGPSyncLowLevel':
viaLowLevel.c:234: error: `xl' undeclared (first use in this function)
viaLowLevel.c:234: error: syntax error before ')' token
viaLowLevel.c:236: error: `val' undeclared (first use in this function)
viaLowLevel.c:237: error: `timeStamp' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:241: error: syntax error before "viaDMATimeStampLowLevel"
viaLowLevel.c: In function `viaDMATimeStampLowLevel':
viaLowLevel.c:243: error: `xl' undeclared (first use in this function)
viaLowLevel.c:243: error: syntax error before ')' token
viaLowLevel.c:247: error: `VIABLIT_FILL' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:254: error: syntax error before '*' token
viaLowLevel.c: In function `viaDMAWaitTimeStamp':
viaLowLevel.c:260: error: `xl' undeclared (first use in this function)
viaLowLevel.c:260: error: `timeStamp' undeclared (first use in this function)
viaLowLevel.c:271: error: `LL_DMA_TIMEDOUT' undeclared (first use in this function)
viaLowLevel.c:275: error: `doSleep' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:281: error: syntax error before '*' token
viaLowLevel.c: In function `viaDMAInitTimeStamp':
viaLowLevel.c:285: error: `xl' undeclared (first use in this function)
viaLowLevel.c:288: error: `VIA_MEM_VIDEO' undeclared (first use in this function)
viaLowLevel.c:289: error: `DRM_VIA_ALLOCMEM' undeclared (first use in this function)
viaLowLevel.c:294: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:294: error: syntax error before ')' token
viaLowLevel.c: At top level:
viaLowLevel.c:302: error: syntax error before '*' token
viaLowLevel.c: In function `viaDMACleanupTimeStamp':
viaLowLevel.c:305: error: `xl' undeclared (first use in this function)
viaLowLevel.c:306: error: `DRM_VIA_FREEMEM' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:311: error: syntax error before "viaMpegGetStatus"
viaLowLevel.c:311: error: syntax error before '*' token
viaLowLevel.c: In function `viaMpegGetStatus':
viaLowLevel.c:313: error: syntax error before "CARD32"
viaLowLevel.c:313: error: `CARD8' undeclared (first use in this function)
viaLowLevel.c:313: error: syntax error before ')' token
viaLowLevel.c:313: error: `xl' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:317: error: syntax error before '*' token
viaLowLevel.c: In function `viaMpegIsBusy':
viaLowLevel.c:319: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:319: error: syntax error before "tmp"
viaLowLevel.c:326: error: `tmp' undeclared (first use in this function)
viaLowLevel.c:328: error: `mask' undeclared (first use in this function)
viaLowLevel.c:328: error: `idle' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:333: error: syntax error before '*' token
viaLowLevel.c: In function `syncDMA':
viaLowLevel.c:351: error: syntax error before "CARD32"
viaLowLevel.c:351: error: `CARD8' undeclared (first use in this function)
viaLowLevel.c:351: error: syntax error before ')' token
viaLowLevel.c:351: error: `xl' undeclared (first use in this function)
viaLowLevel.c:354: error: syntax error before "CARD32"
viaLowLevel.c:354: error: syntax error before ')' token
viaLowLevel.c:355: error: `LL_DMA_TIMEDOUT' undeclared (first use in this function)
viaLowLevel.c:359: error: `doSleep' undeclared (first use in this function)
viaLowLevel.c:361: error: syntax error before "CARD32"
viaLowLevel.c:361: error: syntax error before ')' token
viaLowLevel.c:364: error: syntax error before "CARD32"
viaLowLevel.c:364: error: syntax error before ')' token
viaLowLevel.c: At top level:
viaLowLevel.c:374: error: syntax error before '*' token
viaLowLevel.c: In function `syncVideo':
viaLowLevel.c:392: error: syntax error before "CARD32"
viaLowLevel.c:392: error: `CARD8' undeclared (first use in this function)
viaLowLevel.c:392: error: syntax error before ')' token
viaLowLevel.c:392: error: `xl' undeclared (first use in this function)
viaLowLevel.c:395: error: syntax error before "CARD32"
viaLowLevel.c:395: error: syntax error before ')' token
viaLowLevel.c:396: error: `LL_VIDEO_TIMEDOUT' undeclared (first use in this
function)
viaLowLevel.c:400: error: `doSleep' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:405: error: syntax error before '*' token
viaLowLevel.c: In function `syncAccel':
viaLowLevel.c:410: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:410: error: syntax error before "mask"
viaLowLevel.c:418: error: syntax error before "CARD32"
viaLowLevel.c:418: error: `CARD8' undeclared (first use in this function)
viaLowLevel.c:418: error: syntax error before ')' token
viaLowLevel.c:418: error: `xl' undeclared (first use in this function)
viaLowLevel.c:418: error: `mask' undeclared (first use in this function)
viaLowLevel.c:421: error: syntax error before "CARD32"
viaLowLevel.c:421: error: syntax error before ')' token
viaLowLevel.c:422: error: `LL_ACCEL_TIMEDOUT' undeclared (first use in this
function)
viaLowLevel.c:426: error: `doSleep' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:432: error: syntax error before '*' token
viaLowLevel.c: In function `syncMpeg':
viaLowLevel.c:443: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:443: error: syntax error before "busyMask"
viaLowLevel.c:452: error: `mode' undeclared (first use in this function)
viaLowLevel.c:452: error: `LL_MODE_DECODER_SLICE' undeclared (first use in this
function)
viaLowLevel.c:453: error: `busyMask' undeclared (first use in this function)
viaLowLevel.c:453: error: `VIA_SLICEBUSYMASK' undeclared (first use in this
function)
viaLowLevel.c:454: error: `idleVal' undeclared (first use in this function)
viaLowLevel.c:454: error: `VIA_SLICEIDLEVAL' undeclared (first use in this function)
viaLowLevel.c:456: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c:457: error: `VIA_BUSYMASK' undeclared (first use in this function)
viaLowLevel.c:458: error: `VIA_IDLEVAL' undeclared (first use in this function)
viaLowLevel.c:460: error: `xl' undeclared (first use in this function)
viaLowLevel.c:464: error: `LL_DECODER_TIMEDOUT' undeclared (first use in this
function)
viaLowLevel.c:468: error: `doSleep' undeclared (first use in this function)
viaLowLevel.c:471: error: `ret' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:479: error: syntax error before '*' token
viaLowLevel.c: In function `pciFlush':
viaLowLevel.c:482: error: `drm_via_cmdbuffer_t' undeclared (first use in this
function)
viaLowLevel.c:482: error: syntax error before "b"
viaLowLevel.c:483: error: `xl' undeclared (first use in this function)
viaLowLevel.c:485: error: `b' undeclared (first use in this function)
viaLowLevel.c:486: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:488: error: `LL_MODE_VIDEO' undeclared (first use in this function)
viaLowLevel.c:490: error: `LL_MODE_2D' undeclared (first use in this function)
viaLowLevel.c:490: error: `LL_MODE_3D' undeclared (first use in this function)
viaLowLevel.c:494: error: `LL_MODE_DECODER_SLICE' undeclared (first use in this
function)
viaLowLevel.c:494: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c:496: error: `DRM_VIA_PCICMD' undeclared (first use in this function)
viaLowLevel.c:499: error: `LL_PCI_COMMAND_ERR' undeclared (first use in this
function)
viaLowLevel.c: At top level:
viaLowLevel.c:506: error: syntax error before '*' token
viaLowLevel.c: In function `agpFlush':
viaLowLevel.c:508: error: `drm_via_cmdbuffer_t' undeclared (first use in this
function)
viaLowLevel.c:508: error: syntax error before "b"
viaLowLevel.c:511: error: `xl' undeclared (first use in this function)
viaLowLevel.c:512: error: `b' undeclared (first use in this function)
viaLowLevel.c:513: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:515: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c:520: error: `DRM_VIA_CMDBUFFER' undeclared (first use in this
function)
viaLowLevel.c:521: error: `EAGAIN' undeclared (first use in this function)
viaLowLevel.c:525: error: `LL_AGP_COMMAND_ERR' undeclared (first use in this
function)
viaLowLevel.c:529: error: `LL_MODE_VIDEO' undeclared (first use in this function)
viaLowLevel.c:538: error: `LL_MODE_2D' undeclared (first use in this function)
viaLowLevel.c:538: error: `LL_MODE_3D' undeclared (first use in this function)
viaLowLevel.c:542: error: `LL_MODE_DECODER_SLICE' undeclared (first use in this
function)
viaLowLevel.c:544: error: `DRM_VIA_PCICMD' undeclared (first use in this function)
viaLowLevel.c:547: error: `LL_PCI_COMMAND_ERR' undeclared (first use in this
function)
viaLowLevel.c: In function `flushXvMCLowLevel':
viaLowLevel.c:559: error: `xl' undeclared (first use in this function)
viaLowLevel.c:559: error: syntax error before ')' token
viaLowLevel.c: In function `flushPCIXvMCLowLevel':
viaLowLevel.c:571: error: `xl' undeclared (first use in this function)
viaLowLevel.c:571: error: syntax error before ')' token
viaLowLevel.c: At top level:
viaLowLevel.c:578: error: syntax error before '*' token
viaLowLevel.c: In function `pciCommand':
viaLowLevel.c:580: error: `xl' undeclared (first use in this function)
viaLowLevel.c:580: error: `LL_PCI_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:581: error: `flags' undeclared (first use in this function)
viaLowLevel.c:582: error: `offset' undeclared (first use in this function)
viaLowLevel.c:583: error: `value' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:587: error: syntax error before "ViaXvMCContext"
viaLowLevel.c: In function `viaMpegSetSurfaceStride':
viaLowLevel.c:589: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:589: error: syntax error before "y_stride"
viaLowLevel.c:591: error: `xl' undeclared (first use in this function)
viaLowLevel.c:591: error: syntax error before ')' token
viaLowLevel.c:594: error: `LL_AGP_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:595: error: `y_stride' undeclared (first use in this function)
viaLowLevel.c:595: error: `uv_stride' undeclared (first use in this function)
viaLowLevel.c:596: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c: In function `viaVideoSetSWFLipLocked':
viaLowLevel.c:604: error: `xl' undeclared (first use in this function)
viaLowLevel.c:604: error: syntax error before ')' token
viaLowLevel.c:606: error: `LL_MODE_VIDEO' undeclared (first use in this function)
viaLowLevel.c: In function `viaVideoSWFlipLocked':
viaLowLevel.c:615: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:615: error: syntax error before "andWd"
viaLowLevel.c:616: error: `xl' undeclared (first use in this function)
viaLowLevel.c:616: error: syntax error before ')' token
viaLowLevel.c:618: error: `andWd' undeclared (first use in this function)
viaLowLevel.c:619: error: `orWd' undeclared (first use in this function)
viaLowLevel.c:621: error: `XVMC_FRAME_PICTURE' undeclared (first use in this
function)
viaLowLevel.c:621: error: `XVMC_BOTTOM_FIELD' undeclared (first use in this
function)
viaLowLevel.c:631: error: `XVMC_TOP_FIELD' undeclared (first use in this function)
viaLowLevel.c:654: error: syntax error before "CARD32"
viaLowLevel.c:654: error: `CARD8' undeclared (first use in this function)
viaLowLevel.c:654: error: syntax error before ')' token
viaLowLevel.c: In function `viaMpegSetFB':
viaLowLevel.c:663: error: `xl' undeclared (first use in this function)
viaLowLevel.c:663: error: syntax error before ')' token
viaLowLevel.c:666: error: `LL_AGP_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:670: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c: At top level:
viaLowLevel.c:674: error: syntax error before "ViaXvMCContext"
viaLowLevel.c: In function `viaMpegBeginPicture':
viaLowLevel.c:680: error: `xl' undeclared (first use in this function)
viaLowLevel.c:680: error: syntax error before ')' token
viaLowLevel.c:685: error: `control' undeclared (first use in this function)
viaLowLevel.c:685: error: `XVMC_MPEG_2' undeclared (first use in this function)
viaLowLevel.c:686: error: `XVMC_PROGRESSIVE_SEQUENCE' undeclared (first use in
this function)
viaLowLevel.c:689: error: `LL_AGP_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:690: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c:692: error: `XVMC_FRAME_PICTURE' undeclared (first use in this
function)
viaLowLevel.c:692: error: `XVMC_ALTERNATE_SCAN' undeclared (first use in this
function)
viaLowLevel.c:697: error: `ctx' undeclared (first use in this function)
viaLowLevel.c:745: error: `XVMC_PRED_DCT_FRAME' undeclared (first use in this
function)
viaLowLevel.c:745: error: `XVMC_TOP_FIELD_FIRST' undeclared (first use in this
function)
viaLowLevel.c:752: error: `XVMC_CONCEALMENT_MOTION_VECTORS' undeclared (first
use in this function)
viaLowLevel.c:752: error: `XVMC_Q_SCALE_TYPE' undeclared (first use in this
function)
viaLowLevel.c:752: error: `XVMC_INTRA_VLC_FORMAT' undeclared (first use in this
function)
viaLowLevel.c:759: error: `XVMC_SECOND_FIELD' undeclared (first use in this
function)
viaLowLevel.c: In function `viaMpegReset':
viaLowLevel.c:775: error: `xl' undeclared (first use in this function)
viaLowLevel.c:775: error: syntax error before ')' token
viaLowLevel.c:777: error: `LL_AGP_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:778: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c: At top level:
viaLowLevel.c:799: error: syntax error before "CARD8"
viaLowLevel.c: In function `viaMpegWriteSlice':
viaLowLevel.c:802: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:802: error: `buf' undeclared (first use in this function)
viaLowLevel.c:804: error: `xl' undeclared (first use in this function)
viaLowLevel.c:804: error: syntax error before ')' token
viaLowLevel.c:807: error: `LL_DECODER_TIMEDOUT' undeclared (first use in this
function)
viaLowLevel.c:808: error: `LL_IDCT_FIFO_ERROR' undeclared (first use in this
function)
viaLowLevel.c:809: error: `LL_SLICE_FIFO_ERROR' undeclared (first use in this
function)
viaLowLevel.c:810: error: `LL_SLICE_FAULT' undeclared (first use in this function)
viaLowLevel.c:812: error: `nBytes' undeclared (first use in this function)
viaLowLevel.c:813: error: `sCode' undeclared (first use in this function)
viaLowLevel.c:815: error: syntax error before ')' token
viaLowLevel.c:821: error: `LL_AGP_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:822: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c: In function `viaVideoSubPictureOffLocked':
viaLowLevel.c:854: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:854: error: syntax error before "stride"
viaLowLevel.c:855: error: `xl' undeclared (first use in this function)
viaLowLevel.c:855: error: syntax error before ')' token
viaLowLevel.c:858: error: `stride' undeclared (first use in this function)
viaLowLevel.c:858: error: syntax error before "CARD32"
viaLowLevel.c:858: error: `CARD8' undeclared (first use in this function)
viaLowLevel.c:858: error: syntax error before ')' token
viaLowLevel.c:860: error: `LL_MODE_VIDEO' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:864: error: syntax error before "ViaXvMCSubPicture"
viaLowLevel.c: In function `viaVideoSubPictureLocked':
viaLowLevel.c:867: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:867: error: syntax error before "cWord"
viaLowLevel.c:868: error: `xl' undeclared (first use in this function)
viaLowLevel.c:868: error: syntax error before ')' token
viaLowLevel.c:871: error: `VIA_SUBPIC_PALETTE_SIZE' undeclared (first use in
this function)
viaLowLevel.c:872: error: `pViaSubPic' undeclared (first use in this function)
viaLowLevel.c:872: error: `LL_MODE_VIDEO' undeclared (first use in this function)
viaLowLevel.c:876: error: `cWord' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:886: warning: type mismatch with previous implicit declaration
viaLowLevel.c:246: warning: previous implicit declaration of `viaBlit'
viaLowLevel.c:886: warning: `viaBlit' was previously implicitly declared to
return `int'
viaLowLevel.c: In function `viaBlit':
viaLowLevel.c:888: error: `CARD32' undeclared (first use in this function)
viaLowLevel.c:888: error: syntax error before "dwGEMode"
viaLowLevel.c:890: error: `xl' undeclared (first use in this function)
viaLowLevel.c:890: error: syntax error before ')' token
viaLowLevel.c:898: error: `dwGEMode' undeclared (first use in this function)
viaLowLevel.c:908: error: `srcX' undeclared (first use in this function)
viaLowLevel.c:909: error: `dstX' undeclared (first use in this function)
viaLowLevel.c:926: error: `LL_AGP_CMDBUF_SIZE' undeclared (first use in this
function)
viaLowLevel.c:927: error: `LL_MODE_2D' undeclared (first use in this function)
viaLowLevel.c:931: error: `cmd' undeclared (first use in this function)
viaLowLevel.c:940: error: `srcY' undeclared (first use in this function)
viaLowLevel.c:941: error: `dstY' undeclared (first use in this function)
viaLowLevel.c:945: error: `VIABLIT_TRANSCOPY' undeclared (first use in this
function)
viaLowLevel.c:950: error: `VIABLIT_FILL' undeclared (first use in this function)
viaLowLevel.c: At top level:
viaLowLevel.c:971: error: syntax error before "CARD32"
viaLowLevel.c:972: warning: type mismatch with previous implicit declaration
viaLowLevel.c:515: warning: previous implicit declaration of `syncXvMCLowLevel'
viaLowLevel.c:972: warning: `syncXvMCLowLevel' was previously implicitly
declared to return `int'
viaLowLevel.c: In function `syncXvMCLowLevel':
viaLowLevel.c:975: error: `xl' undeclared (first use in this function)
viaLowLevel.c:975: error: syntax error before ')' token
viaLowLevel.c:977: error: `mode' undeclared (first use in this function)
viaLowLevel.c:983: error: `LL_MODE_VIDEO' undeclared (first use in this function)
viaLowLevel.c:983: error: `LL_MODE_3D' undeclared (first use in this function)
viaLowLevel.c:987: error: `doSleep' undeclared (first use in this function)
viaLowLevel.c:995: error: `timeStamp' undeclared (first use in this function)
viaLowLevel.c:998: error: `LL_MODE_DECODER_SLICE' undeclared (first use in this
function)
viaLowLevel.c:998: error: `LL_MODE_DECODER_IDLE' undeclared (first use in this
function)
viaLowLevel.c: At top level:
viaLowLevel.c:1009: error: syntax error before "drm_context_t"
viaLowLevel.c: In function `initXvMCLowLevel':
viaLowLevel.c:1017: error: `xl' undeclared (first use in this function)
viaLowLevel.c:1017: error: syntax error before ')' token
viaLowLevel.c:1022: error: `useAgp' undeclared (first use in this function)
viaLowLevel.c:1024: error: `ctx' undeclared (first use in this function)
viaLowLevel.c: In function `setLowLevelLocking':
viaLowLevel.c:1043: error: `xl' undeclared (first use in this function)
viaLowLevel.c:1043: error: syntax error before ')' token
viaLowLevel.c: In function `closeXvMCLowLevel':
viaLowLevel.c:1051: error: `xl' undeclared (first use in this function)
viaLowLevel.c:1051: error: syntax error before ')' token
viaLowLevel.c: At top level:
viaLowLevel.c:45: error: storage size of `pci_buffer' isn't known
make[4]: *** [libviaXvMC_la-viaLowLevel.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32/src/xvmc/unichrome'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32/src/xvmc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/xf86-video-via-0.1.32/work/xf86-video-via-0.1.32'
make: *** [all] Error 2

!!! ERROR: x11-drivers/xf86-video-via-0.1.32 failed.
!!! Function x-modular_src_make, Line 127, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.





Reproducible: Always
Steps to Reproduce:
1. emerge xf86-video-via

Actual Results:  
no "libviaXvMCPro.so.1" is created.

Expected Results:  
libviaXvMCPro.so.1 should be created.

emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 VIA Nehemiah
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl doc
dri dvd eds emboss encode exif expat ffmpeg foomaticdb fortran gd gdbm gif gpm
gstreamer gtk2 imlib ipv6 jpeg lcms libg++ libwww mad mikmod mjpeg mmx mng mp3
mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python quicktime
readline sdl spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev
unichrome usb vorbis xine xv xvid xvmc zlib video_cards_via userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Cedric Berger 2005-11-14 05:37:01 UTC
Assigning to x11@gentoo.org. I home I'm getting that right this time.
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2005-11-14 08:24:45 UTC
Please file this bug upstream at https://bugs.freedesktop.org and drop the link
here.  Thanks :)
Comment 3 Cedric Berger 2005-11-14 09:36:05 UTC
Ok, I've created the following bug upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=5048
Comment 4 Cedric Berger 2005-11-14 23:11:13 UTC
Ok, this bug has been fixed upstream, along with:
https://bugs.freedesktop.org/show_bug.cgi?id=5024
which results in missing files in the distribution.

Would it be possible to re-create a correct package,
so we can test XvMC before it's too late to fix the
problems in 7.0?

I'm reopening that bug, please forgive me if that's
not the correct procedure...
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2005-11-15 08:07:25 UTC
No, that's fine.  I'll maybe make a snapshot later today if I have time, unless
spyderous beats me to it.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-11-15 11:43:51 UTC
I won't be beating you to anything, unless it's not done until Wednesday night.
That's sort of become my hacking night, outside of the weekend.
Comment 7 Joshua Baergen (RETIRED) gentoo-dev 2005-11-15 21:18:41 UTC
Alright, the new snapshot in Portage should include this fix.  It also compiles
fine on my machine, but I don't have via hardware to test.  Thanks for staying
active on this :)
Comment 8 Cedric Berger 2005-11-16 06:32:43 UTC
Thanks for the smapshot!

There was 3 more issues to get fully functional DVD Acceleration on VIA
with the modular build. I've created a bug on freedesktop for these:
https://bugs.freedesktop.org/show_bug.cgi?id=5067

I'm gonna stay active until it is all fixed :)
Cedric