gpredict does not build with MUSL libc
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- c
- 领域
- build-system
调研方向
gtk-rig.ctrl.c 和 gtk-rot-ctrl.c 中报告了 gethostbyname() 的隐式声明,因此从这两个文件开始,检查每个文件在哪里包含 netdb.h。报告者称,在包含头文件之前定义 _GNU_SOURCE 会使该声明在 MUSL 下可见,请在 MUSL 构建中确认这一点。完成标准是:在 MUSL 下构建无隐式函数声明警告地结束,并且在 glibc 下仍能构建。
由索引模型根据 Issue 内容生成。
描述
Compiling under MUSL libc fails with 'implicit-function-declaration' for 'gethostbyname()' in gtk-rig.ctrl.c and gtk-rot-ctrl.c.
Further investigation shows that both files need the following feature macro to be defined:
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
Under MUSL netdb.h exports gethostbyname() only if the macro is defined.
- 主要语言
- C
- 星标
- 1.2k
- 派生
- 305
- 平均合并
- 8 小时 48 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
csete/gpredict 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1 小时以内 新手友好度 60/100
-
难度 4/5 3-5 天 新手友好度 78/100
-
rotator
难度 4/5 3-5 天 新手友好度 30/100
相似的 Issue
-
mewencode: base256[] and base128[] are indexed out of bounds by a non-ASCII octet可能已有人在做 @kazu-yamamoto 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
kazu-yamamoto/Mew#276 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 91/100
FujiNetWIFI/fujinet-firmware#2045 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
gbdev/homebrewhub-submit#20 ·
-
pluto: extract.c logs cert nickname instead of ckaid when both *cert= and *ckaid= are specified可能已有人在做 @Yash990-bit 今天认领。 未关闭
难度 1/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复