看板FreeBSD
标 题Re: [问题] MapleBBS install.sh问题
发信站星情夜语 (Mon Oct 12 23:42:14 2009)
转信站ptt!news.ntu!news.au!zoonews.ee.ntu!StarBBS
-fPIC 在干嘛可以参考这篇
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
我没列出来的目录可以不必修改:p
没什麽意外的话,应该只需要改我列出来的那几个 Makefile 就够了
※ 引述《[email protected] (南洋大兜虫)》之铭言:
> 感谢gaod大神的解答m(_ _)m
> 解决了一个问题了QQ
> 可是还剩下两个Error
> 我试着也把其他资料夹加上 fPIC...就变成下面这样了...
> 可以顺便问一下为什麽要加上 -fPIC吗= =a?
> 感激不尽>///<
> ranlib libdao.a
> gcc -o bguard bguard.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -o bhttpd bhttpd.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -o bmtad bmtad.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -o bnntpd bnntpd.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -o bpop3d bpop3d.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -o gemd gemd.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -o xchatd xchatd.c -DBSD44 -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -s -L../lib -ldao -lcrypt
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c channel.c
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c bbslib.c
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c convcode.c
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c inntobbs.c
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c rec_article.c
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c nocem.c
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c history.c
> gcc -o innbbsd channel.o bbslib.o convcode.o inntobbs.o rec_article.o nocem.o history.o -s -L../lib -ldao
> gcc -O2 -pipe -I../include -fPIC -fomit-frame-pointer -Wunused -c bbslink.c
> gcc -o bbslink bbslink.o bbslib.o convcode.o inntobbs.o rec_article.o nocem.o history.o -s -L../lib -ldao
> make: cannot open PIC.
> *** Error code 2
> Stop in /home/bbs/src/maple.
> *** Error code 1
> Stop in /home/bbs/src.
> /home/bbs/bin/install.sh: bin/bbsd: not found
> /home/bbs/bin/install.sh: bin/camera: not found
> /home/bbs/bin/install.sh: bin/account: not found
> Trying 0.0.0.0...
> telnet: connect to address 0.0.0.0: Connection refused
> telnet: Unable to connect to remote host
> ※ 引述《[email protected] (My life is full of chia)》之铭言:
> > src/lib/Makefile:
> > src/so/Makefile:
> > src/game/Makefile
> > src/pip/Makefile
> > 这几个档案里面,在 CFLAGS 参数处加上 -fPIC
> > 例如
> > src/lib/Makefile:
> > CFLAGS = -O2 -s -pipe -fomit-frame-pointer -Wunused -I../include -fPIC
> > src/so/Makefile:
> > freebsd:
> > @$(MAKE) CC=gcc CFLAGS="-DBSD44 -O2 -pipe -fomit-frame-pointer \
> > -Wunused -I../include -fPIC" $(SO)
> > 然後重跑一次 install.sh 应该就可以了:p
--
┼─ 即使看不见了星星.它还是在原来
的地方 ╱ 。
│ . 。 .╱│
│ 即使离开
了视线 感情也不会疏远 ╱ │
│. 。 。 ☆ ─┼by伊修卡
--
※ Origin: 星情夜语 <bbs.hychen.org>
◆ From: gaod @ 122-116-11-47.HINET-IP.hinet.net