Search Postgresql Archives

Re: Solaris install - "cannot compute sizeof (off_t)" error - readline issue?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/22/10 11:15 AM, gabrielle wrote:
I'm trying to install postgres 8.4.5 on Solaris 10 (Sun):
./configure --prefix=/app/postgres-8.4.5 \
--with-libs=/app/usr/local/lib \
--with-includes=/app/usr/local/include

(lib&  include specified because I have readline installed in a
non-standard location.  Yay.)

This fails with this error:
checking size of off_t... configure: error: cannot compute sizeof (off_t)

I got that error building on a unix platform that was missing some library or another, the actual error had *nothing* to do with off_t, rather, the off_t test module failed on this library load.

in fact it may have been readline.


here's what *I* used to compile on solaris x86 with readline...

first, I built this in my old account, in $HOME/src I untarred zlib 1.2.5, readline 6.1, and postgres 8.4.5

i compiled zlib and readline first, telling it to put the target in $HOME as I only used the static link libraries to reduce dependencies for my compiled postgres... I specifically built readline and zlib as static (.a) libraries only, not as shared (.so) libraries.

then, to compile postgres, I used this ./configure..

CC=/opt/SUNWspro/bin/cc CFLAGS="-xarch=amd64" ./configure --prefix=/opt/pgsql-84 --with-libs=$HOME/lib \
     --with-includes=$HOME/include

and then ran gmake && gmake check && su "gmake install"

gmake is in /usr/sfw/bin ... I also had /usr/ccs/bin in my path but I'm not sure this is important or not (ld is in there)

note, I'm using Sun Studio 11 (Sun cc 5.8) here. Sun-err-Oracle Studio 12 works just fine, too.



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux