Bug 15395 - build fails with internal popt library (third_party/popt)
Summary: build fails with internal popt library (third_party/popt)
Status: RESOLVED DUPLICATE of bug 14751
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.18.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-12 14:31 UTC by Björn Baumbach
Modified: 2023-06-12 16:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Baumbach 2023-06-12 14:31:51 UTC
The build fails if our included popt library is used (from third_party). I tried this on Ubuntu jammy and Debian stretch. The build works fine with systems popt library (libpopt-dev package).

$ make -j
PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf build
Waf: Entering directory `/home/bbaumba/src/git/samba/bin/default'
        Selected embedded Heimdal build
[3981/4792] Compiling source4/torture/krb5/kdc-heimdal.c
[3984/4792] Compiling source4/torture/krb5/kdc-canon-heimdal.c
[3999/4792] Compiling source4/torture/nbt/winsbench.c
[4002/4792] Compiling source4/torture/nbt/winsreplication.c
[4003/4792] Compiling source4/torture/nbt/wins.c
[4004/4792] Compiling source4/torture/nbt/register.c
[4005/4792] Compiling source4/torture/libnet/libnet_user.c
[4006/4792] Compiling source4/torture/libnet/libnet_share.c
[4007/4792] Compiling source4/torture/libnet/libnet.c
[4008/4792] Compiling source4/torture/libnet/libnet_domain.c
[4009/4792] Compiling source4/torture/libnet/domain.c
[4010/4792] Compiling source4/torture/libnet/libnet_group.c
In file included from ../../source4/torture/krb5/kdc-heimdal.c:29:
../../lib/cmdline/cmdline.h:22:10: fatal error: popt.h: No such file or directory
   22 | #include <popt.h>
      |          ^~~~~~~~
compilation terminated.

In file included from ../../source4/torture/krb5/kdc-canon-heimdal.c:28:
../../lib/cmdline/cmdline.h:22:10: fatal error: popt.h: No such file or directory
   22 | #include <popt.h>
      |          ^~~~~~~~
compilation terminated.

Waf: Leaving directory `/home/bbaumba/src/git/samba/bin/default'
Build failed
 -> task in 'TORTURE_KRB5' failed with exit status 1 (run with -v to display more information)
 -> task in 'TORTURE_KRB5' failed with exit status 1 (run with -v to display more information)
make: *** [Makefile:7: all] Error 1
Comment 1 Björn Baumbach 2023-06-12 16:00:45 UTC

*** This bug has been marked as a duplicate of bug 14751 ***