gpt4 book ai didi

compiler-errors - Samba 4.6.5在RHEL 7.3上编译错误

转载 作者:行者123 更新时间:2023-12-02 10:59:58 25 4
gpt4 key购买 nike

当我尝试在RHEL 7.3上编译Samba 4.6.5时,收到以下错误:

In file included from ../source4/lib/socket/netif.h:22:0,<P>
from ../python/pyglue.c:24:<P>
../lib/replace/system/network.h:91:21: fatal error: stropts.h: No such file or directory<P>
#include <stropts.h>
^<P>
compilation terminated.<P>
Waf: Leaving directory `/root/Downloads/samba-4.6.5/bin'<P>
Build failed: -> task failed (err #1):<P>
{task: cc pyglue.c -> pyglue_6.o}<P>
make: *** [all] Error 1<P>

使用的Python是anaconda 2.7-4.4.0。在配置步骤中,我收到以下警告:
  • 找不到合适的FAM库
  • 不含DMAPI支持的
  • 建筑物:否
    找到合适的DMAPI库

  • 但是,它成功完成,并说:

    'configure' finished successfully



    关于从哪里开始进行故障排除的任何线索?谢谢!

    最佳答案

    我想我可以回答我自己的问题。 header stropts.h肯定丢失。但是,如果我在samba源代码树的顶层(例如,“configure”和Makefile脚本所在的位置)添加缺少的stropts.h,则可以成功编译。

    我认为这只需要进行调整即可指向有效的stropts.h或将其包含在压缩包中。

    关于compiler-errors - Samba 4.6.5在RHEL 7.3上编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45020398/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com