Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/lsof build failure under recent -current



Hi,

Since 9.99.18 I am not able to build lsof; I get:
...

gcc -O2  -DNETBSDV=7000000 -DN_UNIXV=/dev/ksyms -DHASKVMGETPROC2
-DHASNFSPROTO -DHASIPv6 -DHASFDESCFS=1 -DHASFDLINK -DHASNULLFS
-DHASPROCFS -DHASPROCFS_PFSROOT -DHASBUFQ_H -DHAS9660FS=1
-DHASMSDOSFS=1 -DHASKERNFS -DHASKERNFS_KFS_KT -DHASI_FFS1 -DHASEXT2FS
-DHASI_E2FS_PTR -DHASLFS -DHASPTYFS -DHASTMPFS -DHASNFSVATTRP
-DHAS_ADVLOCK_ARGS -DHAS_LWP_H -DHAS_SYS_PIPEH -DHASSTATVFS -DUVM
-I/usr/pkgsrc/sysutils/lsof/work/lsof_4.91/lsof_4.91_src/dialects/n+obsd/include
-DHAS_UVM_INCL -DHAS_STRFTIME -DLSOF_VSTR="9.99.24"    -D_KMEMUSER
-D__NAMECACHE_PRIVATE -c dvch.c
In file included from /usr/include/sys/ptrace.h:63,
                 from /usr/include/miscfs/procfs/procfs.h:75,
                 from ../dlsof.h:369,
                 from ../lsof.h:221,
                 from dvch.c:43:
/usr/include/amd64/ptrace.h:104:10: fatal error: sys/module_hook.h: No
such file or directory
 #include <sys/module_hook.h>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
*** Error code 1
....

ptrace.h includes module_hook.h only if _KERNEL is defined.

I am aware some don't like this utility, security and all; I myself
rarely use it, so am not bothered at all; perhaps it is an easy fix,
as the configuration process does not recognize 9.99.xx versions (it
assumes netbsd 7). BTW I can force the installation of lsof from
9.99.18 onto 9.99.24, it then apparently works, but the output is
partial garbage, which is understandable, I guess.

Chavdar

-- 
----


Home | Main Index | Thread Index | Old Index