编译过程如下:
tar zxPf libesmtp-cygwin.tar.gz
tar zxPf gmp-cygwin.tar.gz
cd apache_1.3.33
./configure --prefix=/usr/local/www
cd ../php-4.3.11
./configure --with-apache=../apache_1.3.33
make
make install
cd ../apache_1.3.33
./configure --prefix=/usr/local/www --activate-module=src/modules/php4/libphp4.a
make
make install
进入 smthbbs 的源代码目录。编辑 site/devel.h文件,加入下面这一行:
#define BUILD_PHP_EXTENSION 1 /*将php lib编成php extension */
./configure --prefix=/usr/local/bbs --enable-site=devel \
--with-www=/usr/local/www --with-php=/usr/local/include/php \
--without-mysql --enable-ssh --enable-innbbsd
make
出现以下错误:
[Linking bbsall.exe]
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x29cc):bbslib.c: undefined reference to `_MsgDesUid'
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x29eb):bbslib.c: undefined reference to `_sendmsgfunc'
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x4354):bbslib.c: undefined reference to `_auto_register'
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x4d8a):bbslib.c: undefined reference to `_string_copy'
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x4dbf):bbslib.c: undefined reference to `_string_copy'
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x4df1):bbslib.c: undefined reference to `_string_copy'
/cygdrive/d/SmthBBS/smthbbs-1.2.2/bbs2www/lib/.libs/libbbslib.a(bbslib.o)(.text+0x4e23):bbslib.c: undefined reference to `_string_copy'
collect2: ld returned 1 exit status
make[3]: *** [bbsall.exe] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
请大虾们指点一下解决办法吧,谢谢!
--
FROM 59.66.207.*