From nobody@FreeBSD.org  Sat Apr  2 05:38:19 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 611EF16A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  2 Apr 2005 05:38:19 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E653943D53
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  2 Apr 2005 05:38:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j325cIHq059135
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 2 Apr 2005 05:38:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j325cIc7059131;
	Sat, 2 Apr 2005 05:38:18 GMT
	(envelope-from nobody)
Message-Id: <200504020538.j325cIc7059131@www.freebsd.org>
Date: Sat, 2 Apr 2005 05:38:18 GMT
From: ari edelkind <edelkind-sendpr@episec.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] linux emulation/linprocfs: extern declaration of an otherwise static variable
X-Send-Pr-Version: www-2.3

>Number:         79437
>Category:       kern
>Synopsis:       [patch] linux emulation/linprocfs: extern declaration of an otherwise static variable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 02 05:40:06 GMT 2005
>Closed-Date:    Mon Aug 01 17:48:19 GMT 2005
>Last-Modified:  Mon Aug 01 17:48:19 GMT 2005
>Originator:     ari edelkind
>Release:        4.11-STABLE
>Organization:
>Environment:
(i'm not actually running this software version; i know the bug existed some time ago, and i just downloaded the latest snapshot (20050402) to verify that it does indeed still exist)
>Description:
My earlier post fully outlines the issue:
http://lists.freebsd.org/pipermail/freebsd-emulation/2003-August/000136.html
>How-To-Repeat:
In some configurations, it's a problem; in some it isn't.  Ironically, the configurations for which it isn't a problem are the buggy ones; the configurations for which it _is_ a problem handle the statically defined variable properly.  This is likely due to the use of different versions of gcc, though other factors may be involved.  I didn't research this thoroughly, since correcting the issue was simple enough.
>Fix:
--- kern/kern_fork.c.orig	2003-11-11 02:26:44.000000000 -0500
+++ kern/kern_fork.c	2005-04-02 00:30:16.000000000 -0500
@@ -144,7 +144,7 @@
 
 
 int	nprocs = 1;		/* process 0 */
-static int nextpid = 0;
+int	nextpid = 0;
 
 /*
  * Random component to nextpid generation.  We mix in a random factor to make
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Mon Aug 1 17:43:37 GMT 2005 
State-Changed-Why:  
No file in the current src/sys tree contains this symbol (nextpid), therefore 
I think this problem is obsolete. 

Thank you for submission anyway! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79437 
>Unformatted:
