Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2001 12:59:26 -0600 (CST)
From:      Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/31806: nl_langinfo is in libc but not in include files.
Message-ID:  <200111061859.fA6IxQx73248@cauchy.math.missouri.edu>

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


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 06 11:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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