amazon-redshift-odbc-driver icon indicating copy to clipboard operation
amazon-redshift-odbc-driver copied to clipboard

Build is failed in Windows platform

Open yang-shuaijun opened this issue 2 years ago • 4 comments

Driver version

2.0.0.7

Redshift version

Client Operating System

Windows Server 2022 Datacenter

Table schema

Problem description

2>C:\Users\Administrator\amazon-redshift-odbc-driver\src\pgclient\src\port\thread.c(139,12): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 2>RC : fatal error RC1110: could not open src\interfaces\libpq\libpq.rc 2> 2>Done building project "libpq.vcxproj" -- FAILED. ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ========== ========== Rebuild started at 3:11 AM and took 12.015 seconds ========== Failure during "devenv" step: Exit code is 1 Failure during "devenv" step: Exit code is 1

ODBC trace logs

Reproduction code

yang-shuaijun avatar Aug 10 '23 03:08 yang-shuaijun

Hi @yang-shuaijun , thank you for taking the time to open this issue. I've notified the team of this issue and will update here as more information is available.

vahid110 avatar Oct 05 '23 07:10 vahid110

Attempted to build 2.0.1.0 and this issue persists.

2>RC : fatal error RC1110: could not open src\interfaces\libpq\libpq.rc 2> 2>Done building project "libpq.vcxproj" -- FAILED. ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ========== ========== Rebuild started at 10:50 PM and took 17.236 seconds ========== Failure during "devenv" step: Exit code is 1 Failure during "devenv" step: Exit code is 1

Attempted with both downloading the zip and cloning.

orzom411 avatar Feb 02 '24 07:02 orzom411

Hi @orzom411 Thank you for submitting the issue. Can you please rename libpq.rc.in to libpq.rc and rebuild? Also, may I know the version of your MSVC? Thanks

vahid110 avatar Feb 05 '24 17:02 vahid110