Bug 31806

Summary: nl_langinfo is in libc but not in include files.
Product: Base System Reporter: Stephen Montgomery-Smith <stephen>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Stephen Montgomery-Smith 2001-11-06 19:00:01 UTC
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

Fix: 

Looks like langinfo.h is in src-cur, so best to get it into src-4 as soon as
possible.
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
Comment 1 Андрей Чернов 2001-11-07 04:40:21 UTC
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/
Comment 2 Stephen Montgomery-Smith 2001-11-07 16:10:37 UTC
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
Comment 3 dwmalone freebsd_committer freebsd_triage 2001-11-07 16:22:01 UTC
State Changed
From-To: open->closed

Submitter says problem is resolved.