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

From: John R Pierce <pierce(at)hogranch(dot)com>
To: gabrielle <gorthx(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Solaris install - "cannot compute sizeof (off_t)" error - readline issue?
Date: 2010-10-23 02:17:39
Message-ID: 4CC245C3.6050309@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2010-10-23 02:41:23 Re: how to get the height of index tree?
Previous Message Alexia Lau 2010-10-23 02:00:20 Re: Missing uuid_generate_v1()