From: | "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | tsearch and win32 (again) |
Date: | 2004-07-07 18:08:23 |
Message-ID: | 000f01c4644d$e6449450$0c89bfd5@darko |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Few days old snapshot produces an error when making tsearch2 module:
dict_ispell.o(.text+0x31b):dict_ispell.c: undefined reference to
`pg_strcasecmp'
dict_ispell.o(.text+0x420):dict_ispell.c: undefined reference to
`pg_strcasecmp'
dict_ispell.o(.text+0x500):dict_ispell.c: undefined reference to
`pg_strcasecmp'
wparser_def.o(.text+0xc83):wparser_def.c: undefined reference to
`pg_strcasecmp'
wparser_def.o(.text+0xcd9):wparser_def.c: undefined reference to
`pg_strcasecmp'
wparser_def.o(.text+0xd02):wparser_def.c: more undefined references to
`pg_strcasecmp' follow
ispell/SUBSYS.o(.text+0xbd2):spell.c: undefined reference to
`pg_strncasecmp'
ispell/SUBSYS.o(.text+0xbfc):spell.c: undefined reference to
`pg_strncasecmp'
ispell/SUBSYS.o(.text+0xc15):spell.c: undefined reference to
`pg_strncasecmp'
ispell/SUBSYS.o(.text+0xc2e):spell.c: undefined reference to
`pg_strncasecmp'
c:\mingw\bin\dllwrap.exe: c:\mingw\bin\gcc exited with status 1
make: *** [libtsearch2.a] Error 1
I find out that pg_strncasecmp is defined in libpgport.a, so I hacked
Makefile for tsearch2:
instead of:
SHLIB_LINK := -lm $(top_builddir)/src/backend/libpostgres.a
I added :
SHLIB_LINK := -lm $(top_builddir)/src/backend/libpostgres.a -lm
$(top_builddir)/src/port/libpgport.a
However I'm not shore if libpgport should be included in libpostgres.a. Is
this some error in makefiles for server, or only for tsearch2 ?
I tried same snapshot with linux, and it compiles OK.
Regards !
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2004-07-07 19:11:56 | Re: Major PG news article |
Previous Message | Robert Treat | 2004-07-07 17:50:59 | Re: Postgresql on SAN |