From nobody@FreeBSD.org  Thu May  6 08:53:49 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 042F8106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 May 2010 08:53:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id DC9388FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 May 2010 08:53:48 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o468rmXM056553
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 May 2010 08:53:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o468rmFC056546;
	Thu, 6 May 2010 08:53:48 GMT
	(envelope-from nobody)
Message-Id: <201005060853.o468rmFC056546@www.freebsd.org>
Date: Thu, 6 May 2010 08:53:48 GMT
From: MC <rossiya2@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libidn-1.15 breaks devel/icu
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: mi@aldan.algebra.com

>Number:         146354
>Category:       ports
>Synopsis:       libidn-1.15 breaks devel/icu
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 06 09:00:14 UTC 2010
>Closed-Date:    Thu May 06 10:25:21 UTC 2010
>Last-Modified:  Thu May 06 10:25:21 UTC 2010
>Originator:     MC
>Release:        FreeBSD 8.0-STABLE #0
>Organization:
>Environment:
FreeBSD 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Mar 15 01:57:22 GMT 2010     root@:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
devel/icu builds normally on a fresh [no ports] BSD as does icu in openoffice-3.  By exhaustion I am able to repeatedly break devel/icu builds with libidn-1.15 installed, while: 

        # pkg_delete -f /var/db/pkg/libidn-1.15/

restores semless builds of devel/icu.  I am able to repeatedly break devel/icu builds with libidn-1.15 installed, while:

        # pkg_add /dist/packages/All/libidn-1.15.tbz

restores flawless builds of devel/icu.
        
Pertinent make output:

gmake[1]: Entering directory `/usr/ports/devel/icu/work/icu/source/test/intltest'
..
..
..
c++ -I/usr/local/include  -I../../common -I../../i18n -I../../tools/toolutil -I../../tools/ctestfw  -D'U_TOPSRCDIR="../../"' -D'U_TOPBU
ILDDIR="/usr/ports/devel/icu/work/icu/source/"' -pipe -march=native -O2 -fno-strict-aliasing  -c   -o idnaref.o idnaref.cpp
In file included from idnaref.cpp:27:
/usr/local/include/punycode.h:85: error: multiple definition of 'enum punycode_status'
punyref.h:41: error: previous definition here
/usr/local/include/punycode.h:87: error: conflicting declaration 'punycode_success'
punyref.h:42: error: 'punycode_success' has a previous declaration as 'punycode_status punycode_success'
/usr/local/include/punycode.h:88: error: conflicting declaration 'punycode_bad_input'
punyref.h:43: error: 'punycode_bad_input' has a previous declaration as 'punycode_status punycode_bad_input'
/usr/local/include/punycode.h:89: error: conflicting declaration 'punycode_big_output'
punyref.h:44: error: 'punycode_big_output' has a previous declaration as 'punycode_status punycode_big_output'
/usr/local/include/punycode.h:90: error: conflicting declaration 'punycode_overflow'
punyref.h:45: error: 'punycode_overflow' has a previous declaration as 'punycode_status punycode_overflow'
/usr/local/include/punycode.h:111: error: declaration of C function 'int punycode_encode(size_t, const punycode_uint*, const unsigned c
har*, size_t*, char*)' conflicts with
punyref.h:58: error: previous declaration 'punycode_status punycode_encode(punycode_uint, const punycode_uint*, const unsigned char*, p
unycode_uint*, char*)' here
/usr/local/include/punycode.h:172: error: declaration of C function 'int punycode_decode(size_t, const char*, size_t*, punycode_uint*,
unsigned char*)' conflicts with
punyref.h:90: error: previous declaration 'punycode_status punycode_decode(punycode_uint, const char*, punycode_uint*, punycode_uint*,
unsigned char*)' here
idnaref.cpp: In function 'int32_t convertToPuny(const UChar*, int32_t, UChar*, int32_t, UErrorCode&)':
idnaref.cpp:161: error: invalid conversion from 'int' to 'punycode_status'
idnaref.cpp:174: error: invalid conversion from 'int' to 'punycode_status'
idnaref.cpp: In function 'int32_t convertFromPuny(const UChar*, int32_t, UChar*, int32_t, UErrorCode&)':
idnaref.cpp:212: error: invalid conversion from 'int' to 'punycode_status'
idnaref.cpp:220: error: invalid conversion from 'int' to 'punycode_status'
gmake[1]: *** [idnaref.o] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/icu/work/icu/source/test/intltest'
gmake: *** [all-recursive] Error 2
gmake: Leaving directory `/usr/ports/devel/icu/work/icu/source/test'
*** Error code 2 (ignored)
cd /usr/ports/devel/icu/work/icu/source/test/iotest && /usr/bin/env  LD_LIBRARY_PATH=/usr/ports/devel/icu/work/icu/source/lib:/usr/port
s/devel/icu/work/icu/source/tools/ctestfw  ./iotest
env: ./iotest: No such file or directory
*** Error code 127

Stop in /usr/ports/devel/icu.
>How-To-Repeat:
ports:/usr/ports/devel/icu # pkg_add /dist/packages/All/libidn-1.15.tbz
ports:/usr/ports/devel/icu # make clean && make

>Fix:
Workaround: deinstall libidn


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu May 6 09:01:09 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146354 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: mi@aldan.algebra.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/146354: libidn-1.15 breaks devel/icu
Date: Thu, 6 May 2010 09:01:07 UT

 Maintainer of devel/icu,
 
 Please note that PR ports/146354 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146354
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu May 6 10:24:11 UTC 2010 
State-Changed-Why:  
Duplicate of ports/146353. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146354 
>Unformatted:
