Compile problem lsof on current
Ted Lindgreen
ted at sanne.nlnetlabs.nl
Tue Nov 25 02:32:13 PST 2003
Hi,
Recompiling lsof in current is needed because of the change
in the statfs structure.
However, with 5.2-BETA compiling lsof produces:
server# make
===> Building for lsof-4.69
...
In file included from dnode1.c:58:
cd9660_node.h:66: error: syntax error before '->' token
*** Error code 1
Stop in /usr/ports/sysutils/lsof/work/lsof_4.69/lsof_4.69_src.
This is caused by a define:
/usr/src/sys/ufs/ufs/inode.h:#define i_devvp i_ump->um_devvp
In dialects/freebsd/dlsof.h is undefined when FREEBSDV>=510, but
FREEBSDV appears to be 500. After checking more carefully, there
is a warning at configure time:
===> Configuring for lsof-4.69^M
!!!WARNING!!! Unsupported FreeBSD version: 5.2-BETA
!!!WARNING!!! Configuring for FreeBSD 5.0^M
An easy workaround is to pretend 5.2 is 5.1 and not 5.0
in Configure (diff appended).
-- ted
===================================================================
RCS file: Configure,v
retrieving revision 1.1
diff -u -r1.1 Configure
--- Configure 2003/11/25 10:16:13 1.1
+++ Configure 2003/11/25 10:25:53
@@ -14,7 +14,7 @@
# shell script, named $LSOF_MK, that places its source modules in this
# directory.
#
-# $Id: Configure,v 1.1 2003/11/25 10:16:13 ted Exp $
+# $Id: Configure,v 1.5 2003/11/25 10:25:52 ted Exp $
#LSOF_CFLAGS_OVERRIDE=1 may be introduced through the environment to cause
# the library Makefile's CFLAGS definition to override any in the
@@ -1331,9 +1331,9 @@
LSOF_VERS=510
;;
5*)
- LSOF_VERS=500
+ LSOF_VERS=510
echo "!!!WARNING!!! Unsupported FreeBSD version: $LSOF_VSTR"
- echo "!!!WARNING!!! Configuring for FreeBSD 5.0"
+ echo "!!!WARNING!!! Configuring for FreeBSD 5.1"
;;
*)
echo Unknown FreeBSD release: `uname -r`
More information about the freebsd-ports
mailing list