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 error with glibc >= 2.32 #27

Open
rokclimb15 opened this issue Sep 5, 2024 · 1 comment
Open

Build error with glibc >= 2.32 #27

rokclimb15 opened this issue Sep 5, 2024 · 1 comment

Comments

@rokclimb15
Copy link

Problem description

Ubuntu 22.04+ ships with glibc 2.32 or newer. From the release notes at https://sourceware.org/pipermail/libc-announce/2020/000029.html:

The deprecated arrays sys_siglist, _sys_siglist, and sys_sigabbrev are no longer available to newly linked binaries, and their declarations have been removed from <string.h>. They are exported solely as compatibility symbols to support old binaries. All programs should use strsignal instead.

https://github.com/aws/amazon-redshift-odbc-driver/blob/main/src/pgclient/src/port/exec.c#L529

Changing that line to strsignal call corrects the build error. This probably needs to be wrapped in a different macro conditional based on glibc version.

@vahid110
Copy link
Contributor

vahid110 commented Oct 8, 2024

Hi @rokclimb15
Thanks for the hint.
I will make this change and test with other platforms and if everything is ok, I will include it in the subsequent releases.

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

2 participants