Miro Hrončok wrote:
> kdelibs
> kdelibs3

So they both hit this error:

/usr/include/jasper/jas_log.h:122:46: error: expected primary-expression before 
'int'
  122 | static inline jas_logtype_t jas_logtype_init(int class, int priority)
      |                                              ^~~
/usr/include/jasper/jas_log.h:122:57: error: expected primary-expression before 
'int'
  122 | static inline jas_logtype_t jas_logtype_init(int class, int priority)
      |                                                         ^~~
/usr/include/jasper/jas_log.h:122:69: error: expression list treated as 
compound expression in initializer [-fpermissive]
  122 | static inline jas_logtype_t jas_logtype_init(int class, int priority)
      |                                                                     ^

which appears to be due to something defining jas_logtype_init both as a 
macro and as an inline function. The macro makes the inline definition fail 
to parse.

The kdelibs 4 build in addition also chokes on incompatible function pointer 
types:

/builddir/build/BUILD/kdelibs-4.14.38/kimgio/jp2.cpp:151:9: error: invalid 
conversion from 'int (*)(jas_stream_obj_t*, char*, unsigned int)' {aka 'int (*)
(void*, char*, unsigned int)'} to 'ssize_t (*)(jas_stream_obj_t*, char*, 
size_t)' {aka 'long int (*)(void*, char*, long unsigned int)'} [-fpermissive]
  151 |         qiodevice_read,
      |         ^~~~~~~~~~~~~~
      |         |
      |         int (*)(jas_stream_obj_t*, char*, unsigned int) {aka int 
(*)(void*, char*, unsigned int)}
/builddir/build/BUILD/kdelibs-4.14.38/kimgio/jp2.cpp:152:9: error: invalid 
conversion from 'int (*)(jas_stream_obj_t*, const char*, unsigned int)' {aka 
'int 
(*)(void*, const char*, unsigned int)'} to 'ssize_t (*)(jas_stream_obj_t*, 
const char*, size_t)' {aka 'long int (*)(void*, const char*, long unsigned 
int)'} 
[-fpermissive]
  152 |         qiodevice_write,
      |         ^~~~~~~~~~~~~~~
      |         |
      |         int (*)(jas_stream_obj_t*, const char*, unsigned int) {aka int 
(*)(void*, const char*, unsigned int)}

        Kevin Kofler
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to