From tejblum@arc.hq.cti.ru  Fri Feb 13 09:37:01 1998
Received: from yandex.hq.cti.ru (yandex.hq.cti.ru [194.67.85.53])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24284
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 13 Feb 1998 09:36:14 -0800 (PST)
          (envelope-from tejblum@arc.hq.cti.ru)
Received: (from tejblum@localhost)
	by yandex.hq.cti.ru (8.8.8/8.8.7) id UAA22404;
	Fri, 13 Feb 1998 20:35:01 +0300 (MSK)
	(envelope-from tejblum)
Message-Id: <199802131735.UAA22404@yandex.hq.cti.ru>
Date: Fri, 13 Feb 1998 20:35:01 +0300 (MSK)
From: Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
Reply-To: tejblum@arc.hq.cti.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: A problem with devel/mprof
X-Send-Pr-Version: 3.2

>Number:         5737
>Category:       ports
>Synopsis:       A problem with devel/mprof
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 13 09:40:02 PST 1998
>Closed-Date:    Sat Feb 14 16:48:24 PST 1998
>Last-Modified:  Sat Feb 14 16:51:08 PST 1998
>Originator:     Dmitrij Tejblum
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
CompTek
>Environment:

FreeBSD 2.2

>Description:

One source file in devel/mprof port use ftruncate(2), but doesn't 
#include <unistd.h>. So it use ftruncate incorrectly.

>How-To-Repeat:


>Fix:
	
Apply following patch to patches/patch-01:

--- patch-01	Mon Jan 30 00:35:35 1995
+++ patch-01	Fri Feb 13 20:17:34 1998
@@ -1,6 +1,16 @@
 *** ../m/mprof_mon.c	Tue Apr 20 13:36:09 1993
 --- mprof_mon.c	Fri Sep 17 17:09:01 1993
 ***************
+*** 5,10 ****
+--- 5,11 ----
+   */
+  
+  #include	<stdio.h>
++ #include	<unistd.h>
+  #include	<sys/file.h>
+  #include	"mprof.h"
+  
+***************
 *** 411,417 ****
   #ifdef sun
       on_exit(mprof_exit, NULL);
@@ -9,7 +19,7 @@
       atexit(mprof_exit);
   #endif    
       
---- 411,417 ----
+--- 412,418 ----
   #ifdef sun
       on_exit(mprof_exit, NULL);
   #endif

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hsu 
State-Changed-When: Sat Feb 14 16:48:24 PST 1998 
State-Changed-Why:  
Patch applied. 
>Unformatted:
