From owner-freebsd-current@freebsd.org Thu Aug 16 16:26:12 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34F77106CDC6 for ; Thu, 16 Aug 2018 16:26:12 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C6C2F8B5E8 for ; Thu, 16 Aug 2018 16:26:11 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8B87D106CDC5; Thu, 16 Aug 2018 16:26:11 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 699E3106CDC4 for ; Thu, 16 Aug 2018 16:26:11 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C7248B5E7; Thu, 16 Aug 2018 16:26:11 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com [66.111.4.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: brd/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id E836D1ED3B; Thu, 16 Aug 2018 16:26:10 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id EB37821FF5; Thu, 16 Aug 2018 12:26:09 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute5.internal (MEProxy); Thu, 16 Aug 2018 12:26:09 -0400 X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 4C6BCBA4CF; Thu, 16 Aug 2018 12:26:09 -0400 (EDT) Message-Id: <1534436769.312158.1476422048.77F4DB62@webmail.messagingengine.com> From: Brad Davis To: Xin LI , current@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-7b72137a In-Reply-To: Date: Thu, 16 Aug 2018 10:26:09 -0600 References: <20180816111532.GY1190@albert.catwhisker.org> Subject: Re: /usr/bin/ld: error: undefined symbol: main [r337834 -> r337903] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2018 16:26:12 -0000 On Thu, Aug 16, 2018, at 10:13 AM, Xin LI wrote: > This was caused by r337852, but I didn't investigated further. > > The problem is that we have a source file called 'moduli.c' in > crypto/openssh/ while the build target was moduli, and bmake seen > 'moduli' in source tree as older than moduli.c, and decided to rebuild > it from source, while the two files are unrelated. Hi Xin, I don't see how that could be the case as I didn't move the file around, I just moved how it gets installed. I have done many many builds with this change in and haven't seen this problem.. Regards, Brad Davis > On Thu, Aug 16, 2018 at 4:19 AM David Wolfskill wrote: > > > > Running: > > > > FreeBSD g1-215.catwhisker.org 12.0-ALPHA1 FreeBSD 12.0-ALPHA1 #80 r337834M/337834:1200077: Wed Aug 15 04:34:45 PDT 2018 root@g1-215.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 > > > > after updating working copy to r337903, I'm seeing: > > > > ... > > >>> stage 4.3: building everything > > ... > > --- ifconfig_make --- > > Building /common/S4/obj/usr/src/amd64.amd64/rescue/rescue/usr/src/sbin/ifconfig/af_inet6.o > > --- all_subdir_secure --- > > --- moduli --- > > /usr/bin/ld: error: undefined symbol: main > > >>> referenced by crt1.c > > >>> /common/S4/obj/usr/src/amd64.amd64/tmp/usr/lib/crt1.o:(_start) > > /usr/bin/ld: error: undefined symbol: Fssh_error > > .... > > make[5]: stopped in /usr/src/secure/usr.sbin/sshd > > .ERROR_TARGET='moduli' > > .ERROR_META_FILE='/common/S4/obj/usr/src/amd64.amd64/secure/usr.sbin/sshd/moduli.meta' > > .MAKE.LEVEL='5' > > MAKEFILE='' > > .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose' > > _ERROR_CMD='cc -target x86_64-unknown-freebsd12.0 --sysroot=/common/S4/obj/usr/src/amd64.amd64/tmp -B/common/S4/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -I/usr/src/crypto/openssh -include ssh_namespace.h -DHAVE_LDNS=1 -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 -DUSE_BLACKLIST=1 -I/usr/src/contrib/blacklist/include -include krb5_config.h -DLIBWRAP=1 -std=gnu99 -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -L/common/S4/obj/usr/src/amd64.amd64/lib/libblacklist /usr/src/crypto/openssh/moduli.c -o moduli; ;' > > .CURDIR='/usr/src/secure/usr.sbin/sshd' > > .MAKE='make' > > .OBJDIR='/common/S4/obj/usr/src/amd64.amd64/secure/usr.sbin/sshd' > > .TARGETS='all' > > DESTDIR='/common/S4/obj/usr/src/amd64.amd64/tmp' > > .... > > > > (on both the laptop and the build machine). > > > > I have copied the .ERROR_META_FILE to > > > a typescript of the attempted build to > > . > > > > Additional information (previous day's verbose dmesg.bot, etc.) may > > be found at . > > > > Peace, > > david > > -- > > David H. Wolfskill david@catwhisker.org > > Trump is gaslighting us: https://www.bbc.com/news/world-us-canada-44959300 > > > > See http://www.catwhisker.org/~david/publickey.gpg for my public key.