Skip site navigation (1) Skip section navigation (2)

contrib/tsearch2 missing LIBS

From: Reini Urban <rurban(at)x-ray(dot)at>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: contrib/tsearch2 missing LIBS
Date: 2004-10-27 12:30:26
Message-ID: 417F94E2.9030201@x-ray.at (view raw or flat)
Thread:
Lists: pgsql-cygwinpgsql-patches
beta4 - cygwin:

dllwrap  -o tsearch2.dll --dllname tsearch2.dll  --def tsearch2.def 
dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o dict_snowball.o 
dict_ispell.o dict_syn.o wparser.o wparser_def.o ts_cfg.o tsvector.o 
rewrite.o crc32.o query.o gistidx.o tsvector_op.o rank.o ts_stat.o 
snowball/SUBSYS.o ispell/SUBSYS.o wordparser/SUBSYS.o -L../../src/port 
-L/usr/local/lib -lm -L../../src/backend -lpostgres -lpgport
../../src/port/libpgport.a(path.o)(.text+0x6b7):path.c: undefined 
reference to `_libintl_bindtextdomain'
../../src/port/libpgport.a(path.o)(.text+0x6bf):path.c: undefined 
reference to `_libintl_textdomain'
../../src/port/libpgport.a(exec.o)(.text+0x5df):exec.c: undefined 
reference to `_libintl_gettext'
../../src/port/libpgport.a(exec.o)(.text+0x60c):exec.c: undefined 
reference to `_libintl_gettext'
../../src/port/libpgport.a(exec.o)(.text+0x625):exec.c: undefined 
reference to `_libintl_gettext'

make -p:

# Makefile (from `../../src/Makefile.shlib', line 237)
SHLIB_LINK := -L../../src/port -L/usr/local/lib -lm -L../../src/backend 
-lpostgres -lpgport

culprit:
SHLIB_LINK := $(filter -L%, $(LDFLAGS)) $(SHLIB_LINK)

SHLIB_LINK misses $(LIBS)

my solution:

--- postgresql-8.0.0beta4/src/Makefile.shlib.orig	2004-10-16 
04:26:43.000000000 +0100
+++ postgresql-8.0.0beta4/src/Makefile.shlib	2004-10-27 
13:21:19.184875000 +0100
@@ -219,7 +219,7 @@
  ifeq ($(PORTNAME), cygwin)
    shlib			= $(NAME)$(DLSUFFIX)
    # needed for /contrib modules, not sure why
-  SHLIB_LINK		+= -lpgport
+  SHLIB_LINK		+= $(LIBS)
  endif

  ifeq ($(PORTNAME), win32)

-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

Responses

pgsql-cygwin by date

Next:From: Reini UrbanDate: 2004-10-27 14:44:07
Subject: src/timezone/pgtz __imp__my_exec_path
Previous:From: Jason TishlerDate: 2004-10-27 12:05:10
Subject: Re: Postgresql

pgsql-patches by date

Next:From: Karel ZakDate: 2004-10-27 12:59:55
Subject: Re: 8.0-NLS: czech
Previous:From: Karel ZakDate: 2004-10-27 11:59:38
Subject: sign parsing (was: Re: [HACKERS] to_char/to_number loses sign)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group