build error - Mailing list pgsql-hackers-win32

From Darko Prenosil
Subject build error
Date
Msg-id 000501c45e2a$affa2460$0b89bfd5@darko
Whole thread Raw
List pgsql-hackers-win32
Yesterdays snapshot fails to build on my NT:

gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -I../../src/port -I../../src/include -I./src/include/port/win32 -DEXEC_BA
CKEND  "-I../../src/include/port/win32"  -c -o path.o path.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
ns -I../../src/port -I../../src/include -I./src/include/port/win32 -DEXEC_BA
CKEND  "-I../../src/include/port/win32"  -c -o pipe.o pipe.c
pipe.c: In function `pgpipe':
pipe.c:32: warning: implicit declaration of function `ereport'
pipe.c:32: `LOG' undeclared (first use in this function)
pipe.c:32: (Each undeclared identifier is reported only once
pipe.c:32: for each function it appears in.)
pipe.c:32: warning: implicit declaration of function `errmsg_internal'
make[2]: *** [pipe.o] Error 1
make[2]: Leaving directory `/d/postgresql-snapshot/src/port'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/d/postgresql-snapshot/src'
make: *** [all] Error 2

Putting
    #include "utils/elog.h"
in the beginning of the pipe.c solves the problem


However I did the build because I was trying to compile tsearch2, and it
fails too:

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

Too late tonight to dig more...

Regards !




pgsql-hackers-win32 by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: backslash commands under win32
Next
From: "帅猛"
Date:
Subject: build win32 with mingw and msys