| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> | 
|---|---|
| To: | Tomoyuki Niijima <NIIJIMA(at)jp(dot)ibm(dot)com> | 
| Cc: | pgsql-patches(at)postgresql(dot)org | 
| Subject: | Re: failed to build libpq.so on AIX 4 and 5/I have a solution | 
| Date: | 2002-09-02 04:41:51 | 
| Message-ID: | 200209020441.g824fpH29585@candle.pha.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-patches | 
Your patch has been added to the PostgreSQL unapplied patches list at:
http://207.106.42.251/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Tomoyuki Niijima wrote:
> 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
> 
> 
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
> 
-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2002-09-02 05:05:39 | Re: fix for palloc() of user-supplied length | 
| Previous Message | Bruce Momjian | 2002-09-02 04:41:42 | Re: make check hang on AIX 5L p690 4way/I have two solutions |