[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: compilation error in kdesupport
From:       "Michel Hermier" <michel.hermier () gmail ! com>
Date:       2008-12-07 15:50:47
Message-ID: 2e631f490812070750y36a06e8ds21ee04c051795261 () mail ! gmail ! com
[Download RAW message or body]

2008/12/7 Raul Fernandes <rgfernandes@gmail.com>:
> I have updated the xine lib to 1.1.15 and now I got this error in kdesupport.
>
> [ 72%] Built target phonon_gstreamer
> [ 72%] Building C object phonon/xine/CMakeFiles/phonon_xine.dir/net_buf_ctrl.c.o
> In file included from /usr/include/xine/input_plugin.h:34,
>                 from /usr/include/xine/xine_internal.h:54,
>                 from
> /var/tmp/kde-build/svn/kdesupport/phonon/xine/net_buf_ctrl.c:36:
> /usr/include/xine/buffer.h:679: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before '_x_is_fourcc'
> make[2]: ** [phonon/xine/CMakeFiles/phonon_xine.dir/net_buf_ctrl.c.o] Erro 1
> make[1]: ** [phonon/xine/CMakeFiles/phonon_xine.dir/all] Erro 2
> make: ** [all] Erro 2
>
> This is the file /usr/include/xine/buffer.h:
>
> 676 /* convert xine_waveformatex struct from little endian */
> 677 void _x_waveformatex_le2me( xine_waveformatex *wavex ) XINE_PROTECTED;
> 678
> 679 static inline _x_is_fourcc(void *ptr, void *tag) {
> 680   return memcmp(ptr, tag, 4) == 0;
> 681 }
>
> It seems ok to me. Anyone has any idea??
> I've got this error since last week, just after updated the xine lib.

This is a wellknown error, see xine post release notes
http://sourceforge.net/project/shownotes.php?release_id=619869&group_id=9655
This error is due to mixing C and C++. While static inline
_x_is_fourcc(void *ptr, void *tag) is *valid* in C it contains 2
errors: the first is inline is used while it's not valid in regular C
and the second is that C automagically assume that the function is
returning an int while C++ refuse to guess that.

Cheers, Michel
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic