Build is failed in Windows platform
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
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.
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.
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