[Prelude Hybrid IDS] #157: Problem when building libpreludedb with Perl binding under FreeBSD 4.x

Prelude Hybrid IDS <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
#157: Problem when building libpreludedb with Perl binding under FreeBSD 4.x
----------------------------------+-----------------------------------------
 Reporter:  [email protected]  |       Owner:  yoann             
     Type:  defect                |      Status:  new               
 Priority:  normal                |   Milestone:  LibpreludeDB 0.9.9
Component:  libpreludedb          |     Version:  0.9               
 Severity:  normal                |    Keywords:                    
----------------------------------+-----------------------------------------
 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

 }}}

-- 
Ticket URL: <https://trac.prelude-ids.org/ticket/157>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite

_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.