develooper Front page | perl.perl5.porters | Postings from December 2002

FreeBSD 5 hints patch

Thread Next
From:
Nathan Torkington
Date:
December 26, 2002 17:21
Subject:
FreeBSD 5 hints patch
Message ID:
15883.43776.745042.853824@gnat-tibook.local.
I had to patch the FreeBSD hints file to make Perl build on FreeBSD
5.0-RC2.  The symptom was a failure to build SDBM_File, with FreeBSD's
stdlib.h prototyping malloc() and free() one way, and Perl's proto.h
another.  I'm not sure whether I've patched the right place in the
hints file, but it built and passed tests :-)

Here's a diff against the 5.8.0 source.

Merry Hanukwanzmas, and Praise Santa!

Nat

*** perl-5.8.0/hints/freebsd.sh Sat Jun  1 11:03:12 2002
--- ../perl-5.8.0/hints/freebsd.sh      Thu Dec 26 17:17:38 2002
***************
*** 55,60 ****
--- 55,64 ----
        d_setrgid='undef'
        d_setruid='undef'
        ;;
+ 5.*)
+     malloctype='void *'
+     freetype='void'
+ ;;
  #
  # Trying to cover 2.0.5, 2.1-current and future 2.1/2.2
  # It does not covert all 2.1-current versions as the output of uname



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About