Subject: pkg/28836: mk/dlopen.builtin.mk cannot detect dlopen for Interix
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 01/02/2005 12:36:00
>Number:         28836
>Category:       pkg
>Synopsis:       mk/dlopen.builtin.mk cannot detect dlopen for Interix
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 02 12:36:00 +0000 2005
>Originator:     Hiramatsu Yoshifumi
>Release:        SFU 3.5
>Organization:
>Environment:
Interix nile 3.5 SP-8.0.1969.1 x86 AMD_x86_Family15_Model12_Stepping0
>Description:
When trying to build perl 5.8.6 on Interix, it aborts with this message

bash-2.05b$ bmake
===> perl-5.8.6 requires a working dlopen().
>How-To-Repeat:
cd /usr/pkgsrc/lang/perl58
bmake

>Fix:
dlfcn.h is located at /opt/gcc.3.3/include/dlfcn.h on Interix.

--- dlopen.builtin.mk   23 Dec 2004 14:27:04 -0000      1.8
+++ dlopen.builtin.mk   2 Jan 2005 11:58:51 -0000
@@ -17,7 +17,7 @@

 .if !defined(IS_BUILTIN.dl)
 IS_BUILTIN.dl=         no
-.  if exists(/usr/include/dlfcn.h)
+.  if exists(/usr/include/dlfcn.h) || exists(/opt/gcc.3.3/include/dlfcn.h)
 IS_BUILTIN.dl=         yes
 .  endif
 BUILDLINK_VARS+=       IS_BUILTIN.dl