NetBSD Problem Report #43924

From www@NetBSD.org  Tue Sep 28 23:37:54 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 8461163B8E6
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 28 Sep 2010 23:37:54 +0000 (UTC)
Message-Id: <20100928233754.5523563B8DB@www.NetBSD.org>
Date: Tue, 28 Sep 2010 23:37:54 +0000 (UTC)
From: djo@pasteur.fr
Reply-To: djo@pasteur.fr
To: gnats-bugs@NetBSD.org
Subject: [net/host] build error on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         43924
>Category:       pkg
>Synopsis:       [net/host] build error on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 28 23:40:00 +0000 2010
>Closed-Date:    
>Last-Modified:  Sat Feb 15 14:30:46 +0000 2020
>Originator:     Youssef Ghorbal
>Release:        Solaris 10 (x86)
>Organization:
Institut Pasteur
>Environment:
SunOS 5.10 Generic_139556-08 i86pc i386 i86pc
>Description:
The net/host package does not build on Solaris 05/09 x86 (pkgsrc current) and reports many errors. These are the root causes of the build failure :

1 - The package tries to build a static binary when it has always been such a pain on Solaris (there is no libc.a) 
2 - The sun linker does not kown about the --warn-common option.
3 - Some symbols are not defined in "regular" shared libraries. We have to add extra ones-lresolv -lsocket -lnsl to the linker in order to resolve all symbols.
4 - The andoc macro does not exist on Solaris 10 neither the ascii device type. This causes an error message when formatting man pages :
...
nroff -Tascii -mandoc host.1 > host.cat1
nroff: Cannot find library -mandoc
>How-To-Repeat:
build net/host on Solaris 10 (x86)
>Fix:
For problems 1, 2 and 3 I suggest to add this section in the Makefile :

.if ${OPSYS} == "SunOS"
LDFLAGS+= -lresolv -lsocket -lnsl
BUILDLINK_TRANSFORM+= rm:-Wl,--warn-common
BUILDLINK_TRANSFORM+= rm:-static
.endif

For the manpage formatting as a workaround one can use groff instead of the Sun's nroff (TOOLS_PLATFORM.nroff=/opt/pkg/bin/groff in mk.conf)

>Release-Note:

>Audit-Trail:
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43924 CVS commit: pkgsrc/net/host
Date: Wed, 29 Sep 2010 12:27:47 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Wed Sep 29 12:27:47 UTC 2010

 Modified Files:
 	pkgsrc/net/host: Makefile

 Log Message:
 Add some tricks to build on Solaris.
 PR#43924.


 To generate a diff of this commit:
 cvs rdiff -u -r1.20 -r1.21 pkgsrc/net/host/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 09 Oct 2010 21:13:31 +0000
State-Changed-Why:
Is it working now?


From: Youssef Ghorbal <djo@pasteur.fr>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org,
 dholland@NetBSD.org
Subject: Re: pkg/43924 ([net/host] build error on Solaris 10)
Date: Mon, 11 Oct 2010 12:15:26 +0200

 On Oct 9, 2010, at 11:13 PM, dholland@NetBSD.org wrote:

 > Synopsis: [net/host] build error on Solaris 10
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Sat, 09 Oct 2010 21:13:31 +0000
 > State-Changed-Why:
 > Is it working now?

 The build process is still not working because of the man page handling =
 :=20

 nroff -Tascii -mandoc host.1 > host.cat1
 nroff: Cannot find library -mandoc
 *** Error code 1
 Stop.
 bmake: stopped in /opt/pkg/tmp/net/host/work/host-20040812
 *** Error code 1
 Stop.
 bmake: stopped in /opt/pkgsrc/net/host
 *** Error code 1
 Stop.
 bmake: stopped in /opt/pkgsrc/net/host

 The only solution I see is to force the use of groff instead of nroff.
 Or to bypass the whole man page handeling on SunOS with a warning =
 message stating that "if you need man pages for this port under Solaris, =
 you need to adjest your mk.conf to use groff TOOLS_PLATFORM.nroff=3D   =
 /opt/pkg/bin/groff"

 Youssef Ghorbal=

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/43924 ([net/host] build error on Solaris 10)
Date: Mon, 11 Oct 2010 19:28:03 +0900

 I feel that if formatting manpages is not supported on certain platforms,
 MANINSTALL=maninstall should be defined somewhere.

From: Youssef Ghorbal <djo@pasteur.fr>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/43924 ([net/host] build error on Solaris 10)
Date: Mon, 11 Oct 2010 14:07:43 +0200

 > On Oct 9, 2010, at 11:13 PM, dholland@NetBSD.org wrote:
 >=20
 >> Synopsis: [net/host] build error on Solaris 10
 >> =3D20
 >> State-Changed-From-To: open->feedback
 >> State-Changed-By: dholland@NetBSD.org
 >> State-Changed-When: Sat, 09 Oct 2010 21:13:31 +0000
 >> State-Changed-Why:
 >> Is it working now?

 I forgot to note an error in the commit of The Makefile. The lib that =
 have to be added is "resolv" et not "resolve"
 LDFLAGS+=3D       -lresolve -lsocket -lnsl (is not correct)
 LDFLAGS+=3D       -lresolv -lsocket -lnsl (is correct)

 Youssef Ghorbal


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43924 CVS commit: pkgsrc/net/host
Date: Mon, 11 Oct 2010 12:15:14 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Mon Oct 11 12:15:13 UTC 2010

 Modified Files:
 	pkgsrc/net/host: Makefile

 Log Message:
 Fix a typo, PR#43924.


 To generate a diff of this commit:
 cvs rdiff -u -r1.21 -r1.22 pkgsrc/net/host/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 11 Oct 2010 18:51:55 +0000
State-Changed-Why:
manpage is still broken.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43924 ([net/host] build error on Solaris 10)
Date: Mon, 11 Oct 2010 20:02:18 +0000

 On Mon, Oct 11, 2010 at 10:30:05AM +0000, OBATA Akio wrote:
  >  I feel that if formatting manpages is not supported on certain platforms,
  >  MANINSTALL=maninstall should be defined somewhere.

 There are a lot of packages with USE_BSD_MAKEFILE=yes, and as far as I
 can tell only a handful of them have hacks to avoid this problem. Do
 all of these fail to build on Solaris?

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: rillig@NetBSD.org
Responsible-Changed-When: Sat, 15 Feb 2020 14:30:47 +0000
Responsible-Changed-Why:
It's a Solaris issue.


>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.