目前共有3篇帖子。 字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
10 2
fatal error: popt.h: No such file or directory
一派掌門 二十級
1樓 發表于:2025-7-31 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]#

一派掌門 二十級
2樓 發表于:2025-7-31 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 ..

 
一派掌門 二十級
3樓 發表于:2025-7-31 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 :).

 

 

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
(快捷鍵:Ctrl+Enter)
 

本帖信息

點擊數:10 回複數:2
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2025-7-31 11:17
 
©2010-2025 Purasbar Ver2.0
除非另有聲明,本站採用共享創意姓名標示-相同方式分享 3.0 Unported許可協議進行許可。