Bug 249394

Summary: sysutils/lsof : Fails to build on FreeBSD 12.2-BETA1 r365618 GENERIC powerpc 32 bit: /usr/lib/libzpool.so: undefined reference to `get_system_hostid'
Product: Ports & Packages Reporter: canardo <canardo909>
Component: Individual Port(s)Assignee: Larry Rosenman <ler>
Status: New ---    
Severity: Affects Only Me CC: cy, powerpc
Priority: --- Flags: bugzilla: maintainer-feedback? (ler)
Version: Latest   
Hardware: powerpc   
OS: Any   

Description canardo 2020-09-17 14:44:10 UTC
Problem found when building sysutils/lsof on FreeBSD 12.2-BETA1 r365618 GENERIC powerpc 32 bit, running on Apple Powerbook 17".



/usr/ports/sysutils/lsof # make -DBATCH install clean
===>  Building for lsof-4.93.2_12,8
Constructing version.h
(cd lib; /usr/bin/make DEBUG="-O2" CFGF="-pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -DAIM -DNEEDS_BOOL_TYPEDEF -DHASTASKS -DHAS_PAUSE_SBT -DHAS_DUP2 -DHAS_CLOSEFROM -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT -DHAS_TMPFS -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_IDEV -DHAS_VM_MEMATTR_T -DNEEDS_DEVICE_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHASFUSEFS -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DHAS_SB_CCC -DHAS_FDESCENTTBL -DFREEBSDV=12000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR=\"12.2-BETA1\"")
cc   -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -DAIM -DNEEDS_BOOL_TYPEDEF -DHASTASKS -DHAS_PAUSE_SBT -DHAS_DUP2 -DHAS_CLOSEFROM -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT -DHAS_TMPFS -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_IDEV -DHAS_VM_MEMATTR_T -DNEEDS_DEVICE_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHASFUSEFS -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DHAS_SB_CCC -DHAS_FDESCENTTBL -DFREEBSDV=12000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR=\"12.2-BETA1\" -I/usr/src/sys -O2 -c usage.c -o usage.o
cc -o lsof  -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -DAIM -DNEEDS_BOOL_TYPEDEF -DHASTASKS -DHAS_PAUSE_SBT -DHAS_DUP2 -DHAS_CLOSEFROM -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT -DHAS_TMPFS -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_IDEV -DHAS_VM_MEMATTR_T -DNEEDS_DEVICE_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHASFUSEFS -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DHAS_SB_CCC -DHAS_FDESCENTTBL -DFREEBSDV=12000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR=\"12.2-BETA1\" -I/usr/src/sys -O2 dmnt.o dnode.o dnode1.o dnode2.o dproc.o dsock.o dstore.o  arg.o main.o misc.o node.o print.o proc.o store.o usage.o  util.o -L./lib -llsof -lzpool -lkvm
/usr/lib/libzpool.so: undefined reference to `get_system_hostid'
*** [lsof] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.93.2
1 error

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.93.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/lsof




NB : in version FreeBSD 12.1-RELEASE-p1 r354992 GENERIC, sysutils/lsof compile without error, in version lsof-4.93.2_10,8
Comment 1 canardo 2021-05-02 15:00:45 UTC
sysutils/lsof build successfully on FreeBSD 13.0

# uname -a
FreeBSD g41713 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:40:01 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc/sys/GENERIC  powerpc

root@g41713:~ # pkg info lsof
lsof-4.94.0,8
Name           : lsof
Version        : 4.94.0,8
Installed on   : Sun May  2 16:32:01 2021 CEST
Origin         : sysutils/lsof
Architecture   : FreeBSD:13:powerpc

Should this bug be closed ?