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 !