NetBSD Problem Report #52985

From www@NetBSD.org  Wed Feb  7 15:00:14 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8A5B27A195
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  7 Feb 2018 15:00:14 +0000 (UTC)
Message-Id: <20180207150011.E45717A21F@mollari.NetBSD.org>
Date: Wed,  7 Feb 2018 15:00:11 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: converters/p5-Text-Iconv does not build on Solaris using cwrappers
X-Send-Pr-Version: www-1.0

>Number:         52985
>Category:       pkg
>Synopsis:       converters/p5-Text-Iconv does not build on Solaris using cwrappers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 07 15:05:00 +0000 2018
>Last-Modified:  Mon Feb 12 08:10:01 +0000 2018
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
With cwrappers activated, building converters/p5-Text-Iconv on Solaris 11.3 fails with

===> Creating toolchain wrappers for p5-Text-Iconv-1.7nb8
===> Configuring for p5-Text-Iconv-1.7nb8
Checking for iconv ... fail
Failed to find iconv, please check your settings and re-run as:
/opt/pkg-hrz/20180102/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
*** Error code 1


Deactivating cwrappers temporarily, libiconv is found and used:

===> Creating toolchain wrappers for p5-Text-Iconv-1.7nb8
===> Configuring for p5-Text-Iconv-1.7nb8
Checking for iconv ... ok (added -liconv)

NOTE: If you have multiple iconv implementations installed, you might
      want to make sure that I've found the one you want to use.
      If necessary, you can explicitly specify paths like this:

      /opt/pkg-hrz/20180102/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile


Luckily the right library is found, .../Text/Iconv/Iconv.so is linked to pkgsrc's libiconv.

>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52985: converters/p5-Text-Iconv does not build on Solaris
 using cwrappers
Date: Wed, 7 Feb 2018 16:14:12 +0100

 On Wed, Feb 07, 2018 at 03:05:00PM +0000, joern.clausen@uni-bielefeld.de wrote:
 > >Number:         52985
 > >Category:       pkg
 > >Synopsis:       converters/p5-Text-Iconv does not build on Solaris using cwrappers
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Wed Feb 07 15:05:00 +0000 2018
 > >Originator:     Joern Clausen
 > >Release:        
 > >Organization:
 > University of Bielefeld
 > >Environment:
 > >Description:
 > With cwrappers activated, building converters/p5-Text-Iconv on Solaris 11.3 fails with
 > 
 > ===> Creating toolchain wrappers for p5-Text-Iconv-1.7nb8
 > ===> Configuring for p5-Text-Iconv-1.7nb8
 > Checking for iconv ... fail
 > Failed to find iconv, please check your settings and re-run as:
 > /opt/pkg-hrz/20180102/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
 > *** Error code 1

 Well, what's the end of wrapper.log?

 Joerg

From: Joern Clausen <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52985: converters/p5-Text-Iconv does not build on Solaris
 using cwrappers
Date: Wed, 07 Feb 2018 16:49:10 +0100

 >   Well, what's the end of wrapper.log?

 Do you mean .work.log? This is the end of .work.log with cwrappers:

 [*] cc -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include 
 -fwrapv -fno-strict-aliasing -pipe -I/usr/gnu/include -m64 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV 
 -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 
 -Wl,-R/opt/pkg-hrz/20180102/lib -L/usr/gnu/lib -m64 -o linktest linktest.c
 <.> 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.gcc/bin/gcc 
 -m64 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -fwrapv 
 -fno-strict-aliasing -pipe -m64 -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread 
 -Wl,-rpath,/opt/pkg-hrz/20180102/lib -m64 -o linktest linktest.c 
 -D_FORTIFY_SOURCE=2 -fstack-protector 
 -I/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/include
 [*] cc -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include 
 -fwrapv -fno-strict-aliasing -pipe -I/usr/gnu/include -m64 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV 
 -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 
 -Wl,-R/opt/pkg-hrz/20180102/lib -L/usr/gnu/lib -m64 -liconv -o linktest 
 linktest.c -liconv
 <.> 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.gcc/bin/gcc 
 -m64 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -fwrapv 
 -fno-strict-aliasing -pipe -m64 -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread 
 -Wl,-rpath,/opt/pkg-hrz/20180102/lib -m64 -liconv -o linktest linktest.c 
 -liconv -D_FORTIFY_SOURCE=2 -fstack-protector 
 -I/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/include


 This is the corresponding part without cwrappers:

 [*] 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.wrapper/bin/gcc 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.wrapper/bin/gcc 
 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -fwrapv 
 -fno-strict-aliasing -pipe -I/usr/gnu/include -m64 -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread -L/usr/lib/amd64 
 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg-hrz/20180102/lib -L/usr/gnu/lib -m64 
 -o linktest linktest.c
 <.> 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.gcc/bin/gcc 
 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -fwrapv 
 -fno-strict-aliasing -pipe -m64 -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread 
 -Wl,-R/opt/pkg-hrz/20180102/lib -m64 -o linktest linktest.c -m64 
 -fstack-protector 
 -I/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/include 
 -L/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/lib
 [*] 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.wrapper/bin/gcc 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.wrapper/bin/gcc 
 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -fwrapv 
 -fno-strict-aliasing -pipe -I/usr/gnu/include -m64 -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread -L/usr/lib/amd64 
 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg-hrz/20180102/lib -L/usr/gnu/lib -m64 
 -liconv -o linktest linktest.c -liconv
 <.> 
 /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.gcc/bin/gcc 
 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -fwrapv 
 -fno-strict-aliasing -pipe -m64 -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread 
 -Wl,-R/opt/pkg-hrz/20180102/lib -m64 -o linktest linktest.c -m64 
 -fstack-protector 
 -I/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/include 
 -L/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/lib 
   -liconv


 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/bits

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	joern.clausen@uni-bielefeld.de
Subject: Re: pkg/52985: converters/p5-Text-Iconv does not build on Solaris
 using cwrappers
