[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE
- Reply: bugzilla-noreply_a_freebsd.org: "maintainer-feedback requested: [Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 296962] ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jul 2026 14:28:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296962
Bug ID: 296962
Summary: ports-mgmt/pkg 2.8.0_1 fails to link with WITH_PIE
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: pkg@FreeBSD.org
Reporter: lysfjord.daniel@smokepit.net
Flags: maintainer-feedback?(pkg@FreeBSD.org)
Assignee: pkg@FreeBSD.org
Attachment #273059 text/plain
mime type:
Created attachment 273059
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273059&action=edit
build log
FreeBSD version: 14.4-RELEASE-p7
After update to 2.8.0/2.8.0_1, pkg no longer links successfully when WITH_PIE
is set in make.conf.
Setting PIE_UNSAFE= yes in ports-mgmt/pkg/Makefile makes it link again.
Errors shown below:
--- pkg-static ---
cc -o pkg-static add.o alias.o annotate.o audit.o autoremove.o check.o
checksum.o clean.o config.o create.o delete.o event.o fetch.o globals.o info.o
install.o key.o lock.o main.o plugins.o query.o register.o repo.o
repositories.o rquery.o rwhich.o search.o set.o shell.o shlib.o ssh.o stats.o
triggers.o unregister.o update.o updating.o upgrade.o utils.o version.o which.o
-static -Wl,-znow -pie -Wl,-zrelro
-L/wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-2.8.0/libpkg -lpkg_flat -lelf
-ljail -lm -pthread -larchive -lutil -lssl -lcrypto -lmd -lbz2 -lz -llzma
-lprivatezstd
ld: error: relocation R_X86_64_32S cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(tasn_fre.o)
>>> referenced by tasn_fre.c:45 (/usr/src/crypto/openssl/crypto/asn1/tasn_fre.c:45)
>>> tasn_fre.o:(ossl_asn1_item_embed_free) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:56 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:56)
>>> dh_backend.o:(ossl_dh_params_fromdata) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(cpuid.o)
>>> referenced by cpuid.c:105 (/usr/src/crypto/openssl/crypto/cpuid.c:105)
>>> cpuid.o:(OPENSSL_cpuid_setup) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:73 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:73)
>>> dh_backend.o:(ossl_dh_key_fromdata) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:74 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:74)
>>> dh_backend.o:(ossl_dh_key_fromdata) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against symbol
'OPENSSL_ia32cap_P'; recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(x86_64cpuid.o)
>>> referenced by cpuid.c:112 (/usr/src/crypto/openssl/crypto/cpuid.c:112)
>>> cpuid.o:(OPENSSL_cpuid_setup) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:103 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:103)
>>> dh_backend.o:(ossl_dh_params_todata) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against symbol
'OPENSSL_ia32cap_P'; recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(x86_64cpuid.o)
>>> referenced by cpuid.c:146 (/usr/src/crypto/openssl/crypto/cpuid.c:146)
>>> cpuid.o:(OPENSSL_cpuid_setup) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:119 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:119)
>>> dh_backend.o:(ossl_dh_key_todata) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against symbol
'OPENSSL_ia32cap_P'; recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(x86_64cpuid.o)
>>> referenced by cpuid.c:125 (/usr/src/crypto/openssl/crypto/cpuid.c:125)
>>> cpuid.o:(OPENSSL_cpuid_setup) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:122 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:122)
>>> dh_backend.o:(ossl_dh_key_todata) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(tasn_fre.o)
>>> referenced by tasn_fre.c:90 (/usr/src/crypto/openssl/crypto/asn1/tasn_fre.c:90)
>>> tasn_fre.o:(ossl_asn1_item_embed_free) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:241 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:241)
>>> dh_backend.o:(ossl_dh_key_from_pkcs8) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:241 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:241)
>>> dh_backend.o:(ossl_dh_key_from_pkcs8) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(tasn_fre.o)
>>> referenced by tasn_fre.c:90 (/usr/src/crypto/openssl/crypto/asn1/tasn_fre.c:90)
>>> tasn_fre.o:(ossl_asn1_item_embed_free) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:228 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:228)
>>> dh_backend.o:(ossl_dh_key_from_pkcs8) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(tasn_fre.o)
>>> referenced by tasn_fre.c:75 (/usr/src/crypto/openssl/crypto/asn1/tasn_fre.c:75)
>>> tasn_fre.o:(ossl_asn1_item_embed_free) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(dh_backend.o)
>>> referenced by dh_backend.c:228 (/usr/src/crypto/openssl/crypto/dh/dh_backend.c:228)
>>> dh_backend.o:(ossl_dh_key_from_pkcs8) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32 cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(tasn_fre.o)
>>> referenced by tasn_fre.c:119 (/usr/src/crypto/openssl/crypto/asn1/tasn_fre.c:119)
>>> tasn_fre.o:(ossl_asn1_item_embed_free) in archive /usr/lib/libcrypto.a
ld: error: relocation R_X86_64_32S cannot be used against local symbol;
recompile with -fPIC
>>> defined in /usr/lib/libcrypto.a(tasn_fre.o)
>>> referenced by tasn_fre.c:187 (/usr/src/crypto/openssl/crypto/asn1/tasn_fre.c:187)
>>> tasn_fre.o:(ossl_asn1_primitive_free) in archive /usr/lib/libcrypto.a
--
You are receiving this mail because:
You are the assignee for the bug.