Daniel Rubio <drubior(at)tinet(dot)org> writes:
> Using the older gcc version to compile, the problem disappears ...
Hmm. gcc 4.0.4 is hardly new. I'm wondering about the weird CFLAGS and
include/link paths shown in your pg_config output. What does all that
do?
>> CPPFLAGS = -I/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/include
>> -I/usr/sfw/include
>> CFLAGS = -xO3 -xarch=v8 -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff
>> -xc99=none -xCC
>> LDFLAGS = -L/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/lib
>> -L/usr/sfw/lib -L/usr/lib -Wl,-R/usr/lib
regards, tom lane