NetBSD Problem Report #43991

From www@NetBSD.org  Thu Oct 21 02:00:18 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D0F6163B8D9
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 21 Oct 2010 02:00:17 +0000 (UTC)
Message-Id: <20101021020017.7159C63B8AD@www.NetBSD.org>
Date: Thu, 21 Oct 2010 02:00:17 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: convertors/help2man build fails on MacOS X 10.4.11
X-Send-Pr-Version: www-1.0

>Number:         43991
>Notify-List:    jdbaker@consolidated.net
>Category:       pkg
>Synopsis:       convertors/help2man build fails on MacOS X 10.4.11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 21 02:05:00 +0000 2010
>Last-Modified:  Tue Jan 29 06:31:25 +0000 2019
>Originator:     John D. Baker
>Release:        MacOS X 10.4.11 (PPC); pkgsrc-current
>Organization:
>Environment:
Darwin ed.technoskunk.fur 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

>Description:
Building convertors/help2man on MacOS X 10.4.11 (PPC) fails as follows:

[...]
===> Building for help2man-1.38.2nb1
/usr/pkg/bin/perl help2man.PL --with-gettext
Extracting help2man (with variable substitutions)
gcc -pipe -O2 -I/usr/pkg/include -I/usr/include -o bindtextdomain.so -fPIC -shared bindtextdomain.c -lintl 
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-shared'
bindtextdomain.c: In function 'setup':
bindtextdomain.c:42: error: 'RTLD_NEXT' undeclared (first use in this function)
bindtextdomain.c:42: error: (Each undeclared identifier is reported only once
bindtextdomain.c:42: error: for each function it appears in.)
gmake: *** [bindtextdomain.so] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/converters/help2man
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/converters/help2man
[...]
>How-To-Repeat:
On MacOS X 10.4.11 PPC, with:

  X11_TYPE=modular

attempt to build convertors/help2man, or any package that builds it
as a dependency.

In this particular case:

 sane-frontends -> gimp -> pango -> help2man
>Fix:

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/43991
Date: Fri, 22 Oct 2010 05:32:32 -0500 (CDT)

 Maybe using wrong dlfcn.h header file?

 Can you figure out which dlfcn.h include file is being used? And look at 
 it to see if there are any definitions needed so RTLD_NEXT is defined?

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43991
Date: Fri, 22 Oct 2010 14:36:34 -0500 (CDT)

 On Fri, 22 Oct 2010, John D. Baker wrote:

 > The only one is "/usr/include/dlfcn.h" and it contains the definition
 > for RTLD_NEXT, but it's conditional on _POSIX_C_SOURCE being UNdefined.

 "/usr/include/dlfcn.h" includes "/usr/include/sys/cdefs.h" which has
 several places it attempts to define _POSIX_C_SOURCE.

 Inserting

    #undef _POSIX_C_SOURCE
    #undef _POSIX_SOURCE
    #undef _XOPEN_SOURCE

 before the inclusion of "dlfcn.h" in "bindtextdomain.c" has been
 insufficient to cause "RTLD_NEXT" to become defined.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43991
Date: Fri, 22 Oct 2010 13:59:04 -0500 (CDT)

 On Fri, 22 Oct 2010, Jeremy C. Reed wrote:

 > Maybe using wrong dlfcn.h header file?
 >
 > Can you figure out which dlfcn.h include file is being used? And look at
 > it to see if there are any definitions needed so RTLD_NEXT is defined?

 The only one is "/usr/include/dlfcn.h" and it contains the definition
 for RTLD_NEXT, but it's conditional on _POSIX_C_SOURCE being UNdefined.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.