Re: Postgress 6.5.3 on Irix 6.5.x?

From: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
To: jgramke(at)maple(dot)computing(dot)csbsju(dot)edu, "pgsql-ports(at)postgresql(dot)org" <pgsql-ports(at)postgresql(dot)org>
Subject: Re: Postgress 6.5.3 on Irix 6.5.x?
Date: 2000-01-04 19:43:04
Message-ID: 38724D48.407B3678@nsi.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Jim,

I can't say that I understand what the "No rule" error is. I have found that
when Postgres upgrades, it tends to drop something that IRIX needs to properly
identify where files and libs are on the system. Here's a basic list of things
to make sure are correct on your Postgres install (from the Postgres 6.5.2
installation):

(1) Make sure the shared library path is specified.

======================================================================================

In the file Makefile.shlib:

*** Makefile.shlib.orig Mon Aug 30 11:00:23 1999
--- Makefile.shlib Mon Aug 30 11:01:47 1999
***************
*** 59,65 ****
ifeq ($(PORTNAME), irix5)
install-shlib-dep := install-shlib
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
! LDFLAGS_SL := -shared
CFLAGS += $(CFLAGS_SL)
endif

--- 59,65 ----
ifeq ($(PORTNAME), irix5)
install-shlib-dep := install-shlib
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
! LDFLAGS_SL := -shared -rpath $(LIBDIR)
CFLAGS += $(CFLAGS_SL)
endif

====================================================================================

If this patch isn't made then the compiled files won't know where to look for
the shared libraries.

(2) If you are using -o32 (e.g. Indy and O2) for your cc compiler, then do this.
In /usr/local/src/postgresql-6.5.x/src/template,
modify the file irix5 in the following way:

CFLAGS:-o32
LDFLAGS:-o32

Then, in the file /usr/local/src/postgresql-6.5.x/src/Makefile.custom add the
following lines:

CC += -o32
LD = ld -o32

(3) If you have the readline function installed (free from SGI; allows you to
use the up arrow to repeat the last query in psql), then do this under
configure:

For -o32
=======
configure --with-libs=/usr/freeware/lib
--with-includes=/usr/freeware/include

For -n32
=======
configure --with-libs=/usr/freeware/lib32
--with-includes=/usr/freeware/include

This is where I would start from. Also, make sure that you have the gmake, not
the make. You can also get gmake free from SGI at their website. (e.g. so use
'gmake all', not 'make all').

If things are still not going well, then e-mail me (and the PORTS site) again.
Hopefully, someone will be able to spot the problem.

-Tony

Jim Gramke wrote:

> Tony,
>
> Thanks for taking a look at this.
>
> I can do the "./configure" step of the install procedure with no problem.
> However, when I do the "make all" step, I run into compile problems.
>
> The problem seems to center around SUBSYS.o. Here are the messages I see:
>
> for i in buffer file ipc large_object lmgr page smgr; do gmake -C $i
> buffer/SUBSYS.o; done
> gmake[3]: Entering directory
> `/usr/people/students/other/postgres/src/pgsql/src/backend/storage/buffer'
> gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
>
> I see this "No rule" message 7 times, and then it ends with these messages:
> gmake[2]: *** [buffer/SUBSYS.o] Error 2
> gmake[2]: Leaving directory
> `/usr/people/students/other/postgres/src/pgsql/src/backend/storage'
> gmake[1]: *** [storage.dir] Error 2
> gmake[1]: Leaving directory
> `/usr/people/students/other/postgres/src/pgsql/src/backend'
> gmake: *** [all] Error 2
>
> I can find no trace of any file called SUBSYS.* in the src directory tree, so
> it almost seems like something is missing.
>
> --
>
> --------------------------------------------------------------
> Jim Gramke Unix & Web Systems Administrator
> College of St. Benedict/ jgramke(at)csbsju(dot)edu
> St. John's University PH: (320) 363-2785
> Collegeville, MN 56321 FX: (320) 363-2761
> URL: http://www.users.csbsju.edu/~jgramke
> --------------------------------------------------------------

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 2000-01-04 20:09:31 Re: [PORTS] Re: Postgress 6.5.3 on Irix 6.5.x?
Previous Message Bruce Momjian 2000-01-04 19:37:30 Re: [GENERAL] Announce: PostgreSQL-6.5.3 binaries available forWindows NT