Project

General

Profile

Bug #567

libprelude 1.2.5 does not compile with gcc 4.8

Added by Alexey Mi over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
11/18/2014
Due date:
% Done:

0%

Resolution:

Description

Hello,
I have a problem with libprelude 1.2.5 compilelation with gcc 4.8 on openSUSE 13.1 (x86_64).
The error is presented below:

In file included from /usr/include/c++/4.8/exception:37:0,
                 from /usr/include/c++/4.8/stdexcept:38,
                 from _PreludeEasy.cxx:2765:
/usr/include/c++/4.8/x86_64-suse-linux/bits/c++config.h:1858:28: note:   ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/c++/4.8/x86_64-suse-linux/bits/c++config.h:1858:28: note:   ‘std::ptrdiff_t’
_PreludeEasy.cxx:3164:64: error: expected ‘)’ before ‘;’ token
   if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
                                                                ^
_PreludeEasy.cxx: At global scope:
_PreludeEasy.cxx:3598:15: error: ‘swig::check_index’ declared as an ‘inline’ variable
   check_index(ptrdiff_t i, size_t size, bool insert = false) {
               ^
_PreludeEasy.cxx:3598:15: error: ‘ptrdiff_t’ was not declared in this scope
_PreludeEasy.cxx:3598:15: note: suggested alternatives:
In file included from /usr/include/c++/4.8/exception:37:0,
                 from /usr/include/c++/4.8/stdexcept:38,
                 from _PreludeEasy.cxx:2765:
/usr/include/c++/4.8/x86_64-suse-linux/bits/c++config.h:1858:28: note:   ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
/usr/include/c++/4.8/x86_64-suse-linux/bits/c++config.h:1858:28: note:   ‘std::ptrdiff_t’
_PreludeEasy.cxx:3598:35: error: expected primary-expression before ‘size’
   check_index(ptrdiff_t i, size_t size, bool insert = false) {
                                   ^
_PreludeEasy.cxx:3598:41: error: expected primary-expression before ‘bool’
   check_index(ptrdiff_t i, size_t size, bool insert = false) {
                                         ^
_PreludeEasy.cxx:3598:60: error: expression list treated as compound expression in initializer [-fpermissive]
   check_index(ptrdiff_t i, size_t size, bool insert = false) {
                                                            ^
_PreludeEasy.cxx:3598:62: error: expected ‘,’ or ‘;’ before ‘{’ token
   check_index(ptrdiff_t i, size_t size, bool insert = false) {
                                                              ^
_PreludeEasy.cxx:18580:1: error: expected ‘}’ at end of input
 }
 ^
_PreludeEasy.cxx:3207:13: warning: ‘void _cb_python_log(int, const char*)’ defined but not used [-Wunused-function]
 static void _cb_python_log(int level, const char *str)
             ^
_PreludeEasy.cxx:3223:12: warning: ‘int _cb_python_write(prelude_msgbuf_t*, prelude_msg_t*)’ defined but not used [-Wunused-function]
 static int _cb_python_write(prelude_msgbuf_t *fd, prelude_msg_t *msg)
            ^
_PreludeEasy.cxx:3239:16: warning: ‘ssize_t _cb_python_read(prelude_io_t*, void*, size_t)’ defined but not used [-Wunused-function]
 static ssize_t _cb_python_read(prelude_io_t *fd, void *buf, size_t size)
                ^
error: command 'g++' failed with exit status 1
make[3]: *** [python-build] Error 1
make[3]: Leaving directory `/home/it/libprelude-1.2.5/bindings/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/it/libprelude-1.2.5/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/it/libprelude-1.2.5'
make: *** [all] Error 2

What is the problem?

History

#1 Updated by Antoine LUONG over 4 years ago

Hello,

Could you please indicate the version of SWIG you are using?

#2 Updated by Antoine LUONG over 4 years ago

  • Project changed from PRELUDE SIEM to Libprelude

#3 Updated by Alexey Mi over 4 years ago

the problem was solved, after swig-2.0.10-2.1.2.x86_64 installation

thx a lot

#4 Updated by Thomas ANDREJAK over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Antoine LUONG

#5 Updated by Thomas ANDREJAK over 4 years ago

  • Status changed from Resolved to Closed

#6 Updated by Thomas ANDREJAK over 3 years ago

  • Target version set to Prelude OSS 1.2.6

Also available in: Atom PDF