Skip to content

Conversation

@GeorgeSapkin
Copy link
Member

@GeorgeSapkin GeorgeSapkin commented Jan 27, 2026

📦 Package Details

Maintainer: nobody, cc: @hnyman

Description:

Samba fails compiling bundled libraries in buildbot, but not locally or in GitHub CI:

/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: third_party/heimdal/lib/krb5/krcache.c.55.o: in function `update_change_time':
krcache.c:(.text.update_change_time+0x34): undefined reference to `__atomic_exchange_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: krcache.c:(.text.update_change_time+0x58): undefined reference to `__atomic_store_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: third_party/heimdal/lib/krb5/krcache.c.55.o: in function `alloc_cache':
krcache.c:(.text.alloc_cache+0xea): undefined reference to `__atomic_store_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: third_party/heimdal/lib/krb5/krcache.c.55.o: in function `krcc_lastchange':
krcache.c:(.text.krcc_lastchange+0x30): undefined reference to `__atomic_load_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: third_party/heimdal/lib/krb5/krcache.c.55.o: in function `initialize_internal.isra.0':
krcache.c:(.text.initialize_internal.isra.0+0x40): undefined reference to `__atomic_load_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: krcache.c:(.text.initialize_internal.isra.0+0x4c): undefined reference to `__atomic_store_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: krcache.c:(.text.initialize_internal.isra.0+0x286): undefined reference to `__atomic_load_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: krcache.c:(.text.initialize_internal.isra.0+0x296): undefined reference to `__atomic_store_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: third_party/heimdal/lib/krb5/krcache.c.55.o: in function `krcc_get_principal':
krcache.c:(.text.krcc_get_principal+0x5e): undefined reference to `__atomic_load_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: krcache.c:(.text.krcc_get_principal+0x6a): undefined reference to `__atomic_store_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: third_party/heimdal/lib/krb5/krcache.c.55.o: in function `krcc_remove_cred':
krcache.c:(.text.krcc_remove_cred+0x5a): undefined reference to `__atomic_load_8'
/builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_24kc_gcc-14.3.0_musl/bin/../lib/gcc/mips-openwrt-linux-musl/14.3.0/../../../../mips-openwrt-linux-musl/bin/ld.bfd: krcache.c:(.text.krcc_remove_cred+0x68): undefined reference to `__atomic_store_8'

Fix compiling bundled Kerberos library on several 32-bit architectures by linking with libatomic.

Disable kernel keyring being picked up from a dirty buildbot environment.

Remove libpthread dependency since it's integrated into libc.

Lexicographically sort configuration arguments and dependencies.


✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

Lexicographically sort configuration arguments and dependencies.

Signed-off-by: George Sapkin <[email protected]>
Remove libpthread dependency since it's integrated into libc.

Signed-off-by: George Sapkin <[email protected]>
Fix compiling bundled Kerberos library on several 32-bit architectures
by linking with libatomic.

Disable kernel keyring being picked up from a dirty buildbot
environment.

Signed-off-by: George Sapkin <[email protected]>
@GeorgeSapkin GeorgeSapkin force-pushed the samba4-fix-compilation branch from bf6bf5f to 63e3ce7 Compare January 27, 2026 06:28
@GeorgeSapkin GeorgeSapkin merged commit 34f1c5e into openwrt:master Jan 28, 2026
12 checks passed
@GeorgeSapkin GeorgeSapkin deleted the samba4-fix-compilation branch January 28, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant