Re: tsearch2 under win32

Поиск
Список
Период
Сортировка
От Darko Prenosil
Тема Re: tsearch2 under win32
Дата
Msg-id 003e01c43add$8b9be650$478abfd5@darko
обсуждение исходный текст
Ответ на tsearch2 under win32  ("Darko Prenosil" <Darko.Prenosil@finteh.hr>)
Список pgsql-hackers-win32
Here are difs for tsearch2 to make it work under win32.
Unfortunately I can't test it with today's snapshot because of build error:

gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns initdb.o
ec.o -L../../../src/interfaces/libpq -lpq -L../../../src/port   -lz -lwsock3
2 -lm  -lpgport -lws2_32 -o initdb.exe
../../../src/port/libpgport.a(pipe.o)(.text+0x27):pipe.c: undefined
reference to `pgwin32_socket'
../../../src/port/libpgport.a(pipe.o)(.text+0xbc):pipe.c: undefined
reference to `pgwin32_socket'
../../../src/port/libpgport.a(pipe.o)(.text+0xd3):pipe.c: undefined
reference to `pgwin32_connect'
../../../src/port/libpgport.a(pipe.o)(.text+0xe5):pipe.c: undefined
reference to `pgwin32_accept'
../../../src/port/libpgport.a(pipe.o)(.text+0x154):pipe.c: undefined
reference to `pgwin32_recv'
make[3]: *** [initdb] Error 1
make[3]: Leaving directory `/d/postgresql-snapshot-new/src/bin/initdb'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/d/postgresql-snapshot-new/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/d/postgresql-snapshot-new/src'
make: *** [all] Error 2

There is still problem with tsearch configuration paths because configure
does not accept windows style path for --prefix, so it must be done by hand,
but that is another problem.
Actually there are only two changes in the tsearch2 sources:
    1.) WORD structure renamed to TSWORD because of conflict with win32
headers
    2.) make it use pg_reg* functions insetad of reg* functions.

I also made some changes to contrib/dbase. Is there interset at all to make
it work with win32 ?

Regards !

Вложения

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: running as a service?
Следующее
От: "Richard Luckhurst"
Дата:
Сообщение: Re: Runtime Problems