From nobody Sun Dec 31 17:27:26 2023 X-Original-To: toolchain@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 4T35f86WFCz5698k for ; Sun, 31 Dec 2023 17:27:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T35f860Syz3DdK; Sun, 31 Dec 2023 17:27:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704043648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZDKCABuMjpkVYlxug3cT19iVJMIwi+6UTmDOuMyDOrU=; b=VU0MQIxowPLjy4DMUvRTGMpSkDL9SeimK8f0RvOsJGyfLKFJynlMU/9ihAIQ5YT+sB44As Lf6DpUn9ot+gxCBndKeAT76pgis18Yn3zhogDpjWo+D0Z932UhBLyN1pUcyw05DKtb1uyt 0TyHrIBEikvMuYxKDxkQylIIq2NZyXRSITTcWEVdODLYtjktPDubML6Z5HRwzXQbPqsnCm E2hUU44/FaWI4koPHVbMsjX8xuntCEbnT8wp4x0pd9nNfqp1x5wkJ8eF18bZx4BP9Ws6an 0i0+D9YNa6aoFH4+IP05uHPmAWk1LOTD3rv6EmpbBfO9l1vqU3VDnbOVNTLwtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704043648; a=rsa-sha256; cv=none; b=d64eKgqJfYJJqA7gDuXmAe7npMv0h+Hq0OrnnLw9HJhQI69rHyR2mdaW7YYCoJMvNqS7Dr 4J9rVU/v0YHEZwy+5UTlkkrl2JAzRfN91tAIu3OOrxKbyjl5wMqnoyOkYB3yPgmDwLW6ka buZnfAR0f7Y5luqQS3kp29RARnt/jl9dreY9j1vHTmrkNVU/u3IHJ1MJDexiksWaAmosSe r6nSz+WiLUdzvppyI7m7bJ8Pf5i17zontOJ07+kPHprl11Z8Vbbuuup4gdrS08VYBy1ySY kXuboawUQ92H54UHaKMb4Gl3628jA2znnAAaxh49pFW9496vnPIw6p61SdGXCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704043648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZDKCABuMjpkVYlxug3cT19iVJMIwi+6UTmDOuMyDOrU=; b=ke2Xs9WwL4q8sh9hrhJNk2Njici0VIQGw0WO034GMtM+coVVwnBQDjZ5R/LejYZU1E2XH9 H3Ix2saWxGaxgTO2+7z1Ps9S1q+28dOilujUyg/cT6K1BjplwS22b29AtT4lVkeFqAwx82 1irtel5d34zxwnkZG6lm6Lnu4IQggy8+guKp6uO5SOygcBTrslUePXfOfBPMtUez6T7bq6 94SCk3TWsZg79Wtn34rTR19cpTz1LrWWp/XHkiVoCc2Ypvt6Csukxz3Dei2bkWVM0ZzW7k qyrVOL1tNmUTN8kNM/3SB2rWDBvudOxxzej7jwWTGNjD5N93O6WTkFlvzAp6/w== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4T35f84MrmznXB; Sun, 31 Dec 2023 17:27:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4629D3A3F4; Sun, 31 Dec 2023 18:27:27 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: ld: error: undefined symbol: __libc_start1 From: Dimitry Andric In-Reply-To: Date: Sun, 31 Dec 2023 18:27:26 +0100 Cc: toolchain@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <88692822-B8AB-4445-9D55-1676B0ECC5F4@FreeBSD.org> References: To: Mario Marietto X-Mailer: Apple Mail (2.3731.700.6) On 31 Dec 2023, at 18:15, Mario Marietto wrote: >=20 > I'm not able to install sudo on my FreeBSD 14.0-RELEASE-p3 amd64 >=20 > Code: >=20 > marietto:/usr/ports/security/sudo # make >=20 > =3D=3D=3D> License sudo accepted by the user > =3D=3D=3D> sudo-1.9.15p4 depends on file: /usr/local/sbin/pkg - = found > =3D=3D=3D> Fetching all distfiles required by sudo-1.9.15p4 for = building > =3D=3D=3D> Extracting for sudo-1.9.15p4 > =3D> SHA256 Checksum OK for sudo-1.9.15p4.tar.gz. > =3D=3D=3D> Patching for sudo-1.9.15p4 > =3D=3D=3D> Applying FreeBSD patches for sudo-1.9.15p4 from > /usr/ports/security/sudo/files > =3D=3D=3D> sudo-1.9.15p4 depends on package: pkgconf>=3D1.3.0_1 - = found > =3D=3D=3D> sudo-1.9.15p4 depends on package: gettext-runtime>=3D0.22_1= - found > =3D=3D=3D> sudo-1.9.15p4 depends on executable: msgfmt - found > =3D=3D=3D> sudo-1.9.15p4 depends on file: = /usr/local/lib/libcrypto.so.12 - found > =3D=3D=3D> sudo-1.9.15p4 depends on shared library: libintl.so - = found > (/usr/local/lib/libintl.so) > =3D=3D=3D> Configuring for sudo-1.9.15p4 > configure: loading site script /usr/ports/Templates/config.site > checking for gcc... cc > checking whether the C compiler works... no > configure: error: in '/usr/ports/security/sudo/work/sudo-1.9.15p4': > configure: error: C compiler cannot create executables > See 'config.log' for more details > =3D=3D=3D> Script "configure" failed unexpectedly. >=20 > Please report the problem to garga@FreeBSD.org [maintainer] and attach > the "/usr/ports/security/sudo/work/sudo-1.9.15p4/config.log" including > the output > of the failure of your make command. Also, it might be a good idea to > provide an overview of all packages installed on your system (e.g. a > /usr/local/sbin/pkg-static info -g -Ea). >=20 > *** Error code 1 >=20 > Stop. > make[1]: stopped in /usr/ports/security/sudo > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/security/sudo >=20 >=20 > More informations are located here : >=20 > /usr/local/sbin/pkg-static info -g -Ea =3D > https://pastebin.ubuntu.com/p/3fCY3hFRCG/ >=20 > /usr/ports/security/sudo/work/sudo-1.9.15p4/config.log =3D > https://pastebin.ubuntu.com/p/PK2QxNHwkk/ >=20 > On the log you will see this error : >=20 > configure:4253: checking whether the C compiler works > configure:4275: cc -O2 -pipe -I/usr/local/include > -fstack-protector-strong -fno-strict-aliasing -lgcc -L/usr/local/lib > -lintl -Wl,-rpath,/usr/local/lib -fstack-protector-strong conftest.c >> &5 > ld: error: undefined symbol: __libc_start1 >>>> referenced by crt1_s.S:83 (/usr/src/lib/csu/amd64/crt1_s.S:83) >>>> /usr/lib/crt1.o_start) > cc: error: linker command failed with exit code 1 (use -v to see = invocation) >=20 >=20 > that makes me suspect some misconfiguration on the gcc / cc / clang > compiler. I expect that sudo won't be installed telling that it has > been already installed from packages,but the error is different. How > can I fix it ? Try running the linker command with --verbose, by passing -Wl,--verbose = on the compiler command line. It looks like it is picking up a bad libc = somehow. Maybe some old copy that was never cleaned out? -Dimitry