apache编译在configure阶段失败

下载的apache httpd-2.2.6源码,在configure阶段报错退出,大家有遇到这种情况么?

apache version: 2.2.6
platform: Sun-Fire-V440
os version: 5.10
command line for the configure:
./configure --prefix=/opt/apache --enable-rewrite --enable-so --enable-static-support --enable-proxy=shared --build=sparc-sun-solaris2.10 --host=sparc-sun-solaris2.10 --target=sparc-sun-solaris2.10 CC=/opt/swe/tools/ext/sun/workshop_c++-11.0_p1/SUNWspro/bin/CC CFLAGS=-O2
error information:
...
checking size of ssize_t... 0
checking size of size_t... 0
checking size of off_t... 0
checking which type to use for apr_off_t... configure: error: could not determine the size of off_t
configure failed for srclib/apr

大概就是在configure他自带的APR(Apache Portable Runtime)出的错,如果只用参数--prefix=/opt/apache的话出错一样。不知道是不是我用的CC(C complier)的问题。
#/opt/swe/tools/ext/sun/workshop_c++-11.0_p1/SUNWspro/bin/CC -V
CC: Sun C++ 5.8 Patch 121017-10 2007/02/21
#