Date: Wed, 7 Feb 2018 22:18:19 +0100

 On Wed, Feb 07, 2018 at 03:50:01PM +0000, Joern Clausen wrote:
 > The following reply was made to PR pkg/52985; it has been noted by GNATS.
 > 
 > From: Joern Clausen <joern.clausen@uni-bielefeld.de>
 > To: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
 >  pkgsrc-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/52985: converters/p5-Text-Iconv does not build on Solaris
 >  using cwrappers
 > Date: Wed, 07 Feb 2018 16:49:10 +0100
 > 
 >  >   Well, what's the end of wrapper.log?
 >  
 >  Do you mean .work.log? This is the end of .work.log with cwrappers:
 >  
 >  [*] cc -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include 
 >  -fwrapv -fno-strict-aliasing -pipe -I/usr/gnu/include -m64 
 >  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV 
 >  -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 
 >  -Wl,-R/opt/pkg-hrz/20180102/lib -L/usr/gnu/lib -m64 -o linktest linktest.c
 >  <.> 
 >  /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.gcc/bin/gcc 
 >  -m64 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -fwrapv 
 >  -fno-strict-aliasing -pipe -m64 -D_LARGEFILE_SOURCE 
 >  -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread 
 >  -Wl,-rpath,/opt/pkg-hrz/20180102/lib -m64 -o linktest linktest.c 
 >  -D_FORTIFY_SOURCE=2 -fstack-protector 
 >  -I/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/include

 Missing -L${PREFIX}/lib?

 Joerg

From: Joern Clausen <joern.clausen@uni-bielefeld.de>
To: Joerg Sonnenberger <joerg@bec.de>, gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/52985: converters/p5-Text-Iconv does not build on Solaris
 using cwrappers
Date: Mon, 12 Feb 2018 09:09:31 +0100

 On 02/07/18 22:18, Joerg Sonnenberger wrote:
 > On Wed, Feb 07, 2018 at 03:50:01PM +0000, Joern Clausen wrote:
 >> The following reply was made to PR pkg/52985; it has been noted by GNATS.
 >>
 >> From: Joern Clausen <joern.clausen@uni-bielefeld.de>
 >> To: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
 >>   pkgsrc-bugs@NetBSD.org
 >> Cc:
 >> Subject: Re: pkg/52985: converters/p5-Text-Iconv does not build on Solaris
 >>   using cwrappers
 >> Date: Wed, 07 Feb 2018 16:49:10 +0100
 >>
 >>   >   Well, what's the end of wrapper.log?
 >>   
 >>   Do you mean .work.log? This is the end of .work.log with cwrappers:
 >>   
 >>   [*] cc -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include
 >>   -fwrapv -fno-strict-aliasing -pipe -I/usr/gnu/include -m64
 >>   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV
 >>   -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64
 >>   -Wl,-R/opt/pkg-hrz/20180102/lib -L/usr/gnu/lib -m64 -o linktest linktest.c
 >>   <.>
 >>   /opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.gcc/bin/gcc
 >>   -m64 -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -pthread -fwrapv
 >>   -fno-strict-aliasing -pipe -m64 -D_LARGEFILE_SOURCE
 >>   -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -pthread
 >>   -Wl,-rpath,/opt/pkg-hrz/20180102/lib -m64 -o linktest linktest.c
 >>   -D_FORTIFY_SOURCE=2 -fstack-protector
 >>   -I/opt/pkgsrc/pkg-hrz/pkgsrc/converters/p5-Text-Iconv/work.pkgsrc-sol11i86/.buildlink/include
 > 
 > Missing -L${PREFIX}/lib?

 yes

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/bits

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.