From: Steve Peters Date: Tue, 10 May 2005 12:44:13 +0000 (-0500) Subject: Re: [PATCH] reentr.h changes so threaded Perl's compile on OpenBSD 3.7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=23e2b7a9cd174dbd4e526e1069d671e42c30d954;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] reentr.h changes so threaded Perl's compile on OpenBSD 3.7 Message-Id: <20050510174413.GA19686@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24441 --- diff --git a/MANIFEST b/MANIFEST index 213e945..250c4c1 100644 --- a/MANIFEST +++ b/MANIFEST @@ -2453,6 +2453,7 @@ README.micro Notes about microperl README.mint Perl notes for MiNT README.mpeix Perl notes for MPE/iX README.netware Perl notes for NetWare +README.openbsd Perl notes for OpenBSD README.os2 Perl notes for OS/2 README.os390 Perl notes for OS/390 README.os400 Perl notes for OS/400 diff --git a/README.openbsd b/README.openbsd new file mode 100644 index 0000000..b1d5eea --- /dev/null +++ b/README.openbsd @@ -0,0 +1,30 @@ +If you read this file _as_is_, just ignore the funny characters you +see. It is written in the POD format (see pod/perlpod.pod) which is +specifically designed to be readable as is. + +=head1 NAME + +README.openbsd - Perl version 5 on OpenBSD systems + +=head1 DESCRIPTION + +This document describes various features of OpenBSD that will affect how Perl +version 5 (hereafter just Perl) is compiled and/or runs. + +=head2 OpenBSD core dumps from getprotobyname_r and getservbyname_r with ithreads + +When Perl is configured to use ithreads, it will use re-entrant library calls +in preference to non-re-entrant versions. There is an incompatability in +OpenBSD's C and C function in versions 3.7 +and later that will cause a SEGV when called without doing a C on +their return structs prior to calling these functions. Current Perl's +should handle this problem correctly. Older threaded Perls (5.8.6 or earlier) +will run into this problem. If you want to run a threaded Perl on OpenBSD +3.7 or higher, you will need to upgrade to at least Perl 5.8.7. + +=head1 AUTHOR + +Steve Peters + +Please report any errors, updates, or suggestions to F. + diff --git a/reentr.pl b/reentr.pl index 53a76e2..cd69989 100644 --- a/reentr.pl +++ b/reentr.pl @@ -41,7 +41,7 @@ print <_' . $genfunc . '_data))'; + } push @wrap, <