solaris 10 apache 2.2.4 64 bit build error

I am trying to build 64 bit apache 2.2.4 on a Sun server. I have built many

applications so far. This is my configure line

CC='gcc -m64 -mcpu=v9 -O3' ./configure --disable-ipv6 --enable-info --enable-status

--enable-ssl --with-ssl=/usr/local/ssl --disable-negotiation --disable-userdir

--disable-autoindex --disable-imap --enable-expires

This is the failure. Do I have to compile each of the libapr programs separately or

is there something else wrong.

Thanks
--------------------
Undefined first referenced
symbol in file
find_if_index

/home1/users/cross/packages/UnpackedDownloads/httpd-2.2.4/srclib/apr/.libs/libapr-1.s

o
ld: fatal: Symbol referencing errors. No output written to .libs/htpasswd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `htpasswd'
Current working directory

/home1/users/cross/packages/UnpackedDownloads/httpd-2.2.4/support
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \

Today I tried to compile the same source with 32 bit, and I get the same errors.

I would appreciate any suggestions.

Thanks

i don't know the answerer for your issue, sorry, but what's about using a pre compiled tuned version for solaris? there is a project called "Cool Stack" to provide optimized packages complied with the sun compiler for solaris:
Optimized Open Source Software Stack (Cool Stack) for the Sun Solaris Operating System

gP