Re: [請益] ptt 在ubuntu8.10 pmake 出現 warm_un …
※ 引述《michaelgod (michaelgod)》之銘言:
: 小弟我用ubuntu 8.10 裝ptt bbs 結果在pmake 時候出錯
: 我google 過但是找不道solution
: 請板上高手解惑
: thanks~
: % make BBSHOME=/home/bbs all install
: all ===> common
: all ===> common/bbs
: all ===> common/osdep
: all ===> common/sys
: ccache gcc -g -Os -Wall -pipe -DBBSHOME='"/home/bbs"' -I../../include
: -Werror -c daemon.c
這邊不知道為什麼多了一個 -Werror
可能是在 pttbbs.mk 裡 PTT_CFLAGS 最後多加了
如果沒有的話用 grep -R -- -Werror * 找一下是在哪裡加的參數
再沒有的話 check 一下 environment variable $CFLAGS 是不是有東西吧...
: cc1: warnings being treated as errors
: daemon.c: In function 「daemonize」:
: daemon.c:52: 錯誤: 忽略宣告有 warn_unused_result 屬性的 「write」 的回傳值
: *** Error code 1
: Stop.
: pmake: stopped in /home/bbs/pttbbs/common/sys
: *** Error code 1
: Stop.
: pmake: stopped in /home/bbs/pttbbs/common
: *** Error code 1
: Stop.
: pmake: stopped in /home/bbs/pttbbs
--
All this will not be finished in the first 100 days.
Nor will it be finished in the first 1,000 days,
nor in the life of this Administration,
nor even perhaps in our lifetime on this planet.
But let us begin.
-- John F. Kennedy, Inaugural Address
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.54
推
11/04 23:31, , 1F
11/04 23:31, 1F
推
11/05 08:25, , 2F
11/05 08:25, 2F
→
11/05 12:43, , 3F
11/05 12:43, 3F
→
11/05 12:48, , 4F
11/05 12:48, 4F
→
11/05 12:48, , 5F
11/05 12:48, 5F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):