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

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Solaris install - "cannot compute sizeof (off_t)" error - readline issue?
Дата
Msg-id 4CC245C3.6050309@hogranch.com
обсуждение исходный текст
Ответ на Solaris install - "cannot compute sizeof (off_t)" error - readline issue?  (gabrielle <gorthx@gmail.com>)
Список 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.



В списке pgsql-general по дате отправления:

Предыдущее
От: Alexia Lau
Дата:
Сообщение: Re: Missing uuid_generate_v1()
Следующее
От: John R Pierce
Дата:
Сообщение: Re: how to get the height of index tree?