Re: Anyone has nls activated on Mac OS X?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francois Suter <dba(at)paragraf(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org, peter_e(at)gmx(dot)net
Subject: Re: Anyone has nls activated on Mac OS X?
Date: 2004-02-10 07:55:50
Message-ID: 10418.1076399750@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francois Suter <dba(at)paragraf(dot)ch> writes:
> I installed gettext using Fink and then gave it a go. The configure
> part went ok, but make complained that it couldn't find msgfmt.

The attached patch seems to help with building --enable-nls on Darwin.

regards, tom lane

Index: src/interfaces/ecpg/compatlib/Makefile
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v
retrieving revision 1.13
diff -c -r1.13 Makefile
*** src/interfaces/ecpg/compatlib/Makefile 30 Nov 2003 06:09:42 -0000 1.13
--- src/interfaces/ecpg/compatlib/Makefile 10 Feb 2004 07:15:11 -0000
***************
*** 18,24 ****

override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CPPFLAGS)
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
! $(filter -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)

OBJS= informix.o

--- 18,24 ----

override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS) $(THREAD_CPPFLAGS)
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
! $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)

OBJS= informix.o

Index: src/interfaces/ecpg/ecpglib/Makefile
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v
retrieving revision 1.12
diff -c -r1.12 Makefile
*** src/interfaces/ecpg/ecpglib/Makefile 30 Nov 2003 06:09:46 -0000 1.12
--- src/interfaces/ecpg/ecpglib/Makefile 10 Feb 2004 07:15:11 -0000
***************
*** 22,28 ****
connect.o misc.o

SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
! $(filter -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)

all: all-lib

--- 22,28 ----
connect.o misc.o

SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
! $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(THREAD_LIBS)

all: all-lib

Index: src/interfaces/libpgtcl/Makefile
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v
retrieving revision 1.35
diff -c -r1.35 Makefile
*** src/interfaces/libpgtcl/Makefile 30 Nov 2003 06:09:48 -0000 1.35
--- src/interfaces/libpgtcl/Makefile 10 Feb 2004 07:15:11 -0000
***************
*** 21,27 ****
OBJS= pgtcl.o pgtclCmds.o pgtclId.o

SHLIB_LINK = $(libpq) $(TCL_LIB_SPEC) $(TCL_LIBS) \
! $(filter -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(THREAD_LIBS)

all: submake-libpq all-lib

--- 21,27 ----
OBJS= pgtcl.o pgtclCmds.o pgtclId.o

SHLIB_LINK = $(libpq) $(TCL_LIB_SPEC) $(TCL_LIBS) \
! $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(THREAD_LIBS)

all: submake-libpq all-lib

Index: src/pl/plpgsql/src/Makefile
===================================================================
RCS file: /cvsroot/pgsql-server/src/pl/plpgsql/src/Makefile,v
retrieving revision 1.24
diff -c -r1.24 Makefile
*** src/pl/plpgsql/src/Makefile 29 Nov 2003 19:52:12 -0000 1.24
--- src/pl/plpgsql/src/Makefile 10 Feb 2004 07:15:11 -0000
***************
*** 20,26 ****
SO_MINOR_VERSION= 0

override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
! SHLIB_LINK = $(BE_DLLLIBS)
rpath :=

OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
--- 20,26 ----
SO_MINOR_VERSION= 0

override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
! SHLIB_LINK = $(filter -lintl, $(LIBS)) $(BE_DLLLIBS)
rpath :=

OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Claudio Cicali 2004-02-10 08:13:01 Re: I want to use postresql for this app, but...
Previous Message Klint Gore 2004-02-10 06:33:43 Re: Case sensitivity