Your message dated Fri, 27 Feb 2026 10:33:35 +0000
with message-id <[email protected]>
and subject line Bug#1128849: fixed in samba 2:4.23.6+dfsg-1
has caused the Debian Bug report #1128849,
regarding samba: FTBFS with glibc 2.43 due to openat2 redefinition
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1128849: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128849
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: samba
Version: 2:4.23.5+dfsg-1
Severity: important
Tags: ftbfs
Justification: fails to build from source
User: [email protected]
Usertags: glibc-2.43

Dear maintainer(s),

samba fails to build from source with glibc 2.43, currently in
experimental. From the build log:

| 09:34:07 runner ['aarch64-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', 
'-DHAVE_CONFIG_H=1', '-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/build/reproducible-path/samba-4.23.5+dfsg=.', 
'-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', 
'-Werror=format-security', '-mbranch-protection=standard', 
'-ffile-prefix-map=../../=', '-MMD', '-D_GNU_SOURCE=1', 
'-D_XOPEN_SOURCE_EXTENDED=1', '-D_SAMBA_HOSTCC_', '-fPIC', 
'-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', 
'-DCTDB_HELPER_BINDIR="/usr/libexec/ctdb"', '-DLOGDIR="/var/log/ctdb"', 
'-DCTDB_DATADIR="/usr/share/ctdb"', '-DCTDB_ETCDIR="/etc/ctdb"', 
'-DCTDB_VARDIR="/var/lib/ctdb"', '-DCTDB_RUNDIR="/run/ctdb"', 
'-fstack-protector-strong', '-fstack-clash-protection', '-Wno-error=cast-qual', 
'-Wno-error=discarded-qualifiers', '-Wno-error=old-style-definition', 
'-Wno-error=unused-result', '-Wno-error=unused-variable', 
'-Wno-strict-overflow', '-Wno-error=strict-prototypes', 
'-Wno-error=implicit-fallthrough', '-DSTATIC_compile_et_MODULES=NULL', 
'-DSTATIC_compile_et_MODULES_PROTO=extern void 
__compile_et_dummy_module_proto(void)', '-Ithird_party/heimdal_build', 
'-I../../third_party/heimdal_build', '-Ithird_party/heimdal/lib/com_err', 
'-I../../third_party/heimdal/lib/com_err', '-Iinclude/public', 
'-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', 
'-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', 
'-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', 
'-I../../lib/replace', '-Ictdb/include', '-I../../ctdb/include', '-Ictdb', 
'-I../../ctdb', '-I.', '-I../..', '-Ithird_party/heimdal/lib/roken', 
'-I../../third_party/heimdal/lib/roken', '-Ithird_party/heimdal/include', 
'-I../../third_party/heimdal/include', '-Ithird_party/heimdal_build/include', 
'-I../../third_party/heimdal_build/include', 
'third_party/heimdal_build/compile_et.objlist.empty.c', '-c', 
'-o/build/reproducible-path/samba-4.23.5+dfsg/bin/default/third_party/heimdal_build/compile_et.objlist.empty.c.126.o',
 '-Wdate-time', '-D_FORTIFY_SOURCE=2']
