[Openchrome-users] Re: [Unichrome-users] Report: CN400 MPEG2 unsing only Gentoo packages

Thomas Hellström unichrome
Mon Nov 14 11:21:23 PST 2005


Hi!

Trying to comment on some things here...

> Hi,
>
> With 2.6.14 kernel, xorg 7.0 RC2 and xine 1.1 now in Gentoo portage, I
> decided to see If I could compile all that and watch DVDs on my EPIA
> SP8000 without external components. Short answer; it works, but there are
> issues (5 so far)....

>
> Compilation Issues:
>
> a) First, to compile the via driver, I had to add "#define VIDEO 0" on top
> of via_dri.c, like other people have found out. I compiled that driver a
> while ago, so it might already be solved.
>

This is an incompatibility caused by the packager not updating Xorg and
libdrm at the same time. With xorg 7.0 RC2 and libdrm 1.0.5 this should be
resolved.

>
> b) XvMCWrapper is not right. the function dlopenversion() expects its
> second argument to start with a dot (i.e ".1.0") but XVMC_SOVERSION and
> XV_SOVERSION are defined to "1.0" (without first dot) which mean that
> it try to open library like "libXvMC.so1" instead of "libXvMC.so.1", and
> of course it fails. I've attached at the end of that e-mail an (ugly)
> patch that fixes the problem for me.
>

This seems strange. In particular that nobody has reported this before,
and libXvMCW has been used extensively. I'll take a look.


>
> c) the Via driver has an "#ifndef XvExtension" that enable/disable the Xv
> and XvMC code. Unfortunately, XvExtension was not defined anywhere. I had
> to add "#define XvExtension" on top of via.h to make XvMC work.
>


I think Luc has filed a bug about this at Xorg.

> With these 3 fixes, I'm able to play DVDs with XINE using simply:
>   "xine -V xxmc dvd://"
>
> !! Congrat to everybody involved !!
>
> Now, there is two more things that worries me:
>
> d) On my X server output, I see the following each time I start AND stop
> xine:
>
>   "FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing."
>

Do you see this with the Xv plugin as well or only with the xxmc plugin?

>
> e) The second (and each subsequent) time I (restart) xine (stopped with
> ctrl-c), I get the following message spit out twice on the X console:
>
>   "DRM module failed free."
>
> Viewing 3 times the beginning of a movie, I get the following:
>
>   FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing.
>   FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing.
>   FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing.
>   DRM module failed free.
>   DRM module failed free.
>   FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing.
>   FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing.
>   DRM module failed free.
>   DRM module failed free.
>   FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1;
> fixing.
>
> Could someone please tell me if and where to reports all these issues?
> If I can help solve these 5 issues by providing more info, testing, let
> me know!
>

I'll have a look at this as well.

Thanks,
Thomas



> Thanks again,
> Cedric Berger
>
>
> --- XvMCWrapper.c.orig  2005-11-12 19:55:37.000000000 +0100
> +++ XvMCWrapper.c       2005-11-12 19:56:14.000000000 +0100
> @@ -237,16 +237,16 @@
>      wrapperPreInit = 1;
>      xW.preInitialised = 0;
>      xW.initialised = 0;
> -    xvhandle = dlopenversion("libXv.so", XV_SOVERSION, RTLD_LAZY |
> RTLD_GLOBAL);
> +    xvhandle = dlopenversion("libXv.so", "."XV_SOVERSION, RTLD_LAZY |
> RTLD_GLOBAL);
>      if (!xvhandle) {
>         fprintf(stderr,"XvMCWrapper: Warning! Could not open shared "
> -               "library \"libXv.so" XV_SOVERSION "\"\nThis may cause
> relocation "
> +               "library \"libXv.so" "."XV_SOVERSION "\"\nThis may cause
> relocation "
>                 "errors later.\nError was: \"%s\".\n",dlerror());
>      }
> -    handle2 = dlopenversion("libXvMC.so", XVMC_SOVERSION, RTLD_LAZY |
> RTLD_GLOBAL);
> +    handle2 = dlopenversion("libXvMC.so", "."XVMC_SOVERSION, RTLD_LAZY
> | RTLD_GLOBAL);
>      if (!handle2) {
>         fprintf(stderr,"XvMCWrapper: Could not load XvMC "
> -               "library \"libXvMC.so" XVMC_SOVERSION "\". Failing\n");
> +               "library \"libXvMC.so" "."XVMC_SOVERSION "\". Failing\n");
>         fprintf(stderr,"%s\n",dlerror());
>         return 1;
>      }
> @@ -303,7 +303,7 @@
>         strncpy(nameBuffer + nameLen, ".so", BUFLEN-nameLen-1);
>         nameBuffer[BUFLEN-1] = 0;
>         XFree(clientName);
> -       handle = dlopenversion(nameBuffer, XVMC_SOVERSION,RTLD_LAZY);
> +       handle = dlopenversion(nameBuffer, "."XVMC_SOVERSION,RTLD_LAZY);
>      } else {
>         /*
>          * No. Try to obtain it from the config file.
>
>
>
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> ****************************************
> Messages over 40k are delayed rejected. Please trim logfiles and/or use
> gzip.
> ****************************************
> Unichrome-users mailing list
> Unichrome-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unichrome-users
>




More information about the Openchrome-users mailing list