Settings | Sign in | Sign up

The author has 3 posts.

fatal error: popt.h: No such file or directory

Floor 1 巨大八爪鱼 7/31/25 11:14

[root@luckfox-rv1106 ~/software/samba/samba-4.22.3]# make
PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf build
Waf: Entering directory `/root/software/samba/samba-4.22.3/bin/default'
        Selected embedded Heimdal build
[3793/4455] Compiling source4/torture/krb5/kdc-heimdal.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.

Waf: Leaving directory `/root/software/samba/samba-4.22.3/bin/default'
Build failed
 -> task in 'TORTURE_KRB5' failed with exit status 1 (run with -v to display more information)
make: *** [Makefile:7: all] Error 1
[root@luckfox-rv1106 ~/software/samba/samba-4.22.3]#

Floor 2 巨大八爪鱼 7/31/25 11:15

解決辦法:

https://bugzilla.samba.org/show_bug.cgi?id=14751

編譯安裝popt-1.19庫。安裝popt後可以繼續編譯samba,不用全部重新開始。

 

wget https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-1.19.tar.gz --no-check-certificate
tar xf popt-1.19.tar.gz
cd popt-1.19
./configure
make
make install
cd ..

Floor 3 巨大八爪鱼 7/31/25 11:17

Reported: 2021-07-04 18:51 UTC by Matthias Dieter Wallnöfer   

Bug 14751 - popt.h: File or directory not found

Matthias Dieter Wallnöfer 2021-07-04 18:51:50 UTC

Apparently waf fails to probe for the _libpopt-dev_ package during the configuration step, so the build fails:

Installing it with the system's package manager resolves the problem :).

 

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.