- 主题:【请教】smthbbs + solaris8 (sparc)在编译bbs2www时出问题
工作站:Sun v880
OS: Solaris 8 for sparc
编译器:gcc 3.4.1
按照安装说明安装smthbbs,前面编译顺利,但是编译到bbs2www时出问题,
(显示信息如下),我查看了/usr/include/sys/stream.h,里面关于bcache_t
的定义如下:
typedef struct bcache {
kmutex_t mutex;
struct kmem_cache *buffer_cache;
struct kmem_cache *dblk_cache;
int alloc;
int destroy;
size_t size;
uint_t align;
} bcache_t;
而$BBSSRC/bbs2www/include/types.h里有:
typedef struct boardheader bcache_t;
应该怎么处理?
附:出错信息:
Making all in lib
[Compiling bbslib.c]
[Compiling .libs/bbslib.lo]
In file included from /usr/include/netinet/in.h:41,
from /usr/include/sys/socket.h:200,
from ../../src/bbs.h:56,
from ../include/bbslib.h:7,
from bbslib.c:5:
/usr/include/sys/stream.h:335: error: conflicting types for 'bcache_t'
../include/types.h:9: error: previous declaration of 'bcache_t' was here
In file included from bbslib.c:5:
../include/bbslib.h:172: warning: conflicting types for built-in function
'cexp'
bbslib.c: In function `has_BM_perm':
bbslib.c:917: warning: assignment from incompatible pointer type
bbslib.c:924: error: structure has no member named `BM'
bbslib.c: In function `getbcacheaddr':
bbslib.c:1100: warning: return from incompatible pointer type
bbslib.c: In function `www_data_detach':
bbslib.c:1421: warning: passing arg 1 of `shmdt' from incompatible pointer
type
make[4]: *** [bbslib.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
FROM 202.114.64.*
这个问题我在编译的时候把sys/stream.h中的那个bcache_t的
定义注释掉了,编译通过了,但不知道这样做有没有什么问题。
另外,还是那个shm的错误问题,启动./misc deamon的时候显示
shm错误,我已经把devel.h和site.h中的BBSUID和BBSGID的值设成系
统中/etc/passwd显示的值了,但为什么还会出现此错误?
请帮助解决。谢谢!
【 在 flyriver (江~~每天进步一点点) 的大作中提到: 】
: 这些问题目前都已经解决,从 cvs 上获取最新 v1_2 分支代码吧。
--
FROM 202.114.64.*
Error! shmget error! key = e70.: Invalid argument
我看了以前的帖子,有不少出现这样的情况,但是
都没有得到解决。
一般的方法例如清除共享内存、修改BBSUID、BBSGID、
修改文件所有者等等都试过了,重启也不行,会不会是
操作系统的问题?(前面出现这种情况用的好像都是
Debian,我用的是Solaris for Sparc)
另外,主页上的每日snap包是最新的吗?
【 在 atppp (Big Mouse) 的大作中提到: 】
: 最好不要这么做。改回去以后改用 1.2.1 吧。
: 具体错误信息?
--
FROM 202.114.64.*