Whoever has had problems, here's a general advice:
Make sure the dir containing Sun's c compiler and linker precedes any
other dir containing any other c compiler (such as gcc) in your PATH
environment variable.
Otherwise you're doomed to fail even if you use the solaris_sparc_cc
template. It's NOT a guarantee that configure really picks Sun's cc and
linker.
If you pick the right compiler, but the wrong linker it won't compile.
In my case it stopped building libpq.
If you pick the wrong compiler (gcc) and the right linker it will
compile, but i experienced problems with tcp/ip connections (setsockopt
errno=22) afterwards.
reiner
--
(*)->[]->()->[]->(**)->[]->()->[]->(*)->[]->()->[]->()->[]->()->[]->()->[]
3 2
(Humboldt University Berlin, Germany)->[]->(University of Maryland, USA)