| In file included from ../../lib/replace/replace.c:28:
| ../../lib/replace/system/filesys.h:278:20: error: conflicting types for 
‘openat2’; have ‘long int(int,  const char *, struct open_how *, size_t)’ {aka 
‘long int(int,  const char *, struct open_how *, long unsigned int)’}
|   278 | static inline long openat2(int dirfd, const char *pathname,
|       |                    ^~~~~~~
| In file included from /usr/include/aarch64-linux-gnu/bits/fcntl-linux.h:492,
|                  from /usr/include/aarch64-linux-gnu/bits/fcntl.h:55,
|                  from /usr/include/fcntl.h:35,
|                  from /usr/include/aarch64-linux-gnu/sys/file.h:24,
|                  from ../../lib/replace/system/filesys.h:86:
| /usr/include/aarch64-linux-gnu/bits/fcntl-linux-fortify.h:36:1: note: 
previous definition of ‘openat2’ with type ‘int(int,  const char *, const 
struct open_how *, long unsigned int)’
|    36 | openat2 (int __dfd, const char *__filename, const struct open_how 
*__how,
|       | ^~~~~~~
| 
| In file included from ../../third_party/heimdal_build/replace.c:26:
| ../../lib/replace/system/filesys.h:278:20: error: conflicting types for 
‘openat2’; have ‘long int(int,  const char *, struct open_how *, size_t)’ {aka 
‘long int(int,  const char *, struct open_how *, long unsigned int)’}
|   278 | static inline long openat2(int dirfd, const char *pathname,
|       |                    ^~~~~~~
| In file included from /usr/include/aarch64-linux-gnu/bits/fcntl-linux.h:492,
|                  from /usr/include/aarch64-linux-gnu/bits/fcntl.h:55,
|                  from /usr/include/fcntl.h:35,
|                  from 
../../third_party/heimdal_build/../heimdal/lib/roken/roken.h.in:329,
|                  from ../../third_party/heimdal_build/roken.h:160,
|                  from ../../third_party/heimdal_build/replace.c:25:
| /usr/include/aarch64-linux-gnu/bits/fcntl-linux-fortify.h:36:1: note: 
previous definition of ‘openat2’ with type ‘int(int,  const char *, const 
struct open_how *, long unsigned int)’
|    36 | openat2 (int __dfd, const char *__filename, const struct open_how 
*__how,
|       | ^~~~~~~
| 
| third_party/heimdal/lib/com_err/parse.tab.c: In function ‘name2number’:
| third_party/heimdal/lib/com_err/parse.tab.c:1408:19: warning: initialization 
discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|  1408 |         char *q = strchr(x, *p);
|       |                   ^~~~~~
| third_party/heimdal/lib/com_err/parse.tab.c: In function ‘yyparse’:
| third_party/heimdal/lib/com_err/parse.tab.c:1157:21: warning: ignoring return 
value of ‘asprintf’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  1157 |                     asprintf (&prefix, "%s_", (yyvsp[0].string));
|       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| third_party/heimdal/lib/com_err/parse.tab.c:1183:25: warning: ignoring return 
value of ‘asprintf’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  1183 |                         asprintf (&ec->name, "%s%s", prefix, 
(yyvsp[-2].string));
|       |                         
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 
| Waf: Leaving directory 
`/build/reproducible-path/samba-4.23.5+dfsg/bin/default'
| Build failed
|  -> task in 'LIBREPLACE_HOSTCC' failed with exit status 1: 
|       {task 267355802919872: c replace.c -> replace.c.1.o}
| ['aarch64-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-g', 
'-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/build/reproducible-path/samba-4.23.5+dfsg=.', 
'-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', 
'-Werror=format-security', '-mbranch-protection=standard', 
'-ffile-prefix-map=../../=', '-MMD', '-D_GNU_SOURCE=1', 
'-D_XOPEN_SOURCE_EXTENDED=1', '-D_SAMBA_HOSTCC_', '-fPIC', 
'-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', 
'-DCTDB_HELPER_BINDIR="/usr/libexec/ctdb"', '-DLOGDIR="/var/log/ctdb"', 
'-DCTDB_DATADIR="/usr/share/ctdb"', '-DCTDB_ETCDIR="/etc/ctdb"', 
'-DCTDB_VARDIR="/var/lib/ctdb"', '-DCTDB_RUNDIR="/run/ctdb"', 
'-fstack-protector-strong', '-fstack-clash-protection', 
'-DSTATIC_LIBREPLACE_HOSTCC_MODULES=NULL', 
'-DSTATIC_LIBREPLACE_HOSTCC_MODULES_PROTO=extern void 
__LIBREPLACE_HOSTCC_dummy_module_proto(void)', '-Ilib/replace', 
'-I../../lib/replace', '-Iinclude/public', '-I../../include/public', 
'-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', 
'-I../../source4/lib', '-Isource4/include', '-I../../source4/include', 
'-Iinclude', '-I../../include', '-Ictdb/include', '-I../../ctdb/include', 
'-Ictdb', '-I../../ctdb', '-I.', '-I../..', '../../lib/replace/replace.c', 
'-c', 
'-o/build/reproducible-path/samba-4.23.5+dfsg/bin/default/lib/replace/replace.c.1.o',
 '-Wdate-time', '-D_FORTIFY_SOURCE=2']
|  -> task in 'ROKEN_HOSTCC' failed with exit status 1: 
|       {task 267355802917856: c replace.c -> replace.c.4.o}
| ['aarch64-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-g', 
'-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/build/reproducible-path/samba-4.23.5+dfsg=.', 
'-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', 
'-Werror=format-security', '-mbranch-protection=standard', 
'-ffile-prefix-map=../../=', '-MMD', '-D_GNU_SOURCE=1', 
'-D_XOPEN_SOURCE_EXTENDED=1', '-D_SAMBA_HOSTCC_', '-fPIC', 
'-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', 
'-DCTDB_HELPER_BINDIR="/usr/libexec/ctdb"', '-DLOGDIR="/var/log/ctdb"', 
'-DCTDB_DATADIR="/usr/share/ctdb"', '-DCTDB_ETCDIR="/etc/ctdb"', 
'-DCTDB_VARDIR="/var/lib/ctdb"', '-DCTDB_RUNDIR="/run/ctdb"', 
'-fstack-protector-strong', '-fstack-clash-protection', '-Wno-error=cast-qual', 
'-Wno-error=discarded-qualifiers', '-Wno-error=old-style-definition', 
'-Wno-error=unused-result', '-Wno-error=unused-variable', 
'-DSTATIC_ROKEN_HOSTCC_MODULES=NULL', 
'-DSTATIC_ROKEN_HOSTCC_MODULES_PROTO=extern void 
__ROKEN_HOSTCC_dummy_module_proto(void)', '-Ithird_party/heimdal_build', 
'-I../../third_party/heimdal_build', '-Ithird_party/heimdal/lib/roken', 
'-I../../third_party/heimdal/lib/roken', '-Ithird_party/heimdal/include', 
'-I../../third_party/heimdal/include', '-Ithird_party/heimdal_build/include', 
'-I../../third_party/heimdal_build/include', '-Iinclude/public', 
'-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', 
'-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', 
'-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', 
'-I../../lib/replace', '-Ictdb/include', '-I../../ctdb/include', '-Ictdb', 
'-I../../ctdb', '-I.', '-I../..', '../../third_party/heimdal_build/replace.c', 
'-c', 
'-o/build/reproducible-path/samba-4.23.5+dfsg/bin/default/third_party/heimdal_build/replace.c.4.o',
 '-Wdate-time', '-D_FORTIFY_SOURCE=2']
| make[2]: *** [debian/rules:217: bin/built.stamp] Error 1
| make[2]: Leaving directory '/build/reproducible-path/samba-4.23.5+dfsg'
| make[1]: *** [debian/rules:188: install] Error 2
| make[1]: Leaving directory '/build/reproducible-path/samba-4.23.5+dfsg'
| make: *** [debian/rules:188: binary] Error 2
| dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2

The full build log is available here [1].

The issue is due to a definition of the openat2 function, which is now
also provided by glibc 2.43 [2]. This issue is not present upstream and
is introduced by debian/patches/inline-openat2.diff. Removing this patch
is enough to get samba built with glibc 2.43.

I would like to thanks Emanuele Rocca for doing the archive rebuild on a
fast arm64 server.

Regards
Aurelien

[1] 
https://people.debian.org/~ema/glibc-2.43-rebuilds/output-1/samba_arm64.build
[2] 
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l54

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                     http://aurel32.net

--- End Message ---
--- Begin Message ---
Source: samba
Source-Version: 2:4.23.6+dfsg-1
Done: Michael Tokarev <[email protected]>

We believe that the bug you reported is fixed in the latest version of
samba, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Tokarev <[email protected]> (supplier of updated samba package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 27 Feb 2026 13:11:48 +0300
Source: samba
Architecture: source
Version: 2:4.23.6+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Samba Maintainers <[email protected]>
Changed-By: Michael Tokarev <[email protected]>
Closes: 1048754 1128849
Changes:
 samba (2:4.23.6+dfsg-1) unstable; urgency=medium
 .
   * new upstream stable/bugfix release.
   * d/clean: also remove python/samba/provision/kerberos_implementation.py
     (Closes: #1048754)
   * check-for-openat2.patch: detect openat2 in libc (Closes: #1128849)
Checksums-Sha1:
 4bfee435a43eae3fe0db40c67b3ff47cd8b8547b 6088 samba_4.23.6+dfsg-1.dsc
 64eb431c5d6957ec81bdc7a24106b8754dfe2595 25729024 samba_4.23.6+dfsg.orig.tar.xz
 709b77ac9f433b9d2682e06d7be72b0a3128adbe 190104 
samba_4.23.6+dfsg-1.debian.tar.xz
 df77dd87dedf29da2262de441136997c5ae21e05 6072 
samba_4.23.6+dfsg-1_source.buildinfo
Checksums-Sha256:
 9771e5bf246fcd2c402a17ed55fd2204f5c52b87d593171fe24cf9ac7d19ef7e 6088 
samba_4.23.6+dfsg-1.dsc
 5bdfd84a100c16b28e81afa3226cbc4df6c33687ddbb606999a60b7aa4e0703f 25729024 
samba_4.23.6+dfsg.orig.tar.xz
 a9cdee393c86a70b0f28406330ff82b305ad0c54b9f154df86ab984cc4aca9ad 190104 
samba_4.23.6+dfsg-1.debian.tar.xz
 5df29b2fb175a9c431b55ad3652e9c5f54f0a02b56092cb02451583b0b7fd79f 6072 
samba_4.23.6+dfsg-1_source.buildinfo
Files:
 2060bef80ead0fe0dc77b94d2aeb6307 6088 net optional samba_4.23.6+dfsg-1.dsc
 7f9e1b34194131c3d687207b27970b33 25729024 net optional 
samba_4.23.6+dfsg.orig.tar.xz
 adf803a5aa80271e5fa43ac5561ab96f 190104 net optional 
samba_4.23.6+dfsg-1.debian.tar.xz
 8a1b50eff9bd4d54a8af66b4ffcf04db 6072 net optional 
samba_4.23.6+dfsg-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

wsG7BAEBCgBvBYJpoW3uCRCCqkokOx6UeEcUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmd4UYYCtfXl7eNDVjH5hhqWhCQo4TMWKXpG2uiYsS4/
VhYhBGSqKrUx1WkDNmv++YKqSiQ7HpR4AADfeQ/+OiWTFXE7iyDJImsJTHvaNGx1
4qcU5/bSRgcyzWDDsizzLLXtryferE5h9D+zp4dbwI3unz9Ykqem2wHfxa+5VlAM
XBixt3irAUcRLOiP2P8bVphcxA4goMbG+xFBJTMhSf/SErQmbJbX5804S1cfRHed
QfsBOqcLcXBRSBdQGqZf4Dii1gChxhbyWbORDorKIsiovOW9sePwIUJEGAGJogHf
0HjHi/ZQgnXjYEK5WqsQUBXfsJhiehUAHaqemXNcU0kI349iQiJfgUupiyJnaLWq
1tWW494nzombmxmo66fiGPfu8Os82L3qHbQt9bBc2wnsN9JTW4+Himxc1JxK5Mtp
eQOrt4/z98eLMf9u7XkDv6mybKDWsdFza85uzRxqdVH+d+rr2HV0TccozLKN7q01
nD/EEhoS6JxB5qmA9AY/LJ7TGjcJQ2CSeDLAtkBy9j/vYSYZDfafJSq5yshMtrQw
uiJqNZmpb0EL7wq503E9S4/U1TQnPo62F2PY49ZUTUXZCsUB4juEGwrhCH2Nbchl
JHRQRtu0UZkk3JYt747KDxP0bOMZ1ZeoXVjEbYDg/GmMjhmivicsvtlYwOEorUze
5UrqwbO8Pm72bIV6MnlBLQiWCAhsr3QuIlN9DKIclHHa18WW0jWZ2WOKEckFsm6b
JIWLPjJZ50K0Z/rCyMs=
=njok
-----END PGP SIGNATURE-----

Attachment: pgpJ4NK59tVeO.pgp
Description: PGP signature


--- End Message ---

Reply via email to