From nobody Fri Mar 20 11:12:56 2026 X-Original-To: bugs@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 4fcg081kLcz6VpPG for ; Fri, 20 Mar 2026 11:12:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fcg080nghz3Zy8 for ; Fri, 20 Mar 2026 11:12:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774005176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g1Uv9EbwJp9qpOU5Cb1gneS38AHK84Z8+cRet7Q7sbI=; b=BQiRx3RMrVJRVDJon53QcO95st8+6e4of2M7+IERffBXZNG7iti1CxdB6TQImsBNYHD9YP NN1UqW4k+UnwR9hj5Xadfc7NZQQ1KWud9znEwiR0RQNFu0zcbw/2lQwxosZdQ8JJQpD0Rc 5IdhfPaB3ljtVdWnzYSPqS7axJICvT9YVsYhK1rrzOLCSRWUP3vA+12lpmUyzgQN37QP9c sry3paqtc7BnzMDn0iPMEcfso0F2BpXb3HMnKpi2icNdnRHLsZamp4STpUfikXMBnA+dnm M4lWnq+KBMm03jh5vw3kuTreVCxwAa5ZXi1W7qPWq30BcveDkIDCj1ebXaA3sA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774005176; a=rsa-sha256; cv=none; b=JE8UNwkI9RET1AQjckJznR1f7umOL/e+D1QeMXwa/CWUbP2jV6c/zgjPo/lUK9iYxcngnP 8cg8JmvRNxK7WS0bHhyLzyKZ7FfEAkIaqh5MH+Kojgmr+p4NioJhSdR/XED4To05Y0zyhJ Ty8ir5GvZ0Gt2S33k9NepPVcef0a+3MoMhyBx3T6/TfPLvhDQ6g2pzYCIT2WHmJcJ8tulg WoqmFR3y1kGJfw5ZfaSuHX7Dh+tVeR4qLVoI9mWAGj135KEvKcDUDlaczuJ4aJLE9zV3P3 3prI4CndUeceTK1YAAgjjxOOPcKr0303PU1sBgSmMCpLLc6gL9YE0DlR+DSUSA== 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=1774005176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g1Uv9EbwJp9qpOU5Cb1gneS38AHK84Z8+cRet7Q7sbI=; b=KItjt9p7YVqWj5PPWCtQUllH9Qj/aQWba01yuXzS0h9i3CRjMaj+NVDHmLLEKAkK49fpiE f+B6rQDHTAL8ykFq/A7ovfoY15Bcioa897SMjG6yocHcH44O7mVnFvL8BS90E8NnQM/Kou opY5ahH5jrzaVg2bK9vdu+aqrrJ1N28upXEcfAxc4dCxDmWtEasUEneHbpHj79AJRbmm03 YxS/C/Eoc+EMT3gS90FO5qc5EF3XW4TiTvZha3swCYVSintuirDZ/O+2fpLPMdz+dH4LIy N08JlYKzW5rU2BywWTd3f5onAotJvFa0lxJkRSNKXyuZkaAtinoxpzRsQejqfg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4fcg080CqGz7gG for ; Fri, 20 Mar 2026 11:12:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 62KBCtY6059038 for ; Fri, 20 Mar 2026 11:12:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 62KBCtuU059037 for bugs@FreeBSD.org; Fri, 20 Mar 2026 11:12:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293934] CFLAGS+=-fPIC needed after commit 14b9955e57cc28b61e785165b9effcbe620edb46 Date: Fri, 20 Mar 2026 11:12:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293934 Bug ID: 293934 Summary: CFLAGS+=3D-fPIC needed after commit 14b9955e57cc28b61e785165b9effcbe620edb46 Product: Base System Version: 16.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: Trond.Endrestol@ximalas.info Created attachment 268948 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D268948&action= =3Dedit Patch for secure/lib/libcrypto/modules/Makefile.inc adding the much needed CFLAGS+=3D-fPIC After commit 14b9955e57cc28b61e785165b9effcbe620edb46 and without CFLAGS+=3D-fPIC these error messages ensues: Building shared library legacy.so Building /usr/obj/usr/src/amd64.amd64/lib/libsmutil/cf.pieo Building /usr/obj/usr/src/amd64.amd64/lib/libtelnet/genget.pieo Building /usr/obj/usr/src/amd64.amd64/lib/libipt/pt_section_file.pico Building /usr/obj/usr/src/amd64.amd64/lib/libstats/libstats.so.0 Building shared library libstats.so.0 ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(OSSL_provider_init) ld: error: relocation R_X86_64_PC32 cannot be used against symbol '__stack_chk_guard'; recompile with -fPIC >>> defined in /usr/obj/usr/src/amd64.amd64/tmp/lib/libc.so.7 >>> referenced by legacyprov.c >>> legacyprov.pico:(ERR_set_error) ld: error: relocation R_X86_64_PC32 cannot be used against symbol '__stack_chk_guard'; recompile with -fPIC >>> defined in /usr/obj/usr/src/amd64.amd64/tmp/lib/libc.so.7 >>> referenced by legacyprov.c >>> legacyprov.pico:(ERR_set_error) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_gettable_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_get_params) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in ciphercommon.pico >>> referenced by ciphercommon.c >>> ciphercommon.pico:(ossl_cipher_generic_gettable_params) ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_query) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in ciphercommon.pico >>> referenced by ciphercommon.c >>> ciphercommon.pico:(ossl_cipher_generic_get_params) ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_dispatch_table) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in ciphercommon.pico >>> referenced by ciphercommon.c >>> ciphercommon.pico:(ossl_cipher_generic_get_params) ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_dispatch_table) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in ciphercommon.pico >>> referenced by ciphercommon.c >>> ciphercommon.pico:(ossl_cipher_generic_get_params) ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC >>> defined in legacyprov.pico >>> referenced by legacyprov.c >>> legacyprov.pico:(legacy_dispatch_table) ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC >>> defined in ciphercommon.pico >>> referenced by ciphercommon.c >>> ciphercommon.pico:(ossl_cipher_generic_get_params) ld: error: too many errors emitted, stopping now (use --error-limit=3D0 to = see all errors) cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [legacy.so] Error code 1 make[7]: stopped making "all" in /usr/src/secure/lib/libcrypto/modules/lega= cy --=20 You are receiving this mail because: You are the assignee for the bug.=