作者scwg ( )
看板PttCurrent
标题Re: [请益] ptt 在ubuntu8.10 pmake 出现 warm_un …
时间Tue Nov 4 20:04:17 2008
※ 引述《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
1F:推 michaelgod:8.10 的gcc会自己pass -Werror 进去..QQ 11/04 23:31
2F:推 wens:那是 pmake 用到 bsd.lib.mk 里面会加的 11/05 08:25
3F:→ scwg:Ubuntu 上应该没有 bsd.lib.mk ? 11/05 12:43
5F:→ scwg: 掉 -Werror ? 11/05 12:48