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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
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
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 !
Attachment | Content-Type | Size |
---|---|---|
Makefile.diff | application/octet-stream | 454 bytes |
query.c.diff | application/octet-stream | 552 bytes |
spell.c.diff | application/octet-stream | 2.0 KB |
spell.h.diff | application/octet-stream | 408 bytes |
ts_cfg.c.diff | application/octet-stream | 636 bytes |
ts_cfg.h.diff | application/octet-stream | 654 bytes |
tsvertor.c.diff | application/octet-stream | 2.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Luckhurst | 2004-05-16 09:28:31 | Re: Runtime Problems |
Previous Message | Dave Page | 2004-05-15 21:25:57 | Re: running as a service? |