Hi,
I am getting error while compiling Postgres-8.0.0 from the source files.
I am using following options for compiling it on Solaris 5.8:
./configure --prefix=/export/home/uxapps/postgresql-8.0.0
--enable-thread-safety --without-readline CFLAGS='-D_REENTRANT'
CPPFLAGS='-mt' cc=/export/home/uxapps/workshop/SUNWspro/bin/cc
Error:
gmake[4]: Entering directory
`/home/rbhide/utilities/postgres-8.0.0/postgresql-8.0.0/src/backend/stor
age/lmgr'
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o lmgr.o lmgr.c
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o lock.o lock.c
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o proc.o proc.c
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o deadlock.o deadlock.c
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o lwlock.o lwlock.c
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o spin.o spin.c
/export/home/uxapps/workshop/SUNWspro/bin/cc -Xa -D_REENTRANT
-I../../../../src/include -mt -c -o s_lock.o s_lock.c
/export/home/uxapps/workshop/SUNWspro/bin/../WS6U2/bin/fbe:
"/tmp/yabeAAA42aaxH", line 195: error: can't compute difference between
symbols in different segments
Failure in /export/home/uxapps/workshop/SUNWspro/bin/../WS6U2/bin/fbe,
status = 0x100
Fatal Error exec'ing
/export/home/uxapps/workshop/SUNWspro/bin/../WS6U2/bin/fbe
cc: acomp failed for s_lock.c
gmake[4]: *** [s_lock.o] Error 2
gmake[4]: Leaving directory
`/home/rbhide/utilities/postgres-8.0.0/postgresql-8.0.0/src/backend/stor
age/lmgr'
gmake[3]: *** [lmgr-recursive] Error 2
gmake[3]: Leaving directory
`/home/rbhide/utilities/postgres-8.0.0/postgresql-8.0.0/src/backend/stor
age'
gmake[2]: *** [storage-recursive] Error 2
gmake[2]: Leaving directory
`/home/rbhide/utilities/postgres-8.0.0/postgresql-8.0.0/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/home/rbhide/utilities/postgres-8.0.0/postgresql-8.0.0/src'
gmake: *** [all] Error 2
Please recommend a suitable fix to overcome this error.
Thanks,
Rajan