Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 1998 20:35:01 +0300 (MSK)
From:      Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/5737: A problem with devel/mprof
Message-ID:  <199802131735.UAA22404@yandex.hq.cti.ru>

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

>Number:         5737
>Category:       ports
>Synopsis:       A problem with devel/mprof
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 13 09:40:02 PST 1998
>Last-Modified:
>Originator:     Dmitrij Tejblum
>Organization:
CompTek
>Release:        FreeBSD 2.2.5-STABLE i386
>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

>Audit-Trail:
>Unformatted:

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



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