Hi, when porting libapreq2 to OpenBSD we noticed a problem with a workaround that doesn't apply anymore (APR.pm):
$OpenBSD: patch-xs_APR_APR_APR_pm,v 1.1 2007/06/09 16:02:04 martynas Exp $ --- xs/APR/APR/APR.pm.orig Mon Nov 20 01:31:02 2006 +++ xs/APR/APR/APR.pm Sat Jun 9 18:10:04 2007 @@ -23,7 +23,7 @@ our @ISA = qw(DynaLoader); # XXX: see xs/ModPerl/Const/Const.pm for issues of using 0x01 use Config (); use constant DL_GLOBAL => - ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' && $^O ne 'openbsd' ) ? 0x01 : 0x0; + ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' ) ? 0x01 : 0x0; sub dl_load_flags { DL_GLOBAL } unless (defined &APR::XSLoader::BOOTSTRAP) { The second thing i found was a missing character for a function name in Apache2::SizeLimit (bsd_size_check -> _bsd_size_check): $OpenBSD: patch-lib_Apache2_SizeLimit_pm,v 1.1 2007/06/09 17:55:01 simon Exp $ --- lib/Apache2/SizeLimit.pm.orig Sat Jun 9 19:20:50 2007 +++ lib/Apache2/SizeLimit.pm Sat Jun 9 19:20:59 2007 @@ -70,7 +70,7 @@ BEGIN { # will getrusage work on all BSDs? I should hope so. if ( eval { require BSD::Resource } ) { - $HOW_BIG_IS_IT = \&bsd_size_check; + $HOW_BIG_IS_IT = \&_bsd_size_check; } else { die "you must install BSD::Resource for Apache2::SizeLimit " . Tested with OpenBSD -current. Kind regards, Simon