Fix native perl so it builds on x64 OpenSuSE 11.1
RFC 1/1 Fix native perl so it builds on x64 OpenSuSE 11.1
The native perl build fails on my x64 OpenSuSE 11.1 machine. People suggest that disabling ODBM_File will fix this problem. It works for me...
Any objections to this fix?
From 4d0290104f3065f82ec513d00eb84afd35cd8ef0 Mon Sep 17 00:00:00 2001
From: Ulf Samuelsson <[email protected]>
Date: Tue, 21 Jul 2009 19:01:18 +0200
Subject: [PATCH] Disable ODBM_File for native perl-5.8.8, since this will cause
the build to fail on x64 OpenSuSE 11.1
--- recipes/perl/perl-native_5.8.8.bb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
(quoted diff) +0 -0
b/recipes/perl/perl-native_5.8.8.bb
index 57e9e1c..bde7638 100644
recipes/perl/perl-native_5.8.8.bb +2 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.perl.org/" SECTION = "libs" LICENSE = "Artistic|GPL" DEPENDS = "virtual/db-native gdbm-native" -PR = "r13" +PR = "r14" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
@@ -43,6 +43,7 @@ do_configure () { -Dusethreads \ -Duseithreads \ -Duselargefiles \ + -Dnoextensions=ODBM_File \ -Ud_dosuid \ -Ui_db \ -Ui_ndbm \
Signature · 5 lines
1.6.0.2 -- Best Regards Ulf Samuelsson
Quoted 3 lines · Ulf Samuelsson
The native perl build fails on my x64 OpenSuSE 11.1 machine. People suggest that disabling
ODBM_Filewill fix this problem. It works for me...
Yeah, this looks like it would fix it.
The problem is SuSE 11's gdbm-devel 1.8.3 installs some hacked-up include file in /usr/include/dbm.h (it's not the one from stock gdbm 1.8.3), and Perl looks there. Meanwhile, gdbm-native 1.8.3 in OE doesn't stage dbm.h, so even if perl-native looked in the right place, the module wouldn't build. So both perl-native and gdbm-native need a fix, or this (afaik unused) module can just be disabled.
Mike