From: | "Tomoyuki Niijima" <NIIJIMA(at)jp(dot)ibm(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Cc: | pgsql-patches-owner(at)postgresql(dot)org |
Subject: | failed to build libpq.so on AIX 4 and 5/I have a solution |
Date: | 2002-09-01 23:33:24 |
Message-ID: | OF66815177.455F4D6A-ON49256C27.00810D5D@LocalDomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
I'm posting this report to pgsql-bugs(at)postgresql(dot)org too. I aware the fact
that I posted mostly the same report to pgsql-bugs(at)postgresql(dot)org about two
month ago. Though, I had a mistake on it. I needed -Wl, before -bnoentry
to support gcc.
PoorTom
----- Forwarded by Tomoyuki Niijima/Japan/IBM on 2002/09/02 08:33 -----
Tomoyuki Niijima
To: pgsql-patches(at)postgresql(dot)org
2002/08/30 02:06 cc:
From: Tomoyuki Niijima/Japan/IBM(at)IBMJP
Subject: failed to build libpq.so on AIX 4 and 5/I have a
solution
Your name : Tomoyuki Niijima
Your email address : niijima(at)jp(dot)ibm(dot)com
System Configuration
---------------------
Architecture (example: Intel Pentium) : any model of RS/6000
Operating System (example: Linux 2.0.26 ELF) : AIX 4.3.3 or later
PostgreSQL version (example: PostgreSQL-7.2.1): PostgreSQL-7.2.1
Compiler used (example: gcc 2.95.2) : gcc 2.9
Please enter a FULL description of your problem:
------------------------------------------------
I tried to build PostgreSQL on AIX 4 and 5 but failed to build libpq.so.
Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
./configure --enable-multibyte=EUC_JP --with-CC=gcc
make
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
You need to specify -bnoentry option for ld when you build shared library,
on AIX 4 or later. Here is a patch. This works for xlc too.
*** ./src/Makefile.shlib.org Mon Nov 12 04:20:53 2001
--- ./src/Makefile.shlib Fri Aug 30 01:42:17 2002
***************
*** 320,326 ****
# 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) $(LDFLAGS_SL)
endif # PORTNAME == aix
--- 320,326 ----
# 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) $(LDFLAGS_SL) -Wl,-bnoentry
endif # PORTNAME == aix
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2002-09-02 03:14:51 | Re: [PATCHES] JDBC timestamp does not understand [-]infinity |
Previous Message | Tomoyuki Niijima | 2002-09-01 23:29:17 | make check hang on AIX 5L p690 4way/I have two solutions (corrected) |