Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2012 11:48:17 GMT
From:      Alexey Markov <redrat@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167225: misc/mc port fails to build on FreeBSD 6.4 because of missed sys/param.h
Message-ID:  <201204231148.q3NBmHPg075378@red.freebsd.org>
Resent-Message-ID: <201204231150.q3NBoA3O092028@freefall.freebsd.org>

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

>Number:         167225
>Category:       ports
>Synopsis:       misc/mc port fails to build on FreeBSD 6.4 because of missed sys/param.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 23 11:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Markov
>Release:        FreeBSD 6.4-RELEASE-p11
>Organization:
JSC Complitex
>Environment:
FreeBSD port.jail 6.4-RELEASE-p11 FreeBSD 6.4-RELEASE-p11 #0: Mon Jan  3 14:13:2
9 MSK 2011 redrat@ns.complitex.ru:/arc/obj/arc/src/sys/NS i386
>Description:
Midnight Commander from ports fails to build on FreeBSD 6.4 because of missed sys/param.h in the src/filemanager/mountlist.c file. Attached patch fixes this problem.

I know 6.x branch reached EOL, but I filed this PR just in case if somebody got the same problem on still working 6.x system.
>How-To-Repeat:
portsnap fetch update
cd /usr/ports/misc/mc
make
>Fix:
Apply the attached quick-n-dirty patch.

Patch attached with submission follows:

--- src/filemanager/mountlist.c.orig	2012-03-19 20:26:29.000000000 +0400
+++ src/filemanager/mountlist.c		2012-04-23 15:35:32.000000000 +0400
@@ -104,6 +104,7 @@
 #endif
 
 #ifdef MOUNTED_GETMNTINFO       /* 4.4BSD.  */
+#include <sys/param.h>
 #include <sys/mount.h>
 #endif
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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