在config.h中:
我添加了:
----------------------------------------------------------
........
/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
/* #undef inline */
/* Define to rpl_malloc if the replacement function should be used. */
/* #undef malloc */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef mode_t */
/* Define to `long' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */
/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */
#define OWNSENDMAIL "/usr/.../sendmail"
------------------------------------------
最后一句即是,make后提示:
--------------------------------------------
[Compiling bbs_sendmail.c]
bbs_sendmail.c: In function `bbs_sendmail':
bbs_sendmail.c:712: `OWNSENDMAIL' undeclared (first use in this function)
bbs_sendmail.c:712: (Each undeclared identifier is reported only once
bbs_sendmail.c:712: for each function it appears in.)
make[2]: *** [bbs_sendmail.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[root@localhost smthbbs-1.2.1]#
-------------------------------------------
是不是"/usr/.../sendmail"中"..."要改成别的路径才行?如果是要改成什么讷?
【 在 flyriver (江~~每天进步一点点) 的大作中提到: 】
: 这样做不好,configure 脚本应该会自动检测 sendmail,
: 然后在 config.h 里面添加宏定义:
: #define OWNSENDMAIL "/usr/.../sendmail"
--
修改:foxle FROM 211.157.101.*
FROM 211.157.101.*