From stephen@cauchy.math.missouri.edu  Tue Nov  6 10:59:28 2001
Return-Path: <stephen@cauchy.math.missouri.edu>
Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.49.166])
	by hub.freebsd.org (Postfix) with ESMTP id 8DCA837B418
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Nov 2001 10:59:27 -0800 (PST)
Received: (from stephen@localhost)
	by cauchy.math.missouri.edu (8.11.6/8.11.6) id fA6IxQx73248;
	Tue, 6 Nov 2001 12:59:26 -0600 (CST)
	(envelope-from stephen)
Message-Id: <200111061859.fA6IxQx73248@cauchy.math.missouri.edu>
Date: Tue, 6 Nov 2001 12:59:26 -0600 (CST)
From: Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
Reply-To: Stephen Montgomery-Smith <stephen@math.missouri.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: nl_langinfo is in libc but not in include files.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31806
>Category:       bin
>Synopsis:       nl_langinfo is in libc but not in include files.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 06 11:00:01 PST 2001
>Closed-Date:    Wed Nov 7 08:22:01 PST 2001
>Last-Modified:  Wed Nov 07 08:28:34 PST 2001
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
University of Missouri
>Environment:
System: FreeBSD cauchy 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Nov 3 11:57:39 CST 2001 stephen@cauchy:/usr/obj/usr/src/sys/cauchy i386

libc, libc_r

>Description:

nl_langinfo is in the libraries like libc, but it is not mentioned anywhere
in the include files.  This creates a problem for ports like gnupg or
mozilla, because the configure script finds nl_langinfo in libc, but it 
then files to compile because there is no langinfo.h

>How-To-Repeat:

cd /usr/ports/security/gnupg
make

.....

cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl  -I/usr/local/include  -O -march=pentiumpro -DCOMPAT_LINUX_THREADS -DVM_STACK  -Wall -c miscutil.c
miscutil.c: In function `asctimestamp':
miscutil.c:160: warning: implicit declaration of function `nl_langinfo'
miscutil.c:160: `D_T_FMT' undeclared (first use in this function)
miscutil.c:160: (Each undeclared identifier is reported only once
miscutil.c:160: for each function it appears in.)
miscutil.c:160: warning: passing arg 2 of `mem2str' makes pointer from integer without a cast
*** Error code 1

>Fix:

Looks like langinfo.h is in src-cur, so best to get it into src-4 as soon as
possible.

>Release-Note:
>Audit-Trail:

From: "Andrey A. Chernov" <ache@nagual.pp.ru>
To: Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/31806: nl_langinfo is in libc but not in include files.
Date: Wed, 7 Nov 2001 07:40:21 +0300

 On Tue, Nov 06, 2001 at 12:59:26 -0600, Stephen Montgomery-Smith wrote:
 > 
 > nl_langinfo is in the libraries like libc, but it is not mentioned anywhere
 > in the include files.  This creates a problem for ports like gnupg or
 > mozilla, because the configure script finds nl_langinfo in libc, but it 
 > then files to compile because there is no langinfo.h
 > 
 > Looks like langinfo.h is in src-cur, so best to get it into src-4 as soon as
 > possible.
 
 No, addition of _fake_ nl_langinfo to src-4 should be backed out 
 instead (or full locale merged from src-cur).
 
 -- 
 Andrey A. Chernov
 http://ache.pp.ru/

From: Stephen Montgomery-Smith <stephen@math.missouri.edu>
To: freebsd-gnats-submit@FreeBSD.org, stephen@math.missouri.edu
Cc:  
Subject: Re: bin/31806: nl_langinfo is in libc but not in include files.
Date: Wed, 07 Nov 2001 10:10:37 -0600

 It looks like nl_langinfo was backed out of src-4 last night, so the
 problem is fixed, and
 
 This PR can be closed.
 
 -- 
 Stephen Montgomery-Smith
 stephen@math.missouri.edu
 http://www.math.missouri.edu/~stephen
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Wed Nov 7 08:22:01 PST 2001 
State-Changed-Why:  
Submitter says problem is resolved. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31806 
>Unformatted:
