From owner-freebsd-doc@FreeBSD.ORG Thu Dec 8 08:50:11 2011 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2EB11065678 for ; Thu, 8 Dec 2011 08:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 97BE48FC12 for ; Thu, 8 Dec 2011 08:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pB88oBiG010165 for ; Thu, 8 Dec 2011 08:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pB88oBmx010164; Thu, 8 Dec 2011 08:50:11 GMT (envelope-from gnats) Resent-Date: Thu, 8 Dec 2011 08:50:11 GMT Resent-Message-Id: <201112080850.pB88oBmx010164@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuri Pankov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 677E31065676 for ; Thu, 8 Dec 2011 08:49:38 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id EE18C8FC14 for ; Thu, 8 Dec 2011 08:49:37 +0000 (UTC) Received: by eaak10 with SMTP id k10so1495334eaa.17 for ; Thu, 08 Dec 2011 00:49:36 -0800 (PST) Received: by 10.213.101.6 with SMTP id a6mr67246ebo.135.1323334176491; Thu, 08 Dec 2011 00:49:36 -0800 (PST) Received: from procyon.xvoid.org ([213.132.76.142]) by mx.google.com with ESMTPS id q28sm15441540eea.6.2011.12.08.00.49.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Dec 2011 00:49:35 -0800 (PST) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.5/8.14.5) with ESMTP id pB88nXCG057617 for ; Thu, 8 Dec 2011 12:49:33 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.5/8.14.5/Submit) id pB88nXVY057616; Thu, 8 Dec 2011 12:49:33 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Message-Id: <201112080849.pB88nXVY057616@procyon.xvoid.org> Date: Thu, 8 Dec 2011 12:49:33 +0400 (MSK) From: Yuri Pankov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/163119: mktemp(3) is referring to (now) non-existent gcc option X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yuri Pankov List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 08:50:11 -0000 >Number: 163119 >Category: docs >Synopsis: mktemp(3) is referring to (now) non-existent gcc option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 08 08:50:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Yuri Pankov >Release: FreeBSD 9.0-RC2 amd64 >Organization: Nexenta Systems, Inc. >Environment: System: FreeBSD procyon.xvoid.org 9.0-RC2 FreeBSD 9.0-RC2 #0 r228164: Thu Dec 1 08:32:46 MSK 2011 yuri@procyon.xvoid.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: mktemp(3) is presumably referring to gcc's -fwritable-strings, which doesn't exist in recent releases (and it's a bad advice anyway). >How-To-Repeat: >Fix: --- mktemp.3.diff begins here --- Index: lib/libc/stdio/mktemp.3 =================================================================== --- lib/libc/stdio/mktemp.3 (revision 228346) +++ lib/libc/stdio/mktemp.3 (working copy) @@ -180,12 +180,6 @@ will result in a core dump due to .Fn mkstemp attempting to modify the string constant that was given. -If the program in question makes heavy use of that type -of function call, you do have the option of compiling the program -so that it will store string constants in a writable segment of memory. -See -.Xr gcc 1 -for more information. .Sh SEE ALSO .Xr chmod 2 , .Xr getpid 2 , --- mktemp.3.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: