opensubscriber
   Find in this group all groups
 
Unknown more information…

a : avifile@prak.org 13 March 2005 • 11:13PM -0500

Re: [Avifile]Codec Keeper - plugins *.so are in incompatible format
by Claudiu Costin

REPLY TO AUTHOR
 
REPLY TO GROUP




        Dear Alexandre,


I'm a SuSE 9.x user too: SuSE 9.2. I experience the same frustration. Working hard
this day, I figured that the gcc optimizations made by SuSE (I think) drop out
the 'extern "C" const' symbols. You need to use -O1 optimization:

export CXXFLAGS="-O1"
export CFLAGS="-O1"
./configure --with-qt-dir=/opt/qt/3.4 --with-sdl-prefix=/usr/local --with-win32-path=/usr/local/lib/win32


For Avifile developers. Please insert a note in INSTALL documentation to make SuSE >= 9.1 users
aware about gcc/g++ bad behaviour.

On Vineri 11 Martie 2005 11:39, Alexandre Parent wrote:
> Dear Programmers,
>
> I compiled avifile on a  Linux Suse 9.1 (gcc 3.3.3), all the compilation
> works but when I execute aviplay I have the following messages :
>
> <codec keeper> : Found 11 plugins (/usr/local/lib/avifile-0.7,A:40,V:89)
> <codec keeper> : WARNING: plugin /usr/local/lib/avifile-0.7/divx4.so is
> in incompatible format
>
> I don't have any previous installation of avifile, and I tried on a
> Debian (gcc 3.2.2), everythig works perfectly.
>
> After little invesigation on the mailing list, it seems that the symbol
> in the *.so files differ on the Suse.
>
> I've made a nm on the win32.so on Debian and I found the symbol
>
> 00038080 D avm_codec_plugin_win32
> On the Suse version, this symbol doesn't exist.
>
> It's this part of codeckeeper which doesn't work on the Suse :
>
> <codekeeper.cpp>
>     codec_plugin_t* plugin = (codec_plugin_t*) dlsym(pi->dlhandle, plgn);
>
>     if (!plugin || (plugin->version != PLUGIN_API_VERSION))
>     {
>             if (plugin)
>         AVM_WRITE("codec keeper", "WARNING: plugin %s has version %d,
> expected %d (should be removed)\n",
>               name, plugin->version, PLUGIN_API_VERSION);
>         else
>         AVM_WRITE("codec keeper", "WARNING: plugin %s is in incompatible
> format\n",
>               name);
>         plugin_close(ci);
>         return 0;
>     }
>
> The code is good, but why on Suse the symbols are not defined like on
> the others Linux ?
> I think it's only a problem of gcc, but I really don't know how to fix
> it ...
>
> Kind regards.
>
> PS : I've compiled, avifile v. 7.38, 7.41, 7.43 and the cvs version.
> Always with the same result... :'(

kind regards,
--
Claudiu Costin, claudiuc@kde....
Linux-KDE Romania http://www.ro.kde.org

_______________________________________________
Avifile mailing list
avifile@prak...
http://prak.org/mailman/listinfo/avifile

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.