[PC-BSD Pbi-dev] PBI build failure for lsof

Fred Schlechter freds at vailsys.com
Tue Feb 26 10:53:46 PST 2013


I'm trying to create a PBI for the lsof utility and it fails when 
building the PBI.

This is on PC-BSD 9.1 using EasyPBI.

/usr/ports/sysutils/lsof

Below is a snippet from the build log and it says that it can't read 
/usr/src/sys/kern/kern_lockf.c.

The kern_lockf.c file exists, so any ideas on why it's complaining?

locate kern_lockf.c
/usr/src/sys/kern/kern_lockf.c

ls -l /usr/src/sys/kern/kern_lockf.c
-rw-r--r--  1 root  wheel  65842 Nov 14  2011 kern_lockf.c

snippet from the build log:

------------------------------------------------
Stop in /usr/ports/sysutils/lsof.

BUILDERROR1!!

===> Configuring for lsof-4.87,8

Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c

FATAL ERROR: can't read /usr/src/sys/kern/kern_lockf.c

FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)

===> Script "Configure" failed unexpectedly.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/pbi-dev/attachments/20130226/e5d6318e/attachment.html>
-------------- next part --------------
Qt conversation started.
Qt conversation finished.
Extracting chroot environment...
Copying /home/freds/EasyPBI/Modules/lsof -> /usr/pbi/lsof-amd64.chroot/pbimodule
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Checking port: /usr/ports/sysutils/lsof
Compiling port: /usr/ports/sysutils/lsof
===> No user-specified options configured for lsof-4.87,8
===>  Cleaning for lsof-4.87,8
=> lsof_4.87.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/lsof_4.87.tar.bz2
fetch: http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/lsof_4.87.tar.bz2: Not Found
=> Attempting to fetch ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.87.tar.bz2
lsof_4.87.tar.bz2                             
         755 kB 3371 kBps
===>  Extracting for lsof-4.87,8
=> SHA256 Checksum OK for lsof_4.87.tar.bz2.

This configuration step (the Inventory script) takes inventory of
the lsof distribution.  The script runs for a minute or two while
it checks that all the subdirectories, information files, scripts,
header files and source files that should be present really are.

It's not absolutely necessary that you take inventory, but it's a
good idea to do it right after the lsof distribution has been
unpacked.  Once the inventory has been taken, this script creates
the file ./.ck00MAN as a signal that the inventory step has been
done.

You can call the Inventory script directly at any time to take
inventory.  You can inhibit the inventory step permanently by
creating the file ./.neverInv, and you can tell the Configure script
to skip the inventory and customization steps with the -n option.

Do you want to take inventory (y|n) [y]? 
Conducting an inventory of the lsof distribution; this will take a while.

Examining /usr/wrkdirprefix/usr/ports/sysutils/lsof/work/lsof_4.87/lsof_4.87_src:
 OK
Examining .:
 OK
Examining ./dialects:
 OK
Examining ./dialects/aix:
 OK
Examining ./dialects/aix/aix5:
 OK
Examining ./dialects/aix/aix5/j2:
 OK
Examining ./dialects/darwin:
 OK
Examining ./dialects/darwin/kmem:
 OK
Examining ./dialects/darwin/libproc:
 OK
Examining ./dialects/du:
 OK
Examining ./dialects/freebsd:
 OK
Examining ./dialects/freebsd/include:
 OK
Examining ./dialects/freebsd/include/procfs:
 OK
Examining ./dialects/hpux:
 OK
Examining ./dialects/hpux/kmem:
 OK
Examining ./dialects/hpux/kmem/hpux11:
 OK
Examining ./dialects/hpux/pstat:
 OK
Examining ./dialects/linux:
 OK
Examining ./dialects/n+obsd:
 OK
Examining ./dialects/n+os:
 OK
Examining ./dialects/osr:
 OK
Examining ./dialects/osr/include:
 OK
Examining ./dialects/osr/include/sys:
 OK
Examining ./dialects/sun:
 OK
Examining ./dialects/uw:
 OK
Examining ./dialects/uw/uw7:
 OK
Examining ./dialects/uw/uw7/fs:
 OK
Examining ./dialects/uw/uw7/fs/nsc_cfs:
 OK
Examining ./dialects/uw/uw7/fs/procfs:
 OK
Examining ./dialects/uw/uw7/sys:
 OK
Examining ./dialects/uw/uw7/sys/fs:
 OK
Examining ./dialects/uw/uw7/vm:
 OK
Examining ./lib:
 OK
Examining ./scripts:
 OK
Examining ./tests:
 OK

This lsof distribution seems to be complete.

===>  Patching for lsof-4.87,8
===>  Configuring for lsof-4.87,8
Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: can't read /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)
===>  Script "Configure" failed unexpectedly.
Please report the problem to ler at lerctr.org [maintainer] and attach the
"/usr/wrkdirprefix/usr/ports/sysutils/lsof/work/lsof_4.87/lsof_4.87_src/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/sbin/pkg_info -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/sysutils/lsof.
BUILDERROR1!!
===>  Configuring for lsof-4.87,8
Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: can't read /usr/src/sys/kern/kern_lockf.c
FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)
===>  Script "Configure" failed unexpectedly.
Please report the problem to ler at lerctr.org [maintainer] and attach the
"/usr/wrkdirprefix/usr/ports/sysutils/lsof/work/lsof_4.87/lsof_4.87_src/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/sbin/pkg_info -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/sysutils/lsof.
===>  Cleaning for lsof-4.87,8
pbi_makeport_chroot: make install of sysutils/lsof failed!
Cleaning /usr/pbi/lsof-amd64.chroot


More information about the Pbi-dev mailing list