From owner-freebsd-current@freebsd.org Thu Aug 16 16:14:04 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 6A2F7106C742 for ; Thu, 16 Aug 2018 16:14:04 +0000 (UTC) (envelope-from delphij@gmail.com) 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 055FD8ACD4 for ; Thu, 16 Aug 2018 16:14:04 +0000 (UTC) (envelope-from delphij@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id BE4FB106C741; Thu, 16 Aug 2018 16:14:03 +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 9C6D6106C73E for ; Thu, 16 Aug 2018 16:14:03 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 342A58ACD2; Thu, 16 Aug 2018 16:14:03 +0000 (UTC) (envelope-from delphij@gmail.com) Received: by mail-it0-x235.google.com with SMTP id e14-v6so7027629itf.1; Thu, 16 Aug 2018 09:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=NrHj8tlIRKuI2Yn0dROZkl05sdTVAiz7DNMTtBFJso4=; b=qtP2On/G5pgcD+hB64cKELHUpjDDPPRXyak61MKGqU0KYxW9hQkmjGXgDjcndaXZgK Cb+PYTdTGmcTXs9SERq2w32YlETeSORTA2cLSazaTxzcJCDmExHx4NMbjgB17lWxM625 9A4X/Vjz/3C/WkWknqP6oKSQmrxZe588Lgm/Aws30knjDk5x85i/m3TR3GkmTaTpdSQi EOii7AY57qTVM3xj/UxRtwj7KswlkDUDMfB3suOt0j6aiUsMzX5LvsMvngRN5EheN/jH 2Iw5H5a+PvFl4cYQTAvYienBPoUcgCkmtsDbNLLiKlF4zzUF2+7vqkCYkjmrK2Lq+Dwm KY5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=NrHj8tlIRKuI2Yn0dROZkl05sdTVAiz7DNMTtBFJso4=; b=spz74qOeWKVDnL04tYA2albxuX4bN/OGi2cyrr3Ze/3LQOaDZJiy4RvPxwR5VEvxt8 pHSSA6uR0uatkqiEOfH2kc45vXk/uYo37SD+COIYq2X2ZcSKXavHURYMwn9a1ohqqm+0 bEZPCvM9ssB2vz27FHiYN56+09nc5g2kZZg5I4bSamZhrL9XMC9cPAMj3+AV9YqzAem7 1PEMlijFP8jsxO34w3ubZrynM9/OsbZhnGUJCPnYiNRan7w7QlZ9KAmV3BvFqcdRIdIl gtxGNXz7q+IZlpSiHtCwia/PvOgLEcd6yPSsDUqn4ZBwtk1haKg5bPcenys5zLUFq+AW /dQg== X-Gm-Message-State: AOUpUlHLfANrms83vVHusWo2wepG6rmo+sim/5UkYWuIfZM9+6nNBTVs P+CN9tBWhuluaQX9oDfW6p60Z1xvWyKF0TyGPs90gINl X-Google-Smtp-Source: AA+uWPwmC3p+iql321T5Nj6L335Z3T9VI98x/YzaAj5twaf6N4hWU2hhoqX9GqBm0FCDhxHYwPFdKGkbe5c0A78/OC4= X-Received: by 2002:a02:8c75:: with SMTP id j50-v6mr27813529jal.76.1534436042052; Thu, 16 Aug 2018 09:14:02 -0700 (PDT) MIME-Version: 1.0 References: <20180816111532.GY1190@albert.catwhisker.org> In-Reply-To: <20180816111532.GY1190@albert.catwhisker.org> From: Xin LI Date: Thu, 16 Aug 2018 09:13:50 -0700 Message-ID: Subject: Re: /usr/bin/ld: error: undefined symbol: main [r337834 -> r337903] To: current@freebsd.org, Brad Davis Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:14:04 -0000 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. Cheers, On Thu, Aug 16, 2018 at 4:19 AM David Wolfskill wrot= e: > > Running: > > FreeBSD g1-215.catwhisker.org 12.0-ALPHA1 FreeBSD 12.0-ALPHA1 #80 r33783= 4M/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/if= config/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=3D'moduli' > .ERROR_META_FILE=3D'/common/S4/obj/usr/src/amd64.amd64/secure/usr.sbin/ss= hd/moduli.meta' > .MAKE.LEVEL=3D'5' > MAKEFILE=3D'' > .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' > _ERROR_CMD=3D'cc -target x86_64-unknown-freebsd12.0 --sysroot=3D/common/S= 4/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_L= DNS=3D1 -DUSE_BSM_AUDIT=3D1 -DHAVE_GETAUDIT_ADDR=3D1 -DUSE_BLACKLIST=3D1 -I= /usr/src/contrib/blacklist/include -include krb5_config.h -DLIBWRAP=3D1 -st= d=3Dgnu99 -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-s= tring-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-un= used-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-convers= ion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wn= o-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-argume= nts -L/common/S4/obj/usr/src/amd64.amd64/lib/libblacklist /usr/src/crypt= o/openssh/moduli.c -o moduli; ;' > .CURDIR=3D'/usr/src/secure/usr.sbin/sshd' > .MAKE=3D'make' > .OBJDIR=3D'/common/S4/obj/usr/src/amd64.amd64/secure/usr.sbin/sshd' > .TARGETS=3D'all' > DESTDIR=3D'/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-4495930= 0 > > See http://www.catwhisker.org/~david/publickey.gpg for my public key.