postgresql 8.0 and tsearch2 install under cygwin

Поиск
Список
Период
Сортировка
Искать

postgresql 8.0 and tsearch2 install under cygwin

От:
Marek Lewczuk <newsy@lewczuk.com>
Дата:
Hello,
I've just made successful installation of PostgreSQL 8.0 on Cygwin but I 
have some problems with installing tsearch2 contrib module. This is what 
make produce:

dict_ispell.o(.text+0x1ec):dict_ispell.c: undefined reference to 
`_pg_strcasecmp
'
dict_ispell.o(.text+0x31e):dict_ispell.c: undefined reference to 
`_pg_strcasecmp
'
dict_ispell.o(.text+0x425):dict_ispell.c: undefined reference to 
`_pg_strcasecmp
'
wparser_def.o(.text+0xd1f):wparser_def.c: undefined reference to 
`_pg_strcasecmp
'
wparser_def.o(.text+0xd7e):wparser_def.c: undefined reference to 
`_pg_strcasecmp
'
wparser_def.o(.text+0xdb7):wparser_def.c: more undefined references to 
`_pg_strc
asecmp' follow
ispell/SUBSYS.o(.text+0x9d3):spell.c: undefined reference to 
`_pg_strncasecmp'
ispell/SUBSYS.o(.text+0xa3a):spell.c: undefined reference to 
`_pg_strncasecmp'
ispell/SUBSYS.o(.text+0xa6a):spell.c: undefined reference to 
`_pg_strncasecmp'
ispell/SUBSYS.o(.text+0xa91):spell.c: undefined reference to 
`_pg_strncasecmp'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make: *** [libtsearch2.a] Error 1


Any solutions ?

ML

 

Re: postgresql 8.0 and tsearch2 install under cygwin

От:
Reini Urban <rurban@x-ray.at>
Дата:
Marek Lewczuk schrieb:
> I've just made successful installation of PostgreSQL 8.0 on Cygwin but I 
> have some problems with installing tsearch2 contrib module. This is what 
> make produce:
> 
> dict_ispell.o(.text+0x1ec):dict_ispell.c: undefined reference to 
> `_pg_strcasecmp

Yes,
Most contrib DLL's miss -lpgport.
You may want to add this to the Makefile:

SHLIB_LINK += -lpgport
or to BE_DLLLIBS in Makefile.cygwin
FAQ