Bug 15741 - >=samba-4.21.0 no longer builds with --without-ads --with-ldap
Summary: >=samba-4.21.0 no longer builds with --without-ads --with-ldap
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.21.1
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL: https://bugs.gentoo.org/941578
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-17 16:08 UTC by Ben Kohler
Modified: 2024-10-21 14:33 UTC (History)
1 user (show)

See Also:


Attachments
build.log (2.21 MB, text/plain)
2024-10-17 16:08 UTC, Ben Kohler
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler 2024-10-17 16:08:57 UTC
Created attachment 18479 [details]
build.log

If one attempts to build samba-4.21.x with ldap support but without ads support, the build will fail.  First noticed on 4.21.0 but also affects 4.21.1.

Small build log excerpt:

../../source3/libads/sasl.c: In function ‘ads_sasl_spnego_gensec_bind’:
../../source3/libads/sasl.c:195:41: error: ‘ADS_STRUCT’ {aka ‘struct ads_struct’} has no member named ‘ldap_wrap_data’
  195 |         struct ads_saslwrap *wrap = &ads->ldap_wrap_data;
      |                                         ^~
../../source3/libads/sasl.c:225:47: error: ‘ADS_STRUCT’ {aka ‘struct ads_struct’} has no member named ‘ldap_tls_data’
  225 |         tls_cb = ads_tls_channel_bindings(&ads->ldap_tls_data);
      |                                               ^~
../../source3/libads/sasl.c:299:42: error: ‘ADS_STRUCT’ {aka ‘struct ads_struct’} has no member named ‘ldap’
  299 |                 rc = ldap_sasl_bind_s(ads->ldap.ld, NULL, sasl, &cred, NULL, NULL, &scred);
      |                                          ^~
../../source3/libads/sasl.c:378:59: error: ‘ADS_STRUCT’ {aka ‘struct ads_struct’} has no member named ‘ldap’
  378 |                 status = ads_setup_sasl_wrapping(wrap, ads->ldap.ld,
      |                                                           ^~
../../source3/libads/sasl.c: In function ‘ads_sasl_bind’:
../../source3/libads/sasl.c:584:41: error: ‘ADS_STRUCT’ {aka ‘struct ads_struct’} has no member named ‘ldap_wrap_data’
  584 |         struct ads_saslwrap *wrap = &ads->ldap_wrap_data;
      |                                         ^~
Comment 1 Ben Kohler 2024-10-17 16:19:04 UTC
Comment on attachment 18479 [details]
build.log

Full configure call pulled from the attached build.log

'PYTHONHASHSEED=1' 'CCFLAGS=-O2 -pipe -march=native -frecord-gcc-switches' 'LINKFLAGS=-O2 -pipe -march=native -frecord-gcc-switches -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' 'PKGCONFIG=x86_64-pc-linux-gnu-pkg-config' '/var/tmp/portage/net-fs/samba-4.21.1/work/samba-4.21.1/buildtools/bin/waf' '--jobs=1' '--prefix=/usr' '--docdir=/usr/share/doc/samba-4.21.1' '--htmldir=/usr/share/doc/samba-4.21.1/html' '--libdir=/usr/lib64' '--mandir=/usr/share/man' '--enable-fhs' '--sysconfdir=/etc' '--localstatedir=/var' '--with-modulesdir=/usr/lib64/samba' '--with-piddir=/run/samba' '--bundled-libraries=cmocka,NONE' '--builtin-libraries=NONE' '--disable-rpath' '--disable-rpath-install' '--nopyc' '--nopyo' '--without-winexe' '--with-acl-support' '--without-ad-dc' '--without-ads' '--disable-cephfs' '--without-cluster-support' '--disable-cups' '--without-dmapi' '--without-fam' '--disable-glusterfs' '--without-gpgme' '--without-json' '--disable-iprint' '--with-pam' '--with-pammodulesdir=/lib64/security' '--without-quotas' '--with-regedit' '--disable-spotlight' '--without-syslog' '--with-systemd' '--systemd-install-services' '--with-systemddir=/usr/lib/systemd/system' '--without-libunwind' '--with-winbind' '--disable-avahi' '--with-system-mitkrb5' '/usr' '--without-lttng' '--with-ldap' '--without-profiling-data' '--private-libraries=!ldb' '--jobs' '1' '--with-shared-modules=!vfs_snapper' 'configure'