Building Postgresql under Windows question

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Building Postgresql under Windows question
Date: 2009-04-28 18:47:03
Message-ID: D425483C2C5C9F49B5B7A41F8944154702962193@postal.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We are still having trouble with the service controller pg_ctl.exe
vanishing after some period of time.

Hence I am doing debug builds from the source tree according to the
instructions found at:
http://developer.postgresql.org/pgdocs/postgres/install-win32-full.html

Specifically, I am using this method:
It is also possible to build from inside the Visual Studio GUI. In this
case, you need to run:
perl mkvcbuild.pl

There are a few projects that will not build (only 7 out of 99).

I have not installed ossp-uuid yet, so one of the failures is expected.
On the CONTRIB projects I am not concerned at all.
However, on the internationalization failures, I want to know what the
failures mean.
Here is the output of the debug build process from the Visual Studio IDE
(includes all failures):

1>------ Build started: Project: utf8_and_euc_kr, Configuration: Debug
Win32 ------
1>Generate DEF file
1>Not re-generating UTF8_AND_EUC_KR.DEF, file already exists.
1>Linking...
1>utf8_and_euc_kr.def : error LNK2001: unresolved external symbol
euc_jp_to_utf8
1>utf8_and_euc_kr.def : error LNK2001: unresolved external symbol
pg_finfo_euc_jp_to_utf8
1>utf8_and_euc_kr.def : error LNK2001: unresolved external symbol
pg_finfo_utf8_to_euc_jp
1>utf8_and_euc_kr.def : error LNK2001: unresolved external symbol
utf8_to_euc_jp
1>Debug\utf8_and_euc_kr\utf8_and_euc_kr.lib : fatal error LNK1120: 4
unresolved externals
2>------ Build started: Project: utf8_and_euc_cn, Configuration: Debug
Win32 ------
3>------ Build started: Project: euc_kr_and_mic, Configuration: Debug
Win32 ------
1>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\utf8_and_euc_kr\B
uildLog.htm"
1>utf8_and_euc_kr - 5 error(s), 0 warning(s)
2>Generate DEF file
3>Generate DEF file
3>Not re-generating EUC_KR_AND_MIC.DEF, file already exists.
2>Not re-generating UTF8_AND_EUC_CN.DEF, file already exists.
3>Linking...
2>Linking...
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
euc_jp_to_mic
2>utf8_and_euc_cn.def : error LNK2001: unresolved external symbol
koi8r_to_utf8
2>utf8_and_euc_cn.def : error LNK2001: unresolved external symbol
pg_finfo_koi8r_to_utf8
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
euc_jp_to_sjis
2>utf8_and_euc_cn.def : error LNK2001: unresolved external symbol
pg_finfo_utf8_to_koi8r
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
mic_to_euc_jp
2>utf8_and_euc_cn.def : error LNK2001: unresolved external symbol
utf8_to_koi8r
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
mic_to_sjis
2>Debug\utf8_and_euc_cn\utf8_and_euc_cn.lib : fatal error LNK1120: 4
unresolved externals
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
pg_finfo_euc_jp_to_mic
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
pg_finfo_euc_jp_to_sjis
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
pg_finfo_mic_to_euc_jp
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
pg_finfo_mic_to_sjis
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
pg_finfo_sjis_to_euc_jp
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
pg_finfo_sjis_to_mic
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
sjis_to_euc_jp
3>euc_kr_and_mic.def : error LNK2001: unresolved external symbol
sjis_to_mic
3>Debug\euc_kr_and_mic\euc_kr_and_mic.lib : fatal error LNK1120: 12
unresolved externals
2>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\utf8_and_euc_cn\B
uildLog.htm"
2>utf8_and_euc_cn - 5 error(s), 0 warning(s)
4>------ Build started: Project: utf8_and_shift_jis_2004, Configuration:
Debug Win32 ------
4>Generate DEF file
3>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\euc_kr_and_mic\Bu
ildLog.htm"
3>euc_kr_and_mic - 13 error(s), 0 warning(s)
4>Not re-generating UTF8_AND_SHIFT_JIS_2004.DEF, file already exists.
5>------ Build started: Project: uuid-ossp, Configuration: Debug Win32
------
5>Compiling...
4>Linking...
5>uuid-ossp.c
4>utf8_and_shift_jis_2004.def : error LNK2001: unresolved external
symbol pg_finfo_uhc_to_utf8
4>utf8_and_shift_jis_2004.def : error LNK2001: unresolved external
symbol pg_finfo_utf8_to_uhc
4>utf8_and_shift_jis_2004.def : error LNK2001: unresolved external
symbol uhc_to_utf8
4>utf8_and_shift_jis_2004.def : error LNK2001: unresolved external
symbol utf8_to_uhc
4>Debug\utf8_and_shift_jis_2004\utf8_and_shift_jis_2004.lib : fatal
error LNK1120: 4 unresolved externals
5>.\contrib\uuid-ossp\uuid-ossp.c(27) : fatal error C1083: Cannot open
include file: 'uuid.h': No such file or directory
5>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\uuid-ossp\BuildLo
g.htm"
5>uuid-ossp - 1 error(s), 0 warning(s)
4>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\utf8_and_shift_ji
s_2004\BuildLog.htm"
4>utf8_and_shift_jis_2004 - 5 error(s), 0 warning(s)
6>------ Build started: Project: hstore, Configuration: Debug Win32
------
6>Generate DEF file
6>Not re-generating HSTORE.DEF, file already exists.
7>------ Build started: Project: cube, Configuration: Debug Win32 ------
7>Generate DEF file
6>Linking...
6>hstore.def : error LNK2001: unresolved external symbol lo_manage
6>hstore.def : error LNK2001: unresolved external symbol
pg_finfo_lo_manage
6>Debug\hstore\hstore.lib : fatal error LNK1120: 2 unresolved externals
6>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\hstore\BuildLog.h
tm"
6>hstore - 3 error(s), 0 warning(s)
7>Not re-generating CUBE.DEF, file already exists.
7>Linking...
7>cube.def : error LNK2001: unresolved external symbol chkpass_eq
7>cube.def : error LNK2001: unresolved external symbol chkpass_in
7>cube.def : error LNK2001: unresolved external symbol chkpass_ne
7>cube.def : error LNK2001: unresolved external symbol chkpass_out
7>cube.def : error LNK2001: unresolved external symbol chkpass_rout
7>cube.def : error LNK2001: unresolved external symbol
pg_finfo_chkpass_eq
7>cube.def : error LNK2001: unresolved external symbol
pg_finfo_chkpass_in
7>cube.def : error LNK2001: unresolved external symbol
pg_finfo_chkpass_ne
7>cube.def : error LNK2001: unresolved external symbol
pg_finfo_chkpass_out
7>cube.def : error LNK2001: unresolved external symbol
pg_finfo_chkpass_rout
7>Debug\cube\cube.lib : fatal error LNK1120: 10 unresolved externals
7>Build log was saved at
"file://c:\dcorbit64\postgresql\postgresql-8.3.7\Debug\cube\BuildLog.htm
"
7>cube - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 7 failed, 92 up-to-date, 0 skipped
==========

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dann Corbit 2009-04-28 19:07:42 Re: Building Postgresql under Windows question
Previous Message Robert Treat 2009-04-28 18:43:38 Re: Restore deleted rows