作者holishing ( )
看板PttCurrent
标题Re: [问题] kubuntu x86_64编译错误 变数重复定义
时间Mon Apr 11 23:16:57 2022
上游看起来修了
https://github.com/ptt/pttbbs/commit/2fae7442d4987b669b9c20d9e8fce80dd7bbdaff
补充一下 bbsdocker/image 专案建置环境变更的部分
预设 base image 改用 bullseye
新增 bookworm/testing, sid 版本作为 base image
提前测试 pttbbs 是否相容未来的 debian 稳定版本
(如果 Ubuntu 没大改或许也对移植过去有帮助,但还是以测 Debian 为主)
目前可能要注意的是 Debian 逐渐淘汰 python2
所以 bookworm, sid 现在只提供 python-is-python3
除非手动改,不然脚本用 #!/usr/bin/env python 就不能代表 python2 了
现有 pttbbs 所包含到的 python 脚本如果会继续沿用
需要再找机会测试能不能相容
--
※ 引述《holishing ( )》之铭言:
: 新版的 gcc 会严格限制 multiple definition
: 所以在 Ubuntu Focal 或 Debian Bullseye 会遇到编译错误 (以前只会警告)
: 两种解法:
: 第一种是在编译参数加上 -fcommon (让它允许重复定义)
: 第二种是把重复定义删掉,例如参考以下修改:
: https://github.com/bbsdocker/imageptt/blob/87c0ec3c/multipledef.patch
: 应该就可以编译过了
: ※ 引述《knko ()》之铭言:
: : 我在使用kubuntu(x86_64)编译此套软体时执行pmake all install时发现错误,原因是/u
: : sr/bin/ld: /tmp/writemoney-42e226.o:/home/bbs/pttbbs/util/writemoney.c:5: multip
: : le definition of `now'; util_var.o:/home/bbs/pttbbs/util/../mbbsd/var.c:374: fir
: : st defined here,是於pttbbs.conf中有加入#define SHMALIGNEDSIZE (1048576*4)
: : #define TIMET64,似乎是爲重复定义但是我不确定是软体还是我设定的问题,我使用的版
: : 本最後的编辑是https://github.com/ptt/pttbbs/commit/576513c502a9bf5fcfa08ae52ee94
: : ed0c67be608
: : ----
: : Sent from BePTT on my Samsung SM-M127F
--
Param
ore - Franklin
And when we get home, I know we won't be home at all
This place we live, it is not where we belong
And I miss who we were in the town that we could call our own
Going back to get away after everything has changed
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.116.252.158 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/PttCurrent/M.1649690220.A.F7B.html
※ 编辑: holishing (140.116.24.67 台湾), 04/12/2022 02:23:49