AIX 4.1 and 7.1RC2

From: Rocco Altier <roccoa(at)routescape(dot)com>
To: pgsql-ports(at)postgres(dot)org
Subject: AIX 4.1 and 7.1RC2
Date: 2001-04-02 19:48:07
Message-ID: Pine.A41.4.21.0104021514020.318844-100000@apdev
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

To get 7.1RC2 to compile and pass the regression tests on AIX 4.1 I had to
make the following changes.

1) Makefile.global had the host_os and host_tuple full specified, but the
Makefile.port was expecting just aix4.1 instead of aix4.1.5.0

It looks like config/config.guess is using oslevel if it exists (which returns 4.1.5.0), but
otherwise will default to what uname gives (AIX apdev 1 4 006103684C00).

Not sure how to fix this permanently.

2) Makefile.shlib was missing the $LDFLAGS_SL to properly build shared libraries before
AIX 4.2. In Makefile.port its not defined, so should have no affect on AIX 4.2 and later.

Patch follows.

Thanks,
-rocco

*** Makefile.shlib.ORIG Mon Apr 2 12:58:28 2001
--- Makefile.shlib Mon Apr 2 12:59:33 2001
***************
*** 291,297 ****
# AIX case
$(shlib): lib$(NAME).a
$(MKLDEXPORT) lib$(NAME).a > lib$(NAME)$(EXPSUFF)
! $(COMPILER) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK)

endif # PORTNAME == aix

--- 291,297 ----
# AIX case
$(shlib): lib$(NAME).a
$(MKLDEXPORT) lib$(NAME).a > lib$(NAME)$(EXPSUFF)
! $(COMPILER) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK) -Wl,$(LDFLAGS_SL)

endif # PORTNAME == aix

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2001-04-02 19:50:55 Re: Cygwin PostgreSQL Regression Test Problems (Revisited)
Previous Message Jason Tishler 2001-04-02 19:32:52 Re: Cygwin PostgreSQL Regression Test Problems (Revisited)