Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is failed in Windows platform #12

Open
yang-shuaijun opened this issue Aug 10, 2023 · 4 comments
Open

Build is failed in Windows platform #12

yang-shuaijun opened this issue Aug 10, 2023 · 4 comments

Comments

@yang-shuaijun
Copy link

yang-shuaijun commented Aug 10, 2023

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

@vahid110
Copy link
Contributor

vahid110 commented Oct 5, 2023

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.

@orzom411
Copy link

orzom411 commented Feb 2, 2024

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.

@vahid110
Copy link
Contributor

vahid110 commented Feb 5, 2024

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

@amspoke
Copy link

amspoke commented Oct 30, 2024

I can confirm that renaming the file fixes this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants