From nobody Mon Jan 13 14:15:33 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YWvRr6HSSz5kHqh; Mon, 13 Jan 2025 14:15:36 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta004.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YWvRr3lTWz3wsT; Mon, 13 Jan 2025 14:15:36 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id XKd0tVeZayLQGXLE7tNZ0q; Mon, 13 Jan 2025 14:15:35 +0000 Received: from spqr.komquats.com ([70.66.136.217]) by cmsmtp with ESMTPSA id XLE6tpLdzl5eGXLE7tAmYW; Mon, 13 Jan 2025 14:15:35 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=EO6l0EZC c=1 sm=1 tr=0 ts=67852007 a=h7br+8Ma+Xn9xscxy5znUg==:117 a=h7br+8Ma+Xn9xscxy5znUg==:17 a=kj9zAlcOel0A:10 a=VdSt8ZQiCzkA:10 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=YxBL1-UpAAAA:8 a=oSZuXigcOqUxFPKv994A:9 a=CjuIK1q_8ugA:10 a=LK5xJRSDVpKd5WXXoEvA:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=jl7eaVuGvO9J0TNsuxHF:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id A545DA98; Mon, 13 Jan 2025 06:15:33 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 6F629489; Mon, 13 Jan 2025 06:15:33 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Larry Rosenman cc: Rainer Hurling , Cy Schubert , ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 0654456e0611 - main - sysutils/lsof: fix breakage after 3a0cdb2675e6 In-reply-to: References: <202501112057.50BKvD38009217@gitrepo.freebsd.org> <20250113045623.20AFF149@slippy.cwsent.com> Comments: In-reply-to Larry Rosenman message dated "Mon, 13 Jan 2025 01:33:10 -0600." List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Jan 2025 06:15:33 -0800 Message-Id: <20250113141533.6F629489@slippy.cwsent.com> X-CMAE-Envelope: MS4xfO8J/z7REGo3OIm5yQ+B/t9VgljlXfO2mX2d9bCchvOSNbRNtwtSHVElp6Qwgv7uO0on64B46S8t9U7rG6z1vjsEoStGOpH2t0H03i2kTseYdX4aRkub 0rSM4w++dDsnfwa693Y24Dkxn7jUPdvm04Drl7Zgr3aQ6MXc22psLlJ4uCC/VQg8dm++yWTFgFQnkgG+NGUtNEM06t3M7jZ7K3j6N3sFOntR7DrCHM48O28m dG1k/wx3/lPcV9hFRB9GLpr1nAce0lXCu1K+TIfzWPYNGaHDyb2kXuANeZGy0haVTgffzTh1kBBJrBjRg7kFX4gsBpKm2Vn0nzK+L3IN+8tRyQNZIWuGl8fX Z1cF6n0mE7flEa+Sjf/nBhgyeC0dIg== X-Rspamd-Queue-Id: 4YWvRr3lTWz3wsT X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] In message , Larry Rosenman write s: > On 01/13/2025 1:30 am, Rainer Hurling wrote: > > Am 13.01.25 um 05:56 schrieb Cy Schubert: > >> In message <202501112057.50BKvD38009217@gitrepo.freebsd.org>, Larry > >> Rosenman wr > >> ites: > >>> The branch main has been updated by ler: > >>> > >>> URL: > >>> https://cgit.FreeBSD.org/ports/commit/?id=0654456e061181e74fd0eb06f9b966 > >>> a4e759769d > >>> > >>> commit 0654456e061181e74fd0eb06f9b966a4e759769d > >>> Author: Larry Rosenman > >>> AuthorDate: 2025-01-11 20:51:00 +0000 > >>> Commit: Larry Rosenman > >>> CommitDate: 2025-01-11 20:51:00 +0000 > >>> > >>> sysutils/lsof: fix breakage after 3a0cdb2675e6 > >>> - put /usr/src first. > >>> --- > >>> sysutils/lsof/Makefile | 3 ++- > >>> 1 file changed, 2 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile > >>> index f65273c5c932..a10d7db4320a 100644 > >>> --- a/sysutils/lsof/Makefile > >>> +++ b/sysutils/lsof/Makefile > >>> @@ -3,6 +3,7 @@ > >>> PORTNAME= lsof > >>> DISTVERSION= 4.99.4 > >>> +PORTREVISION= 1 > >>> PORTEPOCH= 8 > >>> CATEGORIES= sysutils > >>> @@ -40,7 +41,7 @@ BOOKE_CFLAGS= -DBOOKE > >>> CONFIGURE_SCRIPT= Configure > >>> CONFIGURE_ARGS= -n freebsd > >>> CONFIGURE_ENV= FREEBSD_SYS="${SRC_BASE}/sys" \ > >>> - LSOF_CC="${CC}" > >>> + LSOF_CC="${CC} -idirafter /usr/src" > >> > >> This is wrong. If /usr/src is updated, i.e. git pull, but not > >> installed, > >> i.e. installworld, header files and libraries may be mismatched. > >> > >> Note: The follow-on 1ec769ae9a64 perpetuates this wrong-ness. > >> > > > > Now it builds fine on 14.x and 13.x, but continues to fail on > > 15.0-CURRENT: > > > > ===> Building for lsof-4.99.4_1,8 > > (cd lib; /usr/bin/make DEBUG="-O2" CFGF="-pipe -fstack-protector-strong > > -fno-strict-aliasing -DNEEDS_BOOL_TYPEDEF -DHASTASKS -DHAS_DUP2 > > -DHAS_CLOSEFROM -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT > > -DHAS_TMPFS -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 > > -DHAS_VM_MEMATTR_T -DNEEDS_DEVICE_T -DHAS_CDEV2PRIV -DHAS_SYS_SX_H > > -DHASMSDOSFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT > > -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DHAS_SB_CCC -DFREEBSDV=15000 > > -DHASFDESCFS=2 -DHASPROCFS -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS > > -DHASIPv6 -DHASUTMPX -DHAS_XTCPCB_TMAXSEG -DHAS_KF_SOCK_SENDQ > > -DHAS_KF_FILE_NLINK -DHAS_STRFTIME -DLSOF_VSTR=\"15.0-CURRENT\"") > > cc -pipe -fstack-protector-strong -fno-strict-aliasing > > -DNEEDS_BOOL_TYPEDEF -DHASTASKS -DHAS_DUP2 -DHAS_CLOSEFROM > > -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT -DHAS_TMPFS > > -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 > > -DHAS_VM_MEMATTR_T -DNEEDS_DEVICE_T -DHAS_CDEV2PRIV -DHAS_SYS_SX_H > > -DHASMSDOSFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT > > -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DHAS_SB_CCC -DFREEBSDV=15000 > > -DHASFDESCFS=2 -DHASPROCFS -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS > > -DHASIPv6 -DHASUTMPX -DHAS_XTCPCB_TMAXSEG -DHAS_KF_SOCK_SENDQ > > -DHAS_KF_FILE_NLINK -DHAS_STRFTIME -DLSOF_VSTR="15.0-CURRENT" > > -I/usr/src/sys -I.. -I../include -Idialects/freebsd -O2 -c ckkv.c -o > > ckkv.o > > In file included from ckkv.c:31: > > In file included from ./common.h:253: > > In file included from ../dlsof.h:171: > > In file included from /usr/src/sys/rpc/rpc.h:68: > > /usr/src/sys/rpc/svc.h:341:25: error: field has incomplete type 'struct > > sysctl_ctx_list' > > 341 | struct sysctl_ctx_list sp_sysctl; > > | ^ > > /usr/src/sys/rpc/svc.h:341:9: note: forward declaration of 'struct > > sysctl_ctx_list' > > 341 | struct sysctl_ctx_list sp_sysctl; > > | ^ > > /usr/src/sys/rpc/svc.h:568:12: warning: declaration of 'struct > > sysctl_oid_list' will not be visible outside of this function > > [-Wvisibility] > > 568 | struct sysctl_oid_list *sysctl_base); > > | ^ > > 1 warning and 1 error generated. > > *** Error code 1 > > > > > > This is in Poudiere with FreeBSD 15.0-CURRENT 1500030 amd64. > > > > > >>> BUILD_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash > >>> # GCC needs -lzfs -lzpool for reasons unknown. If someone can > >>> > >> > >> > We know. Need to figure out how to fix it :( > see pr's First, I will pull back my initial comment. svc.h and clnt.h are "sanitized" before they're installed into /usr/include/rpc. Secondly, the breakage is likely not due to 3a0cdb2675e6 but some other commit. See below, it is not the same as the posted error. -- dmnt.o --- In file included from dmnt.c:36: In file included from lib/common.h:253: In file included from ./dlsof.h:171: In file included from /usr/src/sys/rpc/rpc.h:68: /usr/src/sys/rpc/svc.h:341:25: error: field has incomplete type 'struct sysctl_ctx_list' 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- dnode.o --- In file included from dnode.c:36: In file included from lib/common.h:253: In file included from ./dlsof.h:171: In file included from /usr/src/sys/rpc/rpc.h:68: /usr/src/sys/rpc/svc.h:341:25: error: field has incomplete type 'struct sysctl_ctx_list' 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- lib/liblsof.a --- In file included from ckkv.c:31: In file included from ./common.h:253: In file included from ../dlsof.h:171: In file included from /usr/src/sys/rpc/rpc.h:68: --- dproc.o --- In file included from dproc.c:36: In file included from lib/common.h:253: In file included from ./dlsof.h:171: In file included from /usr/src/sys/rpc/rpc.h:68: /usr/src/sys/rpc/svc.h:341:25: error: field has incomplete type 'struct sysctl_ctx_list' 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- lib/liblsof.a --- /usr/src/sys/rpc/svc.h:341:25: error: field has incomplete type 'struct sysctl_ctx_list' --- dnode.o --- /usr/src/sys/rpc/svc.h:341:9: note: forward declaration of 'struct sysctl_ctx_list' --- dproc.o --- /usr/src/sys/rpc/svc.h:341:9: note: forward declaration of 'struct sysctl_ctx_list' 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- dnode.o --- 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- dmnt.o --- /usr/src/sys/rpc/svc.h:341:9: note: forward declaration of 'struct sysctl_ctx_list' --- lib/liblsof.a --- 341 | struct sysctl_ctx_list sp_sysctl; --- dmnt.o --- 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- lib/liblsof.a --- | ^ /usr/src/sys/rpc/svc.h:341:9: note: forward declaration of 'struct sysctl_ctx_list' 341 | struct sysctl_ctx_list sp_sysctl; | ^ --- dnode.o --- /usr/src/sys/rpc/svc.h:568:12: warning: declaration of 'struct sysctl_oid_list' will not be visible outside of this function [-Wvisibility] 568 | struct sysctl_oid_list *sysctl_base); | ^ --- lib/liblsof.a --- /usr/src/sys/rpc/svc.h:568:12: warning: declaration of 'struct sysctl_oid_list' will not be visible outside of this function [-Wvisibility] 568 | struct sysctl_oid_list *sysctl_base); | ^ --- dmnt.o --- /usr/src/sys/rpc/svc.h:568:12: warning: declaration of 'struct sysctl_oid_list' will not be visible outside of this function [-Wvisibility] 568 | struct sysctl_oid_list *sysctl_base); | ^ --- dproc.o --- /usr/src/sys/rpc/svc.h:568:12: warning: declaration of 'struct sysctl_oid_list' will not be visible outside of this function [-Wvisibility] 568 | struct sysctl_oid_list *sysctl_base); | ^ --- dmnt.o --- 1 warning and 1 error generated. *** [dmnt.o] Error code 1 make: stopped making "all" in /wrkdirs/usr/ports/sysutils/lsof/work/lsof-4.9 9.4 --- lib/liblsof.a --- *** [lib/liblsof.a] Error code 6 make: stopped making "all" in /wrkdirs/usr/ports/sysutils/lsof/work/lsof-4.9 9.4 --- dproc.o --- 1 warning and 1 error generated. --- dnode.o --- 1 warning and 1 error generated. --- dproc.o --- *** [dproc.o] Error code 1 make: stopped making "all" in /wrkdirs/usr/ports/sysutils/lsof/work/lsof-4.9 9.4 --- dnode.o --- *** [dnode.o] Error code 1 make: stopped making "all" in /wrkdirs/usr/ports/sysutils/lsof/work/lsof-4.9 9.4 make: 4 errors make: stopped making "all" in /wrkdirs/usr/ports/sysutils/lsof/work/lsof-4.9 9.4 ===> 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 making "build" in /usr/ports/sysutils/lsof =>> Cleaning up wrkdir ===> Cleaning for lsof-4.99.4_1,8 My first patch fixes the above. The second patch to address this email thread is being worked on. The second problem, the one in this email thread, is due to 3a0cdb2675e6. > -- > Larry Rosenman http://people.freebsd.org/~ler > Phone: +1 214-642-9640 E-Mail: ler@FreeBSD.org > US Mail: 13425 Ranch Road 620 N, Apt 718, Austin, TX 78717-1010 -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0