在编译BBS原码时出现一下错误,怎么办呢?
CIMS% make
gcc -O -DSOLARIS -DSYSV -DTERMIOS -c mail.c
In file included from /usr/include/sys/turnstile.h:12,
from /usr/include/sys/t_lock.h:20,
from /usr/include/sys/file.h:17,
from bbs.h:45,
from mail.c:24:
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/param.h:185: warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous definition
In file included from /usr/include/sys/stream.h:26,
from /usr/include/netinet/in.h:38,
from /usr/include/netdb.h:96,
from mail.c:961:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
*** Error code 1
make: Fatal error: Command failed for target `mail.o'
我查看了一下,/usr/include/sys/model.h 出错的部分是这样的:
#define DATAMODEL_MASK 0x0FF00000
#define DATAMODEL_ILP32 0x00100000
#define DATAMODEL_LP64 0x00200000
#define DATAMODEL_NONE 0
#if defined(_LP64)
#define DATAMODEL_NATIVE DATAMODEL_LP64
#elif defined(_ILP32)
#define DATAMODEL_NATIVE DATAMODEL_ILP32
#else
#error "No DATAMODEL_NATIVE specified"
#endif /* _LP64 || _ILP32 */
怎么解决这个问题呢?
还请各位高手指点。
谢谢!
--
FROM 202.119.21.251