目前共有3篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
11 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)
 

本帖信息

点击数:11 回复数:2
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2025-7-31 11:17
 
©2010-2025 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。