Error building Postgres for Windows

Started by Stephan Sandowover 6 years ago2 messagesgeneral
Jump to latest
#1Stephan Sandow
ssandow@frey.de

Hello,

i get 3 errors building the postgres server Version 12.0 for windows:

 plperl.obj : error LNK2019: unresolved external symbol "new_ctype" in
Function "plperl_init_interp
". [C:\postgre_src\postgresql-12.0\plperl.vcxproj]
  plperl.obj : error LNK2019: unresolved external symbol "new_collate"
in Function "plperl_init_inte
rp". [C:\postgre_src\postgresql-12.0\plperl.vcxproj]
  plperl.obj : error LNK2019: unresolved external symbol "new_numeric"
in Function "plperl_init_inte
rp". [C:\postgre_src\postgresql-12.0\plperl.vcxproj]
  .\Release\plperl\plperl.dll : fatal error LNK1120: 3 nicht aufgelöste
Externe [C:\postgre_src\postgresql-12.0\plperl.
vcxproj]

My config.pl:
$config->{perl} = 'C:\Perl64';

There is Active Perl 5.28

Iam using the x64 Native Tools Command Prompt from Visual Studio 2019

Any help would be greatly appreciated.

Stephan Sandow

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Stephan Sandow (#1)
Re: Error building Postgres for Windows

Stephan Sandow <ssandow@frey.de> writes:

i get 3 errors building the postgres server Version 12.0 for windows:

 plperl.obj : error LNK2019: unresolved external symbol "new_ctype" in
Function "plperl_init_interp
". [C:\postgre_src\postgresql-12.0\plperl.vcxproj]
  plperl.obj : error LNK2019: unresolved external symbol "new_collate"
in Function "plperl_init_inte
rp". [C:\postgre_src\postgresql-12.0\plperl.vcxproj]
  plperl.obj : error LNK2019: unresolved external symbol "new_numeric"
in Function "plperl_init_inte
rp". [C:\postgre_src\postgresql-12.0\plperl.vcxproj]
  .\Release\plperl\plperl.dll : fatal error LNK1120: 3 nicht aufgelöste
Externe [C:\postgre_src\postgresql-12.0\plperl.
vcxproj]

I'm no Perl expert, but what this smells like is compiling against
a set of Perl header files that don't match the Perl library you're
linking to. Check for multiple Perl installations on your machine,
and pay attention to the include and link search paths that are being
used in your plperl build.

regards, tom lane