Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 2002 19:10:35 +0200 (CEST)
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   standards/37078: missing prototype for strdup(3)
Message-ID:  <20020414221316.B3EAE5604@des.thinksec.com>

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

>Number:         37078
>Category:       standards
>Synopsis:       missing prototype for strdup(3)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-standards
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 14 15:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dag-Erling Smorgrav
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
ThinkSec AS
>Environment:
System: FreeBSD des.thinksec.com 5.0-CURRENT FreeBSD 5.0-CURRENT #185: Sat Apr
+13 07:20:28 CEST 2002 des@des.thinksec.com:/usr/src/sys/i386/compile/DES i386

>Description:

Revision 1.13 of src/include/string.h made the strdup(3) prototype conditional
on __POSIX_VISIBLE >= 200112.  However, strdup(3) was in SUSv2 long before
POSIX 2.  Programs that set _XOPEN_SOURCE to 500 should get a prototype
for strdup(3).

>How-To-Repeat:

# cd /usr/src/lib/libpam/modules/pam_passwdqc
# make

and observe the warnings.

>Fix:

Unknown.  Revision 1.13 of src/include/string.h should be backed out until
a satisfactory fix has been found.
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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