Bug 248394 - sysutils/lsof: can't read /usr/src/sys/kern/kern_lockf.c
Summary: sysutils/lsof: can't read /usr/src/sys/kern/kern_lockf.c
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Larry Rosenman
Depends on:
Reported: 2020-07-31 20:08 UTC by Tom Foxwell
Modified: 2020-11-25 18:09 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (ler)


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Foxwell 2020-07-31 20:08:07 UTC
Compiling lsof-4.93.2_12,8 from ports results in the following error being thrown:

FATAL ERROR: can't read /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)

Unfortunately no log file is created at /usr/ports/sysutils/lsof/work/lsof-4.93.2/config.log

Output of /usr/local/sbin/pkg-static info -g -Ea
ImageMagick7-nox11-    Image processing tools
amazon-ssm-agent-2.3.1205.0    Amazon Simple Systems Manager Agent
apachetop-0.18.4_1             Apache realtime log stats
apr-              Apache Portability Library
autoconf-2.69_3                Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
automake-1.16.2                GNU Standards-compliant Makefile generator
avahi-app-0.7_3                Service discovery on a local network
awscli-1.18.91                 Universal Command Line Interface for Amazon Web Services
binutils-2.33.1_2,1            GNU binary tools
bison-3.6.4,1                  Parser generator from FSF, (mostly) compatible with Yacc
brotli-1.0.7_2,1               Generic-purpose lossless compression algorithm
ca_root_nss-3.54               Root certificate bundle from the Mozilla Project
cairo-1.16.0,2                 Vector graphics library with cross-device output support
cmake-3.17.3_1                 Cross-platform Makefile generator
cups-2.3.3_1                   Common UNIX Printing System
curl-7.71.1                    Command line tool and library for transferring data with URLs
db5-5.3.28_7                   Oracle Berkeley DB, revision 5.3
dbus-1.12.20                   Message bus system for inter-application communication
dbus-glib-0.110                GLib bindings for the D-BUS messaging system
dialog4ports-0.1.6             Console Interface to configure ports
dual-dhclient-1.0_1            Spawns dhclients for a dual-stack network
ec2-scripts-1.10               Startup scripts for FreeBSD/EC2 environment
expat-2.2.8                    XML 1.0 parser written in C
fftw3-3.3.8_6                  Fast C routines to compute the Discrete Fourier Transform
firstboot-freebsd-update-1.2   Update the system using freebsd-update when it first boots
firstboot-pkgs-1.6             Install packages when the system first boots
fontconfig-2.13.92_2,1         XML-based font configuration API for X Windows
freetype2-2.10.2               Free and portable TrueType font rendering engine
gdbm-1.18.1_1                  GNU database manager
gettext-runtime-0.20.2         GNU gettext runtime libraries and programs
gettext-tools-0.20.2           GNU gettext development and translation tools
ghostscript9-agpl-base-9.52_6  PostScript and PDF interpreter
giflib-5.2.1                   Tools and library routines for working with GIF images
glib-2.56.3_9,1                Some useful routines of C programming (current stable version)
gmake-4.3_2                    GNU version of 'make' utility
gmp-6.2.0                      Free library for arbitrary precision arithmetic
gnome_subr-1.0                 Common startup and shutdown subroutines used by GNOME scripts
gnutls-3.6.14                  GNU Transport Layer Security library
go-1.14.5,1                    Go programming language
gobject-introspection-1.56.1_1,1 Generate interface introspection data for GObject libraries
gsfonts-8.11_8                 Standard Fonts for Ghostscript
help2man-1.47.16               Automatically generating simple manual pages from program output
htop-2.2.0_1                   Better top(1) - interactive process viewer
indexinfo-0.3.1                Utility to regenerate the GNU info page index
isc-dhcp44-client-4.4.2        The ISC Dynamic Host Configuration Protocol client
jbig2dec-0.18                  Decoder implementation of the JBIG2 image compression format
jbigkit-2.1_1                  Lossless compression for bi-level images such as scanned pages, faxes
jpeg-turbo-2.0.4               SIMD-accelerated JPEG codec which replaces libjpeg
jsoncpp-1.9.3                  JSON reader and writer library for C++
lcms2-2.11_1                   Accurate, fast, and small-footprint color management engine
libICE-1.0.10,1                Inter Client Exchange library for X11
libSM-1.2.3,1                  Session Management library for X11
libX11-1.6.9_1,1               X11 library
libXau-1.0.9                   Authentication Protocol library for X11
libXdmcp-1.1.3                 X Display Manager Control Protocol library
libXext-1.3.4,1                X11 Extension library
libXrender-0.9.10_2            X Render extension library
libarchive-3.4.3,1             Library to create and read several streaming archive formats
libargon2-20190702             Memory hard password hashing program and library
libdaemon-0.14_1               Lightweight C library that eases the writing of UNIX daemons
libedit-3.1.20191231,1         Command line editor library
libffi-3.3                     Foreign Function Interface
libgd-2.3.0,1                  Graphics library for fast creation of images
libiconv-1.16                  Character set conversion library
libidn-1.35                    Internationalized Domain Names command line tool
libidn2-2.3.0_1                Implementation of IDNA2008 internationalized domain names
liblqr-1-0.4.2                 Easy to use C/C++ seam carving library
libltdl-2.4.6                  System independent dlopen wrapper
liblz4-1.9.2_1,1               LZ4 compression library, lossless and very fast
libnghttp2-1.41.0              HTTP/2.0 C Library
libpaper-              Library providing routines for paper size management
libpthread-stubs-0.4           This library provides weak aliases for pthread functions
libraw-0.19.5                  Library for manipulating raw images
libsodium-1.0.18               Library to build higher-level cryptographic tools
libtasn1-4.16.0                ASN.1 structure parser library
libtextstyle-0.20.2            Text styling library
libtool-2.4.6_1                Generic shared library support script
libunistring-0.9.10_1          Unicode string library
libunwind-20200331             Generic stack unwinding library
libuv-1.38.1                   Multi-platform support library with a focus on asynchronous I/O
libwmf-nox11-        Tools and library for converting Microsoft WMF (windows metafile)
libxcb-1.13.1                  The X protocol C-language Binding (XCB) library
libxml2-2.9.10                 XML parser library for GNOME
libzip-1.5.2                   C library for reading, creating, and modifying ZIP archives
logrotate-3.13.0_1             Daemon to rotate, compress, remove, and mail system log files
lsof-4.93.2_11,8               Lists information about open files (similar to fstat(1))
lua52-5.2.4                    Small, compilable scripting language providing easy access to C code
lzo2-2.10_1                    Portable speedy, lossless data compression library
m4-1.4.18_1,1                  GNU M4
meson-0.54.3                   High performance build system
mpfr-4.0.2                     Library for multiple-precision floating-point computations
nano-4.9.2                     Nano's ANOther editor, an enhanced free Pico clone
nettle-3.6                     Low-level cryptographic library
nginx-1.18.0_15,2              Robust and small WWW server
ninja-1.10.0,2                 Small build system closest in spirit to Make
oniguruma-6.9.5.r1_1           Regular expressions library compatible with POSIX/GNU/Perl
openjpeg-2.3.1                 Open-source JPEG 2000 codec
p11-kit-0.23.20_1              Library for loading and enumerating of PKCS#11 modules
p5-Locale-gettext-1.07         Message handling functions
p5-Locale-libintl-1.31         Internationalization library for Perl
p5-Text-Unidecode-1.30         Text::Unidecode -- US-ASCII transliterations of Unicode text
p5-Unicode-EastAsianWidth-12.0 East Asian Width properties
pcre-8.44                      Perl Compatible Regular Expressions library
pcre2-10.35                    Perl Compatible Regular Expressions library, version 2
perl5-5.30.3                   Practical Extraction and Report Language
php74-7.4.8                    PHP Scripting Language
php74-bcmath-7.4.8             The bcmath shared extension for php
php74-ctype-7.4.8              The ctype shared extension for php
php74-curl-7.4.8               The curl shared extension for php
php74-dom-7.4.8                The dom shared extension for php
php74-exif-7.4.8               The exif shared extension for php
php74-fileinfo-7.4.8           The fileinfo shared extension for php
php74-filter-7.4.8             The filter shared extension for php
php74-gd-7.4.8                 The gd shared extension for php
php74-iconv-7.4.8              The iconv shared extension for php
php74-json-7.4.8               The json shared extension for php
php74-mbstring-7.4.8           The mbstring shared extension for php
php74-mysqli-7.4.8             The mysqli shared extension for php
php74-openssl-7.4.8            The openssl shared extension for php
php74-pecl-imagick-im7-3.4.4   PHP wrapper to the ImageMagick/GraphicsMagick library version 7
php74-pecl-libsodium-2.0.22    PHP wrapper for the Sodium cryptographic library
php74-posix-7.4.8              The posix shared extension for php
php74-simplexml-7.4.8          The simplexml shared extension for php
php74-soap-7.4.8               The soap shared extension for php
php74-tokenizer-7.4.8          The tokenizer shared extension for php
php74-xml-7.4.8                The xml shared extension for php
php74-xmlreader-7.4.8          The xmlreader shared extension for php
php74-xmlrpc-7.4.8             The xmlrpc shared extension for php
php74-xmlwriter-7.4.8          The xmlwriter shared extension for php
php74-zip-7.4.8                The zip shared extension for php
php74-zlib-7.4.8               The zlib shared extension for php
pixman-0.40.0                  Low-level pixel manipulation library
pkg-1.14.6                     Package manager
pkgconf-1.7.3,1                Utility to help to configure compiler and linker flags
png-1.6.37                     Library for manipulating PNG images
poppler-data-0.4.9_4           Poppler encoding data
popt-1.18_1                    Getopt(3) like library with a number of enhancements, from Redhat
portmaster-3.19_25             Manage your ports without external databases or languages
py27-pip-19.1.1                Tool for installing and managing Python packages
py27-setuptools-44.0.0         Python packages installer
py27-sqlite3-2.7.18_7          Standard Python binding to the SQLite3 library (Python 2.7)
py37-asn1crypto-1.3.0          ASN.1 library with a focus on performance and a pythonic API
py37-botocore-1.17.14          Low-level, core functionality of boto 3
py37-certifi-2020.6.20         Mozilla SSL certificates
py37-cffi-1.14.0_1             Foreign Function Interface for Python calling C code
py37-colorama-0.4.3            Cross-platform API to print colored terminal text from Python apps
py37-cryptography-2.6.1        Cryptographic recipes and primitives for Python developers
py37-dateutil-2.8.1            Extensions to the standard Python datetime module
py37-docutils-0.15.2           Python Documentation Utilities
py37-idna-2.8                  Internationalized Domain Names in Applications (IDNA)
py37-jmespath-0.10.0           JSON Matching Expressions
py37-openssl-19.0.0            Python interface to the OpenSSL library
py37-pyasn1-0.4.7              ASN.1 toolkit for Python
py37-pycparser-2.20            C parser in Python
py37-pysocks-1.7.1             Python SOCKS module
py37-rsa-3.4.2_1               Pure-Python RSA implementation
py37-s3transfer-0.3.3          Amazon S3 Transfer Manager for Python
py37-setuptools-44.0.0         Python packages installer
py37-six-1.14.0                Python 2 and 3 compatibility utilities
py37-speedtest-cli-2.1.2       Command line interface for testing internet bandwidth
py37-urllib3-1.25.7,1          HTTP library with thread-safe connection pooling, file post, and more
py37-yaml-5.3.1                Python YAML parser
python27-2.7.18_1              Interpreted object-oriented programming language
python37-3.7.8_1               Interpreted object-oriented programming language
readline-8.0.4                 Library for editing command lines as they are typed
rhash-1.3.9                    Utility and library for computing and checking of file hashes
sqlite3-3.32.3,1               SQL database engine in a C library
swig-4.0.2                     Generate wrappers for calling C/C++ code from other languages
telegraf-1.14.4                Time-series data collection
texinfo-6.7_3,1                Typeset documentation system with multiple format output
tiff-4.1.0                     Tools and library routines for working with TIFF images
tpm-emulator-0.7.4_2           Trusted Platform Module (TPM) emulator
trousers-0.3.14_2              Open-source TCG Software Stack
webp-1.1.0                     Google WebP image format conversion tool
wget-1.20.3                    Retrieve files from the Net via HTTP(S) and FTP
xorg-macros-1.19.2             X.Org development aclocal macros
xorgproto-2020.1               X Window System unified protocol definitions
Comment 1 Larry Rosenman freebsd_committer 2020-08-01 02:45:43 UTC
do you have the sources checked out in /usr/src?

They are *REQUIRED* to compile lsof.