NetBSD Problem Report #43922

From www@NetBSD.org  Tue Sep 28 23:02:09 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 5AACC63B8E6
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 28 Sep 2010 23:02:09 +0000 (UTC)
Message-Id: <20100928230208.EDE9C63B8DB@www.NetBSD.org>
Date: Tue, 28 Sep 2010 23:02:08 +0000 (UTC)
From: djo@pasteur.fr
Reply-To: djo@pasteur.fr
To: gnats-bugs@NetBSD.org
Subject: [www/wml] build error on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         43922
>Category:       pkg
>Synopsis:       [www/wml] build error on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kim
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 28 23:05:00 +0000 2010
>Closed-Date:    Sun Jan 05 19:42:02 +0000 2020
>Last-Modified:  Sun Jan 05 19:42:02 +0000 2020
>Originator:     Youssef Ghorbal
>Release:        Solaris 10
>Organization:
Institut Pasteur
>Environment:
SunOS 5.10 Generic_142900-03 sun4v sparc SUNW,SPARC-Enterprise-T5120
>Description:
I know that no one is using this anymore but just for the record www/wml does not build on Solaris 10 because of the use of -z defs when linking a shared object which leeds to error message regarding missing symbols.
There is a section in the wml_backend/p2_mp4h/configure file regarding solaris

  solaris*)
    # gcc --version < 3.0 without binutils cannot create self contained
    # shared libraries reliably, requiring libgcc.a to resolve some of
    # the object symbols generated in some cases.  Libraries that use
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
    # a copy of libgcc.a into every shared library to guarantee resolving
    # such symbols causes other problems:  According to Tim Van Holder
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
    # (to the application) exception stack for one thing.

ending with setting no_undefined_flag=' -z defs' which leeds to a build error
>How-To-Repeat:
build www/wml on Solaris 10
>Fix:
I propose to add these lines to the Makefile : 

.if ${OPSYS} == "SunOS"
SUBST_CLASSES+=         configure
SUBST_STAGE.configure=  post-patch
SUBST_FILES.configure=  wml_backend/p2_mp4h/configure
SUBST_SED.configure=    -e "s|no_undefined_flag=' -z defs'|no_undefined_flag=|g"
.endif

This patch/workaround resolves the build issue.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->kim
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 29 Sep 2010 11:31:06 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: kim@NetBSD.org
State-Changed-When: Sun, 05 Jan 2020 19:42:02 +0000
State-Changed-Why:
I've removed www/wml from pkgsrc as the upstream no longer exists,
and as you mention, nobody is using this anymore.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 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.