ports/99668: sysutils/lsof cannot build on FreeBSD/pc98 7.0-current
NAKAJI Hiroyuki
nakaji at jp.freebsd.org
Sat Jul 1 04:10:21 UTC 2006
>Number: 99668
>Category: ports
>Synopsis: sysutils/lsof cannot build on FreeBSD/pc98 7.0-current
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 01 04:10:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: NAKAJI Hiroyuki
>Release: FreeBSD 7.0-CURRENT pc98
>Organization:
>Environment:
System: FreeBSD ra333.heimat.gr.jp 7.0-CURRENT FreeBSD 7.0-CURRENT #30: Sat Jun 24 17:32:12 JST 2006 root at ra333.heimat.gr.jp:/usr/obj/usr/src/sys/RA333 pc98
>Description:
Recent change on FreeBSD/pc98 caused the build error of
sysutils/lsof.
The Configure script in lsof just runs "grep"
to check if sys/types.h or machine/_types.h has the definition
of cpumask_t. The machine/_types.h on FreeBSD/pc98 now has
only one line:
#include <i386/_types.h>
which does not pass the check of Configure, though
FreeBSD/pc98 has cpumask_t.
>How-To-Repeat:
Prepare FreeBSD/pc98 7.0-CURRENT and execute following commands.
cd /usr/ports/sysutils/lsof
make
>Fix:
To make files/patch-Configure was successful.
--- Configure.orig Sat Jul 1 12:46:31 2006
+++ Configure Sat Jul 1 12:49:06 2006
@@ -1577,7 +1577,7 @@
grep -q cpumask_t ${LSOF_INCLUDE}/sys/types.h
if test $? -eq 0 # {
then
- grep -q __cpumask_t ${LSOF_INCLUDE}/machine/_types.h
+ $LSOF_CC -E ${LSOF_INCLUDE}/machine/_types.h 2>/dev/null | grep -q __cpumask_t
if test $? -eq 0 # {
then
LSOF_CFGF="$LSOF_CFGF -DHASCPUMASK_T"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list