Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 12:02:41 GMT
From:      Marat Bakeev <hawara@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177468: converters/iconv build failed with perl5.16
Message-ID:  <201303291202.r2TC2fDC093230@red.freebsd.org>
Resent-Message-ID: <201303291210.r2TCA0Jr038462@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177468
>Category:       ports
>Synopsis:       converters/iconv build failed with perl5.16
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 29 12:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Marat Bakeev
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD hawara.office.*.ru 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
with perl5.16 converters/iconv won`t build

build log:
===>   iconv-2.0_3 depends on file: /usr/local/bin/perl5.16.2 - found
===>  Configuring for iconv-2.0_3
===>  Building for iconv-2.0_3
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOOBJ is deprecated in favour of NO_OBJ
===> lib (all)
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ccs/../iconv_builtin line 34.
"Makefile", line 5: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ccs/../iconv_builtin -s .c us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ccs/charset.aliases" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ccs/../iconv_builtin line 34.
"Makefile", line 7: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ccs/../iconv_builtin -ns .cct us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ccs/charset.aliases" returned non-zero status
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOMAN is deprecated in favour of NO_MAN
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOOBJ is deprecated in favour of NO_OBJ
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ccs/../iconv_builtin line 34.
"Makefile", line 8: warning: "cd /work/a/ports/converters/iconv/work/iconv-2.0/lib/../ccs && make lib >/dev/null && ar t libccs.a" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 4: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin -s .c us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ces/charset.aliases" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 6: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin -ns .so us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ces/charset.aliases" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 8: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin -ns .o us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ces/charset.aliases" returned non-zero status
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOMAN is deprecated in favour of NO_MAN
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOOBJ is deprecated in favour of NO_OBJ
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 9: warning: "cd /work/a/ports/converters/iconv/work/iconv-2.0/lib/../ces && make lib >/dev/null && ar t libces.a" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 4: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin -s .c us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ces/charset.aliases" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 6: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin -ns .so us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ces/charset.aliases" returned non-zero status
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin line 34.
"Makefile", line 8: warning: "/work/a/ports/converters/iconv/work/iconv-2.0/ces/../iconv_builtin -ns .o us-ascii utf-8 ucs-4-internal  < /work/a/ports/converters/iconv/work/iconv-2.0/ces/charset.aliases" returned non-zero status
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOMAN is deprecated in favour of NO_MAN
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOOBJ is deprecated in favour of NO_OBJ
"/usr/share/mk/bsd.compat.mk", line 35: warning: NOOBJ is deprecated in favour of NO_OBJ
cp iconv.h biconv.h
cat /work/a/ports/converters/iconv/work/iconv-2.0/lib/../ccs/charset.aliases /work/a/ports/converters/iconv/work/iconv-2.0/lib/../ces/charset.aliases | /work/a/ports/converters/iconv/work/iconv-2.0/lib/../iconv_builtin    PIC  > aliases.h
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16.2/BSDPAN /usr/local/lib/perl5/site_perl/5.16.2/mach /usr/local/lib/perl5/site_perl/5.16.2 /usr/local/lib/perl5/5.16.2/mach /usr/local/lib/perl5/5.16.2 .) at /work/a/ports/converters/iconv/work/iconv-2.0/lib/../iconv_builtin line 34.
*** Error code 2

Stop in /work/a/ports/converters/iconv/work/iconv-2.0/lib.
*** Error code 1

Stop in /work/a/ports/converters/iconv/work/iconv-2.0.
*** Error code 1
>How-To-Repeat:
With perl5.16-installed system,
cd /usr/ports/converters/iconv  && make
>Fix:
copy this patch attached below to /usr/ports/converters/iconv/files directory,
and make clean. Then make this port.

Patch attached with submission follows:

diff -ru ../iconv-2.0/./ccs/iconv_mktbl ./ccs/iconv_mktbl
--- ../iconv-2.0/./ccs/iconv_mktbl	2000-11-19 00:44:27.000000000 +0300
+++ ./ccs/iconv_mktbl	2013-03-29 15:53:30.000000000 +0400
@@ -31,7 +31,7 @@
 # 	iconv (Charset Conversion Library) v2.0
 #
 
-require 'getopts.pl';
+use Getopt::Std;
 use integer;
 
 sub pack_hex {
@@ -144,7 +144,7 @@
 $opt_p = '0x';
 $opt_u = 1;
 
-&Getopts('aCc:Mm:o:p:u:');
+getopts('aCc:Mm:o:p:u:');
 #         ||| || | | +- u N:	field number for Unicode character codes
 #         ||| || | +--- p str:	prefix
 #         ||| || +----- o file:	output file name
diff -ru ../iconv-2.0/./iconv_builtin ./iconv_builtin
--- ../iconv-2.0/./iconv_builtin	2000-11-21 01:07:41.000000000 +0300
+++ ./iconv_builtin	2013-03-29 15:52:41.000000000 +0400
@@ -31,9 +31,9 @@
 # 	iconv (Charset Conversion Library) v2.0
 #
 
-require 'getopts.pl';
+use Getopt::Std;
 
-&Getopts('mno:s:');
+getopts('mno:s:');
 
 if ($opt_o) {
 	open(STDOUT, ">$opt_o");


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303291202.r2TC2fDC093230>