Compile PHP as an Apache module on Solaris

Hi,
I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10.

Please any help is wellcome.

Some aditional info:

/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
bash-3.2# g++ -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
bash-3.2# isainfo -b
64

LD_LIBRARY_PATH_64=/usr/lib/64
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/lib/sparcv9:/lib:/usr/ccs/bin
PATH=/usr/local/lib:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/lib/sparcv9:/usr/ccs/bin

I execute ./configure with a m�nimum of arguments by now:

./configure --with-apxs2=/usr/local/apache2/bin/apxs 

But gmake gives me the next error:

gmake
ld: fatal: file main/: unknown file type
ld: fatal: file processing errors. No output written to .libs/libphp5.so
collect2: ld returned 1 exit status
gmake: *** [libphp5.la] Error 1

Any idea about how can be solved this error?
Thxs in advance.