From nobody@FreeBSD.org  Sun Jun 24 08:26:09 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 36C79106567A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Jun 2012 08:26:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 224AF8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Jun 2012 08:26:09 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5O8Q8U1096118
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Jun 2012 08:26:08 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q5O8Q89Q096106;
	Sun, 24 Jun 2012 08:26:08 GMT
	(envelope-from nobody)
Message-Id: <201206240826.q5O8Q89Q096106@red.freebsd.org>
Date: Sun, 24 Jun 2012 08:26:08 GMT
From: Beeblebrox <zaphod@berentweb.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Buildworld breaks at libncp
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         169365
>Category:       kern
>Synopsis:       [build] Buildworld breaks at libncp
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 24 08:30:13 UTC 2012
>Closed-Date:    Mon Jul 16 02:31:50 UTC 2012
>Last-Modified:  Mon Jul 16 02:31:50 UTC 2012
>Originator:     Beeblebrox
>Release:        9.0-STABLE
>Organization:
>Environment:
FreeBSD 9.0-STABLE #0 r235991: Sat May 26 14:20:06 EEST 2012 amd64
>Description:
Buildworld breaks at libncp.
My source repository is: At revision 237525.
My /etc/src.conf has: WITHOUT_NLS= yes, WITHOUT_NLS_CATALOGS= yes

Looking at the error message, I first thought it could be because of the  WITHOUT_NLS setting above. However, I got the same result when I commented out those two lines.

ERROR MESSAGE:
/usr/local/bin/ccache cc -fpic -DPIC  -O2 -pipe -march=k8 -DNDEBUG -std=gnu99 -fstack-protector -Wno-pointer-sign -c /usr/src/lib/libncp/ncpl_rpc.c -o ncpl_rpc.So
/usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE' undeclared here (not in a function)
/usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE_NAME' undeclared here (not in a function)
*** Error code 1
/usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE' undeclared here (not in a function)
/usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE_NAME' undeclared here (not in a function)
*** Error code 1
2 errors

>How-To-Repeat:
Buildworld

>Fix:
N/A

>Release-Note:
>Audit-Trail:

From: Scot Hetzel <swhetzel@gmail.com>
To: Beeblebrox <zaphod@berentweb.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/169365: Buildworld breaks at libncp
Date: Sun, 24 Jun 2012 19:44:37 -0500

 On Sun, Jun 24, 2012 at 3:26 AM, Beeblebrox <zaphod@berentweb.com> wrote:
 > Buildworld breaks at libncp.
 > My source repository is: At revision 237525.
 > My /etc/src.conf has: WITHOUT_NLS=3D yes, WITHOUT_NLS_CATALOGS=3D yes
 >
 > Looking at the error message, I first thought it could be because of the =
 =A0WITHOUT_NLS setting above. However, I got the same result when I comment=
 ed out those two lines.
 >
 > ERROR MESSAGE:
 > /usr/local/bin/ccache cc -fpic -DPIC =A0-O2 -pipe -march=3Dk8 -DNDEBUG -s=
 td=3Dgnu99 -fstack-protector -Wno-pointer-sign -c /usr/src/lib/libncp/ncpl_=
 rpc.c -o ncpl_rpc.So
 > /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE' undeclared here (=
 not in a function)
 > /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE_NAME' undeclared h=
 ere (not in a function)
 > *** Error code 1
 > /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE' undeclared here (=
 not in a function)
 > /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE_NAME' undeclared h=
 ere (not in a function)
 > *** Error code 1
 > 2 errors
 >
 Does it build if you don't use ccache?
 
 Scot
Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jun 25 03:34:18 UTC 2012 
Responsible-Changed-Why:  
not amd64-specific. 

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

From: Beeblebrox <zaphod@berentweb.com>
To: Scot Hetzel <swhetzel@gmail.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/169365: Buildworld breaks at libncp
Date: Mon, 25 Jun 2012 09:51:38 +0300

 On Mon, Jun 25, 2012 at 3:44 AM, Scot Hetzel <swhetzel@gmail.com> wrote:
 > On Sun, Jun 24, 2012 at 3:26 AM, Beeblebrox <zaphod@berentweb.com> wrote:
 >> Buildworld breaks at libncp.
 >> My source repository is: At revision 237525.
 >> My /etc/src.conf has: WITHOUT_NLS=3D yes, WITHOUT_NLS_CATALOGS=3D yes
 >>
 >> Looking at the error message, I first thought it could be because of the=
  =A0WITHOUT_NLS setting above. However, I got the same result when I commen=
 ted out those two lines.
 >>
 >> ERROR MESSAGE:
 >> /usr/local/bin/ccache cc -fpic -DPIC =A0-O2 -pipe -march=3Dk8 -DNDEBUG -=
 std=3Dgnu99 -fstack-protector -Wno-pointer-sign -c /usr/src/lib/libncp/ncpl=
 _rpc.c -o ncpl_rpc.So
 >> /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE' undeclared here =
 (not in a function)
 >> /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE_NAME' undeclared =
 here (not in a function)
 >> *** Error code 1
 >> /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE' undeclared here =
 (not in a function)
 >> /usr/src/lib/libncp/ncpl_nls.c:301: error: 'NCP_NLS_DE_NAME' undeclared =
 here (not in a function)
 >> *** Error code 1
 >> 2 errors
 >>
 > Does it build if you don't use ccache?
 >
 > Scot
 
 I got this error a few days ago and waited for an update (which
 usually solves the issue) before posting. As I recall I had tried to
 re-build without ccache the first time I encountered the error, I did
 not however try without ccache the second time I got the same error.
 
 I tried a buildworld with no ccache and no threads (-j), world did
 complete the build + no errors.
 
 Strange, or just plain my bad. Solved for the time being.
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Jul 16 02:31:29 UTC 2012 
State-Changed-Why:  
Submitter notes that the PR may be closed. 

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