看板 PttCurrent 關於我們 聯絡資訊
新版的 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 -- 目前已知現存的 BBS 站台列表: https://bbslist.github.io (2021-12-5 更新) https://hackmd.io/s/r1pdt-59b (即時更新,自由編輯) 自己的 ptt 自己架 : https://github.com/ptt/pttbbs/wiki 讓自己的 ptt 有轉信 : https://github.com/clamtestbbs/pttbbs-inndtest -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.116.246.190 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/PttCurrent/M.1639676306.A.D93.html