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

Re: tsearch2 under win32

From: "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: tsearch2 under win32
Date: 2004-05-16 00:33:47
Message-ID: 003e01c43add$8b9be650$478abfd5@darko (view raw, whole thread or download thread mbox)
Lists: 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
    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 !

Attachment: Makefile.diff
Description: application/octet-stream (454 bytes)
Attachment: query.c.diff
Description: application/octet-stream (552 bytes)
Attachment: spell.c.diff
Description: application/octet-stream (2.0 KB)
Attachment: spell.h.diff
Description: application/octet-stream (408 bytes)
Attachment: ts_cfg.c.diff
Description: application/octet-stream (636 bytes)
Attachment: ts_cfg.h.diff
Description: application/octet-stream (654 bytes)
Attachment: tsvertor.c.diff
Description: application/octet-stream (2.6 KB)

pgsql-hackers-win32 by date

Next:From: Richard LuckhurstDate: 2004-05-16 09:28:31
Subject: Re: Runtime Problems
Previous:From: Dave PageDate: 2004-05-15 21:25:57
Subject: Re: running as a service?

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