Project

General

Profile

Bug #157

Problem when building libpreludedb with Perl binding under FreeBSD 4.x

Added by about 13 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

0%

Resolution:
fixed

Description

Renato Botelho (from [[FreeBSD]] team) found a problem when building libpreludedb 0.9.8 with Perl binding on a [[FreeBSD]] 4.x system.

He also included a patch.

--
This port didn't build on [[FreeBSD]] 4.x, I got this error:

[[PreludeDB]].c: In function @SWIG_Perl_GetModule': [[PreludeDB]].c:907:
warning: assignment makes pointer from integer without a cast
[[PreludeDB]].c:909: syntax error before @swig_type_info'

So, i Added this patch:

--- bindings/perl/PreludeDB.c.orig      Tue Jun  6 10:46:03 2006
+++ bindings/perl/PreludeDB.c   Tue Jun  6 10:46:46 2006
@@ -14,6 +14,10 @@
**  declarations/attributes, and other compiler dependent labels.
  *

************************************************************************/
+/* workaround to build with perl-5.005 */
+#ifndef INT2PTR
+#  define INT2PTR(type, pointer) (type)(pointer)
+#endif

 /* template workaround for compilers that cannot correctly
implement the C++ standard */
 #ifndef SWIGTEMPLATEDISAMBIGUATOR

History

#1 Updated by Yoann VANDOORSELAERE about 13 years ago

This is a Swig problem that is fixed as of Swig 1.3.28. However, we are facing a bug with Swig > 1.3.27, where Swig will crash while generating the bindings code. The bug has been reported upstream.

#2 Updated by Yoann VANDOORSELAERE over 12 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Fixed in upcoming Libprelude & [[LibpreludeDB]] release, both including module generated from Swig 1.3.31.

#3 Updated by Yoann VANDOORSELAERE about 10 years ago

  • Project changed from PRELUDE SIEM to LibpreludeDB
  • Category deleted (2)
  • Target version deleted (0.9.9)

Also available in: Atom PDF